diff options
| author | Chen Wang <[email protected]> | 2024-11-26 14:57:15 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-11-26 21:45:00 -0500 |
| commit | 16475b3c9231305a929d98ebd27e1ea77b33284d (patch) | |
| tree | 2186e42f6107385f05cd644ba5f158f616605273 /documentation/basic | |
| parent | 0c910e755d4e6c88c7f7c96f73e6a58f5f795799 (diff) | |
bsp: cvitek: fix warning on rtc driver
When RTC is enabled, a warning appear during compiling:
warning: implicit declaration of function 'rtc_alarm_enable' [-Wimplicit-function-declaration]
366 | rtc_alarm_enable(alarm->enable);
| ^~~~~~~~~~~~~~~~
It's due to _rtc_set_alarm is not covered by RT_USING_ALARM. It's wrong.
Solution: cover all functions including _rtc_get_alarm & _rtc_set_alarm
under RT_USING_ALARM macro conditional defintion.
Signed-off-by: Chen Wang <[email protected]>
Diffstat (limited to 'documentation/basic')
0 files changed, 0 insertions, 0 deletions
