#include <stdio.h>
#include "fsl_rtc_driver.h"
#include "fsl_clock_manager.h"
#include "board.h"
#include "fsl_debug_console.h"
static void cmd_alarm |
( |
uint8_t |
offsetSec | ) |
|
|
static |
This function set the alarm which will be trigerred x secs later. The alarm trigger will print a notification on the console.
static void cmd_comp |
( |
uint32_t |
cycles, |
|
|
uint32_t |
interval |
|
) |
| |
|
static |
This function set the compansation value and it's interval value. Demo the compansation result by the RTC_CLKOUT pin.
static void cmd_get_datetime |
( |
void |
| ) |
|
|
static |
This function get the current date time
static void cmd_seconds |
( |
void |
| ) |
|
|
static |
This function show the digital clock on console
Function prototype for main function.
- Parameters
-
receiveBuff | Buffer used to hold received data |
static void recv_from_console |
( |
char * |
buf, |
|
|
uint32_t |
size |
|
) |
| |
|
static |
void RTC_IRQHandler |
( |
void |
| ) |
|
void RTC_Seconds_IRQHandler |
( |
void |
| ) |
|
volatile uint8_t gAlarmPending |
|
static |