Microchip® Advanced Software Framework

bpm_example.c File Reference

BPM example.

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

#include <asf.h>
#include <conf_board.h>

Functions

static void ast_per_callback (void)
 AST interrupt handler. More...
 
static void config_ast (void)
 Initialize AST to generate 1Hz counter. More...
 
static void config_backup_wakeup (void)
 
static void config_buttons (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_callback (void)
 EIC interrupt handler for push button interrupt. More...
 
int main (void)
 Application entry point for BPM example. More...
 

Variables

static bool ps_status = BPM_PS_1
 

static void ast_per_callback ( void  )
static

AST interrupt handler.

References ast_clear_interrupt_flag(), AST_INTERRUPT_PER, and ast_stop().

Referenced by config_ast().

static void config_backup_wakeup ( void  )
static

Retain I/O lines after wakeup from backup. Disable to undo the previous retention state then enable.

References bpm_disable_io_retention(), bpm_enable_backup_pin(), bpm_enable_fast_wakeup(), bpm_enable_io_retention(), and bpm_enable_wakeup_source().

Referenced by main().

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_callback ( void  )
static

bool ps_status = BPM_PS_1
static

Referenced by main(), and ui_lcd_refresh_txt().