Commit Graph

8 Commits (a665f3e06df78c211b002893f16caa29e2801f50)

Author SHA1 Message Date
Vincent Coubard 682816d86e Sleep: Disallow sleep for targets turning of the systick clock at sleep entry.
When the RTOS is present and the tickless mode is not implemented, it is
expected that the next tick issued by the Systick timer will wake up the MCU.
However nothing prevents an implementation of the ARM architecture to gate the
systick clock signal upon sleep entry.

Therefore on those targets sleep shall be prohibited if the RTOS is present and the
tickless mode is not implemented.

To ease life of porters , a new option has been added in the device add list:
STCLK_OF_DURING_SLEEP. This option expose that the target turn of the systick
clock during sleep.

Targets which exhibit such behavior shall add this define in their device_has list.
2017-09-13 10:28:02 +01:00
Jimmy Brisson 18bca08d4b Reduce device has whitelist 2017-06-29 14:09:39 -05:00
Jimmy Brisson dfeb864f19 Add line between local and module imports 2017-06-29 14:09:39 -05:00
Jimmy Brisson 7775764db9 Add license header 2017-06-29 14:09:39 -05:00
Jimmy Brisson 2598bcd1b9 Restrict device_has 2017-06-29 14:09:39 -05:00
Jimmy Brisson 37a3e20dfe Revamp option parsing and add more checks 2017-06-29 14:09:39 -05:00
Jimmy Brisson 32966bbcbe Stylize and add function docs 2017-06-29 14:09:39 -05:00
Jimmy Brisson ae2268490f Added simple linter for targets.json 2017-06-29 14:09:39 -05:00