[riot-notifications] [RIOT-OS/RIOT] Pr stm32l1 pm (#11359)
notifications at github.com
Mon Apr 8 19:04:00 CEST 2019
The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.
### Contribution description
Put here the description of your contribution:
- describe which part(s) of RIOT is (are) involved
- if it's a bug fix, describe the bug that it solves and how it is solved
- you can also give more information to reviewers about how to test your changes
This PR is based on previous work in #8403 & #10052. On start-up it configures all GPIO's as AIN.
On other boards of the STM32L family (L0 & L4) this is done by default.
As stated in this [AN](https://comm.eefocus.com/media/download/index/id-1013834), doing this saves the consumption of the input Schmitt trigger. The only case where this shouldn't be done is when the pin is connected to an external driver that has a pull-up or pull-down setting, this should be handled by pertinent drivers.
### Testing procedure
Details steps to test your contribution:
- which test/example to compile for which board and is there a 'test' command
- how to know that it was not working/available in master
- the expected success test output
As of know when entering STOP mode consumption on stm32l1 is around 500uA, with this PR it drops to 1.5uA. To test run:
`make BOARD=nucleo-l152re -C tests/periph_pm/ flash`
NOTE: on nucleo boards if power is measured directly after programming there will be around 200uA of current consumption coming from the stlink. The stlink must start without being connected to the board or power the board externally.
### Issues/PRs references
Examples: Fixes #1234. See also #5678. Depends on PR #9876.
Please use keywords (e.g., fixes, resolve) with the links to the issues you
resolved, this way they will be automatically closed when your pull request
is merged. See https://help.github.com/articles/closing-issues-using-keywords/.
Based on work from #8403 & #10052. Depends on #10051 or #11358.
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* cpu/cortexm_common: function to check address validity
* cpu/stm32_common: minimize consumption on STM32L1
* cpu/stm32_common: preserve JTAG pins on L1
-- File Changes --
M cpu/cortexm_common/cortexm_init.c (47)
M cpu/cortexm_common/include/cpu.h (11)
M cpu/cortexm_common/vectors_cortexm.c (18)
M cpu/stm32_common/cpu_init.c (39)
A tests/cpu_cortexm_address_check/Makefile (16)
A tests/cpu_cortexm_address_check/README.md (12)
A tests/cpu_cortexm_address_check/main.c (65)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications