Microchip® Advanced Software Framework

conf_example.h File Reference

Board-specific example configuration.

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

#include <compiler.h>
#include <board.h>

Macros

Example configuration
#define BUTTON_PIN   GPIO_PUSH_BUTTON_2
 ID of pin for asynchronous wake-up of the device. More...
 
#define BUTTON_vect   PORTF_INT0_vect
 Vector of pin change interrupt 0 for BUTTON_PIN. More...
 
#define LED_PIN   LED2_GPIO
 ID of pin for indication of activity. More...
 

#define BUTTON_PIN   GPIO_PUSH_BUTTON_2

ID of pin for asynchronous wake-up of the device.

This must be pin 2 of a port, for asynchronous wake-up to function. The pin is configured as input, with pull-up and interrupt sensing on falling edges.

Note
This is the board button 2 pin on Xplain.

Referenced by ISR(), and main().

#define BUTTON_vect   PORTF_INT0_vect

Vector of pin change interrupt 0 for BUTTON_PIN.

#define LED_PIN   LED2_GPIO

ID of pin for indication of activity.

This pin is driven low while the device is active, and high right before the device enters sleep. It may, e.g., be connected to a LED.

Note
This is the board LED 2 pin on Xplain.

Referenced by main().