Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UART test settings and re-enable tests #224

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

xluciano
Copy link
Contributor

@xluciano xluciano commented Nov 22, 2023

In hil_add tests, the UART ISR core must differ from the core for SPI slave.

Closes https://xmosjira.atlassian.net/browse/AP-257

@xluciano xluciano requested a review from ed-xmos November 22, 2023 13:24
@xluciano xluciano self-assigned this Nov 22, 2023
@@ -23,7 +23,7 @@
#define SPI_TEST_BUF_SIZE 4096

#define UART_RX_CORE_MASK (1 << 2)
#define UART_RX_ISR_CORE 2
#define UART_RX_ISR_CORE 3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great find!

@@ -101,7 +101,7 @@ static void start_uart_devices(uart_test_ctx_t *test_ctx)
rtos_uart_rx_started,
rtos_uart_rx_complete,
rtos_uart_rx_error,
(1 << UART_RX_ISR_CORE),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Crikey this was a major fail originally..

Copy link
Contributor

@ed-xmos ed-xmos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!
I think debug print needs to be off by default - see comment

@xluciano xluciano requested a review from ed-xmos November 22, 2023 15:11
Copy link
Contributor

@ed-xmos ed-xmos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@xluciano xluciano merged commit 1056509 into xmos:develop Nov 22, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants