The RTC driver 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.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: The RTC driver topic

Post by Giovanni »

Probably the check on RTC_CLK should go in rtc_lld.h instead of hal_lld.h because if the RTC is not enabled there is not such constraint.

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

Re: The RTC driver topic

Post by barthess »

Giovanni wrote: I don't like to depend from time.h because it is possible other compilers don't have it

Using headers from standard lib may be not ideal decision, but bad standard is better than nothing.
Giovanni wrote:Probably the check on RTC_CLK should go in rtc_lld.h instead of hal_lld.h because if the RTC is not enabled there is not such constraint.

Agree, done.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: The RTC driver topic

Post by Giovanni »

Thank you, I will verify if that header is present in all compilers else we will do something else.

Giovanni
Jacon
Posts: 143
Joined: Wed Dec 08, 2010 7:52 am
Has thanked: 50 times
Been thanked: 5 times

Re: The RTC driver topic

Post by Jacon »

Are there any technical reasons behind change of SERIAL_DEFAULT_BITRATE
value from overall default 38400 Bd to 9600 Bd in testhal\STM32F4xx\RTC\halconf.h :?:
User avatar
barthess
Posts: 861
Joined: Wed Dec 08, 2010 7:55 pm
Been thanked: 7 times

Re: The RTC driver topic

Post by barthess »

Jacon,
No. I played with it during debug and forget to change to default value.

Giovanni,
I retested code after merging. Works as expected.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: The RTC driver topic

Post by Giovanni »

Excellent, thank you :-)

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

Re: The RTC driver topic

Post by barthess »

Giovanni,
What the next steps related to RTC driver? If nothing than I will continue SDC driver.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: The RTC driver topic

Post by Giovanni »

I just will do some minor reformatting using Eclipse rules, you may proceed with SDC, I think that one will be more complex. I saw some interesting threads regarding SD+DMA in the ST forum, probably you should read those too.

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

Re: The RTC driver topic

Post by barthess »

Giovanni wrote: I saw some interesting threads regarding SD+DMA in the ST forum

can you provide link to thread?
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: The RTC driver topic

Post by Giovanni »

Post Reply