Is this feature complete? the settings STM32_PVD_ENABLE and STM32_PLS are defined in hal_lld.h but not used anywhere except in the main.c.
Giovanni
The PVD_DEV branch topic
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: The PVD_DEV branch topic
Feature very simple and can be completed for the whole STM32 in a day. I want to know some details.
1) feature without high level interface is it good? Now all handling doing in EXT driver.
2) by default it must be on or off?
3) is placing initialization code for it in hal_lld_init() good idea?
update:
IMO all features that have interrupts routed to EXTI must not have separate HL part. Just write good documentation on it.
1) feature without high level interface is it good? Now all handling doing in EXT driver.
2) by default it must be on or off?
3) is placing initialization code for it in hal_lld_init() good idea?
update:
IMO all features that have interrupts routed to EXTI must not have separate HL part. Just write good documentation on it.
Last edited by barthess on Wed Jan 04, 2012 7:24 pm, edited 1 time in total.
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: The PVD_DEV branch topic
1) It is ok.
2) Off, probably it uses power.
3) I think it is the proper place.
Giovanni
2) Off, probably it uses power.
3) I think it is the proper place.
Giovanni
Re: The PVD_DEV branch topic
Changes PVD merged to trunk. Code compiles. Tomorrow I will test it in hardware and create test for F4x.
Re: The PVD_DEV branch topic
Tested in hardware on F1x and F4x. Test for L1x added, but I can not check it because the lack of hardware.
Re: The PVD_DEV branch topic
Hy, I got now running the 2.4.0 (trunk) on my STM32L-Discovery board. I like to use the PVD feature to switch over from external supply to battery operation. The plan is to generate an interrupt which switch the controller in stop mode and RTC is still running. My problem is now to generate the interrupt for the PVD. I do not understand what is to do to configure, initialize and catch the interrupt.
May somebody got a small example.
May somebody got a small example.
Re: The PVD_DEV branch topic
Hi Raig,
Lots of useful examples you can find in testhal directory. For example testhal\STM32L1xx\PVD show how to use PVD.
Lots of useful examples you can find in testhal directory. For example testhal\STM32L1xx\PVD show how to use PVD.
Re: The PVD_DEV branch topic
Hy Barthess,
thank you very match for the hint, I never looked at this folder. Now I will try my luck.
Raig
thank you very match for the hint, I never looked at this folder. Now I will try my luck.
Raig