SAM Asynchronous Timer (AST) example 1.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
static void | configure_console (void) |
Configure serial console. More... | |
int | main (void) |
main function : do init and loop More... | |
|
static |
Configure serial console.
References uart_rs232_options::baudrate, and stdio_serial_init().
Referenced by main().
int main | ( | void | ) |
main function : do init and loop
References AST_CALENDAR_MODE, ast_enable(), AST_OSC_32KHZ, AST_PSEL_32KHZ_1HZ, ast_read_calendar_value(), ast_set_config(), board_init(), BOARD_NAME, ast_config::calendar, configure_console(), ast_calv::day, delay_s, ast_calendar::FIELD, ast_calv::hour, ioport_toggle_pin_level(), ast_calv::min, ast_config::mode, ast_calv::month, osc_enable(), OSC_ID_OSC32, osc_is_ready(), ast_config::osc_type, osc_wait_ready(), ast_config::psel, ast_calv::sec, sysclk_init(), and ast_calv::year.