Page 11 of 23

Re: The RTC driver topic

Posted: Sun Mar 04, 2012 4:19 pm
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

Re: The RTC driver topic

Posted: Sun Mar 04, 2012 5:26 pm
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.

Re: The RTC driver topic

Posted: Sun Mar 04, 2012 5:29 pm
by Giovanni
Thank you, I will verify if that header is present in all compilers else we will do something else.

Giovanni

Re: The RTC driver topic

Posted: Sun Mar 04, 2012 8:45 pm
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 :?:

Re: The RTC driver topic

Posted: Sun Mar 04, 2012 10:02 pm
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.

Re: The RTC driver topic

Posted: Sun Mar 04, 2012 10:17 pm
by Giovanni
Excellent, thank you :-)

Giovanni

Re: The RTC driver topic

Posted: Sun Mar 04, 2012 10:36 pm
by barthess
Giovanni,
What the next steps related to RTC driver? If nothing than I will continue SDC driver.

Re: The RTC driver topic

Posted: Mon Mar 05, 2012 8:57 am
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

Re: The RTC driver topic

Posted: Mon Mar 05, 2012 10:00 am
by barthess
Giovanni wrote: I saw some interesting threads regarding SD+DMA in the ST forum

can you provide link to thread?

Re: The RTC driver topic

Posted: Mon Mar 05, 2012 10:21 am
by Giovanni