STM32L0 k_sleep
Anthony Kreft <anthony.kreft@...>
Hi All, |
|
Li, Jun R
Have you tried to add the following option in your “prj.conf”? CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
Which set the clock tick resolution to 1ms.
From: <devel@...> on behalf of Anthony Kreft <anthony.kreft@...>
Hi All, |
|
Anthony Kreft <anthony.kreft@...>
Thank you, that worked. It should probably go in the board’s defconfig like most of the others already have.
On Aug 1, 2018, 6:02 PM -0500, Li, Jun R <jun.r.li@...>, wrote:
|
|
Li, Jun R
The default value is 10ms. You can set it in your board’s defconfig.
From: Anthony Kreft <anthony.kreft@...>
Thank you, that worked. It should probably go in the board’s defconfig like most of the others already have. On Aug 1, 2018, 6:02 PM -0500, Li, Jun R <jun.r.li@...>, wrote:
|
|
Have you tried to use the k_sleep(K_SECONDS(1))? Maybe it works without changing the conf file.
toggle quoted message
Show quoted text
Best regards, Rodrigo Peixoto On Wed, 1 Aug 2018 at 20:27 Li, Jun R <jun.r.li@...> wrote:
--
Rodrigo Peixoto Co-founder and Technical guru +55 (82) 98144-8585 http://ayna.tech | Skype: rodrigopex . |
|