Chen Wang 16475b3c92 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 <unicorn_wang@outlook.com>
2024-11-26 21:45:00 -05:00
..
2024-11-25 10:48:36 +08:00
2024-11-25 10:48:36 +08:00
2024-11-25 10:48:36 +08:00
2024-11-25 10:48:36 +08:00
2024-11-25 10:48:36 +08:00
2024-11-25 10:48:36 +08:00
2024-11-25 10:48:36 +08:00
2024-11-25 10:48:36 +08:00
2024-03-02 16:16:22 +08:00
2024-11-25 10:48:36 +08:00
2024-11-25 10:48:36 +08:00
2024-11-25 10:48:36 +08:00
2024-07-17 11:52:27 +08:00
2024-11-25 10:48:36 +08:00
2024-08-25 12:11:57 -04:00
2024-11-25 10:48:36 +08:00
2024-11-25 10:48:36 +08:00
2024-11-26 21:45:00 -05:00