-
Notifications
You must be signed in to change notification settings - Fork 3k
QSPI HAL tests: add DISCO_F413ZH support #7685
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
QSPI HAL tests: add DISCO_F413ZH support #7685
Conversation
TESTS/mbed_hal/qspi/main.cpp
Outdated
@@ -321,10 +314,13 @@ void qspi_init_free_test(void) | |||
flash_init(qspi); | |||
|
|||
#ifdef QSPI_TEST_LOG_FLASH_STATUS | |||
printf("Status "); log_register(STATUS_REG, QSPI_STATUS_REG_SIZE, qspi); | |||
printf("Config 0 "); log_register(CONFIG_REG0, QSPI_CONFIG_REG_0_SIZE, qspi); | |||
printf("Status\r\n"); log_register(STATUS_REG, QSPI_STATUS_REG_SIZE, qspi); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should either use config for t hat or configure terminal.
And I believe we should be using utest_printf rather. And not print this if all is OK?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should either use config for t hat or configure terminal.
Don't understand this one
And I believe we should be using utest_printf rather. And not print this if all is OK?
Sure I will change to utest_printf
QSPI_STATUS_OK : QSPI_STATUS_ERROR) | ||
|
||
|
||
#define DUAL_DISABLE_IMPLEMENTATION() \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why these are not inlined functions rather than large macro function definitions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no specific reasons, can change macros to static inline functions
@0xc0170
There was the reason: to keep chip config header free from code dependencies
QSPI_STATUS_OK : QSPI_STATUS_ERROR) | ||
|
||
|
||
#define QUAD_ENABLE_IMPLEMENTATION() return QSPI_STATUS_OK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do these 3 macros do ? enable implementation = return STATUS OK?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I wrote this PR is IN DEVELOPMENT, implementation will be added soon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed that line, would wait with review :)
What is to be done here? |
Now the test works in extended SPI mode. |
But I think we could merge this PR in the current form after code review fixes. |
it's a branch - enabling features and extending tests in steps is fine . |
0b2dd11
to
6c0c517
Compare
@0xc0170 |
/morph build |
Build : SUCCESSBuild number : 2772 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2403 |
Test : FAILUREBuild number : 2502 |
tests-mbed_drivers-timer:
I will investigate it in parallel, please restart morph |
/morph test |
Test : SUCCESSBuild number : 2506 |
Description
This PR adds (to qspi_hal test):
TODO:
Pull request type