2 #include "../firmware.h"
6 #define UART_INTERFACE UART_CAMERA
12 uint32_t setclock = 1000000;
20 UART_puts(UART_INTERFACE,
"\r\nRTC Demo\r\n");
37 sprintf(output,
"Manually setting clock to: %+011ld\r\n", setclock);
46 sprintf(output,
"Time : %011"PRIu32
"\r\n", clock);
48 sprintf(output,
"Time (ms): %011"PRIu64
"\r\n", clock_ms);
void Delay_ms(uint32_t milliseconds)
void RTC_getTime(uint32_t *time)
void UART_init(uint8_t uart_num, uint32_t baudrate)
void RTC_setTime(uint32_t *time)
void RTC_getTime_ms(uint64_t *time_ms)
void LED_off(uint8_t led_num)
int main(void)
Runs all module tests.
void UART_puts(uint8_t uart_num, char *str)
void LED_on(uint8_t led_num)