Microchip® Advanced Software Framework

picouart_example1.c File Reference

PICOUART example 1 for SAM.

Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>
#include "board_monitor.h"

Functions

static void config_buttons (void)
 
static void config_wakeup (void)
 
static void configure_console (void)
 Configure serial console. More...
 
static void display_menu (void)
 Display the user menu on the terminal. More...
 
static void eic_5_callback (void)
 EIC interrupt handler for push button interrupt. More...
 
int main (void)
 main function : do init and loop (poll if configured so) More...
 
void PM_Handler (void)
 

Variables

static volatile bool bm_flag = true
 

static void config_wakeup ( void  )
static
static void configure_console ( void  )
static

Configure serial console.

References uart_rs232_options::baudrate, and stdio_serial_init().

Referenced by main().

static void display_menu ( void  )
static

Display the user menu on the terminal.

Referenced by main().

static void eic_5_callback ( void  )
static

EIC interrupt handler for push button interrupt.

References eic_line_clear_interrupt(), and eic_line_interrupt_is_pending().

Referenced by config_buttons().

void PM_Handler ( void  )

volatile bool bm_flag = true
static

Referenced by main().