The PVD_DEV branch topic

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
Post Reply
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

The PVD_DEV branch topic

Post by Giovanni »

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
User avatar
barthess
Posts: 861
Joined: Wed Dec 08, 2010 7:55 pm
Been thanked: 7 times

Re: The PVD_DEV branch topic

Post by barthess »

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.
Last edited by barthess on Wed Jan 04, 2012 7:24 pm, edited 1 time in total.
User avatar
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

Post by Giovanni »

1) It is ok.
2) Off, probably it uses power.
3) I think it is the proper place.

Giovanni
User avatar
barthess
Posts: 861
Joined: Wed Dec 08, 2010 7:55 pm
Been thanked: 7 times

Re: The PVD_DEV branch topic

Post by barthess »

Changes PVD merged to trunk. Code compiles. Tomorrow I will test it in hardware and create test for F4x.
User avatar
barthess
Posts: 861
Joined: Wed Dec 08, 2010 7:55 pm
Been thanked: 7 times

Re: The PVD_DEV branch topic

Post by barthess »

Tested in hardware on F1x and F4x. Test for L1x added, but I can not check it because the lack of hardware.
Raig
Posts: 10
Joined: Tue Apr 26, 2011 4:00 pm

Re: The PVD_DEV branch topic

Post by Raig »

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.
User avatar
barthess
Posts: 861
Joined: Wed Dec 08, 2010 7:55 pm
Been thanked: 7 times

Re: The PVD_DEV branch topic

Post by barthess »

Hi Raig,
Lots of useful examples you can find in testhal directory. For example testhal\STM32L1xx\PVD show how to use PVD.
Raig
Posts: 10
Joined: Tue Apr 26, 2011 4:00 pm

Re: The PVD_DEV branch topic

Post by Raig »

Hy Barthess,

thank you very match for the hint, I never looked at this folder. Now I will try my luck.

Raig
Post Reply