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
The RTC driver topic
- 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
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.
- 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
Thank you, I will verify if that header is present in all compilers else we will do something else.
Giovanni
Giovanni
Re: The RTC driver topic
Jacon,
No. I played with it during debug and forget to change to default value.
Giovanni,
I retested code after merging. Works as expected.
No. I played with it during debug and forget to change to default value.
Giovanni,
I retested code after merging. Works as expected.
- 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
Giovanni,
What the next steps related to RTC driver? If nothing than I will continue SDC driver.
What the next steps related to RTC driver? If nothing than I will continue SDC driver.
- 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
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
Giovanni
Re: The RTC driver topic
Giovanni wrote: I saw some interesting threads regarding SD+DMA in the ST forum
can you provide link to thread?
- Giovanni
- Site Admin
- Posts: 14893
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times