CPU reset cause example for SAM4L.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
#include "asf.h"
Macros | |
#define | STRING_EOL "\r" |
#define | STRING_HEADER |
Functions | |
static void | configure_console (void) |
Configure UART console. More... | |
int | main (void) |
Main function. More... | |
#define STRING_EOL "\r" |
#define STRING_HEADER |
Referenced by main().
|
static |
Configure UART console.
References uart_rs232_options::baudrate, and stdio_serial_init().
Referenced by main().
int main | ( | void | ) |
Main function.
References board_init(), configure_console(), reset_cause_is_cpu_brown_out_detected(), reset_cause_is_external_reset(), reset_cause_is_io_brown_out_detected(), reset_cause_is_ocd(), reset_cause_is_power_on_reset(), reset_cause_is_watchdog(), reset_do_soft_reset(), STRING_HEADER, sysclk_init(), and wdt_reset_mcu().