Hi,
I have added support for stm32l4 lptim1/2. Is it possible to merge changes with main code?
stm32l4 lptim1/2 support
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
-
- Posts: 87
- Joined: Thu May 07, 2015 9:47 pm
- Has thanked: 3 times
- Been thanked: 15 times
Re: stm32l4 lptim1/2 support
Have you used this in tickless mode for the system counter ? I have an application with extremely low power requirements and want to use tickless with one of the low-power stop modes in the idle thread hook. I can live with 32khz tick resolution, since all of the sleep times are on order of milliseconds.
Any advice would be welcome on how to proceed.
Geoffrey
Any advice would be welcome on how to proceed.
Geoffrey
-
- Posts: 87
- Joined: Thu May 07, 2015 9:47 pm
- Has thanked: 3 times
- Been thanked: 15 times
Re: stm32l4 lptim1/2 support
Thanks ! Your RTC code gave me a pretty clear idea about how to proceed. It's clear a general solution on power management is complex, but fortunately my application is simple enough that I can forgo that pain and use the idle thread hooks.
Geoffrey
Geoffrey
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: stm32l4 lptim1/2 support
Hi,
The patch does not apply on trunk.
In general, when adding data in registry:
1) It must be added to all devices in the same registry file.
2) It must be added to all registries or drivers would get "undefined macro".
Giovanni
The patch does not apply on trunk.
In general, when adding data in registry:
1) It must be added to all devices in the same registry file.
2) It must be added to all registries or drivers would get "undefined macro".
Giovanni
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: stm32l4 lptim1/2 support
Just a note, I merged the changes to stm32_tim.h, no need to redo that.
Giovanni
Giovanni
Re: stm32l4 lptim1/2 support
Hi,
STM32F7 has LPTIM1 but without dedicated interrupt vector (use EXTI line).
What is the best way to define this type of LPTIM in registry file?
STM32F7 has LPTIM1 but without dedicated interrupt vector (use EXTI line).
What is the best way to define this type of LPTIM in registry file?
Vitaly
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: stm32l4 lptim1/2 support
Hi,
Uhm, good question...
What about having on all platforms:
#define STM32_LPTIM1_HANDLER Vectorxx
#define STM32_LPTIM1_NUMBER yy
On those that require an EXTI initialization add:
#define STM32_LPTIM1_EXTI_LINE zz
The drivers can check for STM32_LPTIM1_EXTI_LINE presence and initialize EXTI before enabling the NVIC vector. This could be used in general for all peripherals connected to EXTI.
Giovanni
Uhm, good question...
What about having on all platforms:
#define STM32_LPTIM1_HANDLER Vectorxx
#define STM32_LPTIM1_NUMBER yy
On those that require an EXTI initialization add:
#define STM32_LPTIM1_EXTI_LINE zz
The drivers can check for STM32_LPTIM1_EXTI_LINE presence and initialize EXTI before enabling the NVIC vector. This could be used in general for all peripherals connected to EXTI.
Giovanni
Return to “Small Change Requests”
Who is online
Users browsing this forum: No registered users and 8 guests