-
Notifications
You must be signed in to change notification settings - Fork 3k
NUC472/M453/M487/NANO130: Add updates for Nuvoton targets #5157
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
Conversation
The use of mktime was causing a fault when called in interrupt handler because on GCC it lock the mutex protecting the environment, To overcome this issue, this patch add dedicated routine to convert a time_t into a tm and vice versa. In the process mktime has been optimized and is now an order of magnitude faster than the routines present in the C library.
1. Remove stale code with mbed OS 3. 2. Remove check for busy peripherals unorganizedly. This would be supported by e.g. official sleep manager.
Changes look fine to me. One question:
|
1. Remove stale code with mbed OS 3. 2. Remove check for busy peripherals unorganizedly. This would be supported by e.g. official sleep manager.
These power-down code are stale and would be superseded by sleep manager.
@0xc0170 Yes, you are right. But I am not sure if deep sleep is locked when there is any PWMOut object active per HAL spec. I suppose it would be addressed in upper layer (PWMOut and sleep manager) in an organized way. |
At the moment, it is not (PWMout does not lock deepsleep). I would propose to keep it as it was for backward compatibilty (target would handle it). What do you think? A question - what clocks depend your PWM module on? cc @c1728p9 |
@0xc0170 Do you mean I can call
Current PWM HAL implementation relies on HIRC, which would stop as system enters deep sleep mode. |
@0xc0170 I would expect PWM to use a high frequency clock (and thus lock deep sleep). |
👍 thus we need to fix it |
Fixed proposed, please review |
/morph test-nightly |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
/morph test-nightly |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
The last run was with Ticker test that we fixed in the meantime, I am retriggering CI |
/morph test-nightly |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
Description
This PR includes the following updates: