PMC Clock Failure Detection Example.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
#include "conf_example.h"
Macros | |
#define | CONSOLE_UART_BAUDRATE (115200) |
Console UART baud rate: 115200 bps. More... | |
#define | STRING_EOL "\r" |
#define | STRING_HEADER |
Functions | |
static void | configure_console (void) |
Configure the Console UART. More... | |
int | main (void) |
pmc_clock_failure_detect_example Application entry point. More... | |
void | PMC_Handler (void) |
Handler for PMC interrupt. More... | |
#define CONSOLE_UART_BAUDRATE (115200) |
Console UART baud rate: 115200 bps.
#define STRING_EOL "\r" |
#define STRING_HEADER |
Referenced by main().
|
static |
Configure the Console UART.
References uart_rs232_options::baudrate, NULL, stdio_serial_init(), and sysclk_enable_peripheral_clock().
Referenced by main().
int main | ( | void | ) |
pmc_clock_failure_detect_example Application entry point.
Enable Clock Failure Detection function in PMC, turn on a LED to indicate that a clock failure is detected.
References board_init(), configure_console(), pmc_enable_clock_failure_detector(), pmc_enable_interrupt(), STRING_HEADER, and sysclk_init().
void PMC_Handler | ( | void | ) |