Microchip® Advanced Software Framework

user_board.h File Reference
#include "compiler.h"
#include "led.h"

Macros

#define BOARD_OSC0_HZ   12000000
 
#define BOARD_OSC0_IS_XTAL   true
 
#define BOARD_OSC0_STARTUP_US   17000
 
#define LED_COUNT   4
 Number of LEDs. More...
 
Oscillator Definitions
#define FOSC0   12000000
 Osc0 frequency: Hz. More...
 
#define OSC0_STARTUP   AVR32_PM_OSCCTRL0_STARTUP_2048_RCOSC
 Osc0 startup time: RCOsc periods. More...
 
USB Definitions
#define USB_ID   AVR32_USBB_USB_ID_0_0
 Multiplexed pin used for USB_ID: AVR32_USBB_USB_ID_x_x. More...
 
#define USB_VBOF   AVR32_USBB_USB_VBOF_0_0
 Multiplexed pin used for USB_VBOF: AVR32_USBB_USB_VBOF_x_x. More...
 
#define USB_VBOF_ACTIVE_LEVEL   LOW
 Active level of the USB_VBOF output pin. More...
 
#define USB_OVERCURRENT_DETECT_PIN   AVR32_PIN_PA20
 USB overcurrent detection pin. More...
 
GPIO Connections of LEDs
#define LED0_GPIO   AVR32_PIN_PA07
 
#define LED1_GPIO   AVR32_PIN_PA08
 
#define LED2_GPIO   AVR32_PIN_PA21
 
#define LED3_GPIO   AVR32_PIN_PA22
 
PWM Channels of LEDs
#define LED0_PWM   0
 
#define LED1_PWM   1
 
#define LED2_PWM   2
 
#define LED3_PWM   6
 
PWM Functions of LEDs
#define LED0_PWM_FUNCTION   AVR32_PWM_0_0_FUNCTION
 
#define LED1_PWM_FUNCTION   AVR32_PWM_1_0_FUNCTION
 
#define LED2_PWM_FUNCTION   AVR32_PWM_2_0_FUNCTION
 
#define LED3_PWM_FUNCTION   AVR32_PWM_6_0_FUNCTION
 
Color Identifiers of LEDs to Use with LED Functions
#define LED_MONO0_GREEN   LED0
 
#define LED_MONO1_GREEN   LED1
 
#define LED_MONO2_GREEN   LED2
 
#define LED_MONO3_GREEN   LED3
 
GPIO Connections of Push Buttons
#define GPIO_PUSH_BUTTON_0   AVR32_PIN_PB02
 
#define GPIO_PUSH_BUTTON_0_PRESSED   0
 
#define GPIO_PUSH_BUTTON_1   AVR32_PIN_PB03
 
#define GPIO_PUSH_BUTTON_1_PRESSED   0
 
GPIO Connections of the Joystick
#define GPIO_JOYSTICK_PUSH   AVR32_PIN_PA13
 
#define GPIO_JOYSTICK_PUSH_PRESSED   0
 
#define GPIO_JOYSTICK_LEFT   AVR32_PIN_PB06
 
#define GPIO_JOYSTICK_LEFT_PRESSED   0
 
#define GPIO_JOYSTICK_RIGHT   AVR32_PIN_PB09
 
#define GPIO_JOYSTICK_RIGHT_PRESSED   0
 
#define GPIO_JOYSTICK_UP   AVR32_PIN_PB07
 
#define GPIO_JOYSTICK_UP_PRESSED   0
 
#define GPIO_JOYSTICK_DOWN   AVR32_PIN_PB08
 
#define GPIO_JOYSTICK_DOWN_PRESSED   0
 

#define BOARD_OSC0_HZ   12000000
#define BOARD_OSC0_IS_XTAL   true
#define BOARD_OSC0_STARTUP_US   17000
#define GPIO_JOYSTICK_DOWN   AVR32_PIN_PB08

Referenced by is_joystick_down().

#define GPIO_JOYSTICK_DOWN_PRESSED   0

Referenced by is_joystick_down().

#define GPIO_JOYSTICK_LEFT   AVR32_PIN_PB06

Referenced by is_joystick_left().

#define GPIO_JOYSTICK_LEFT_PRESSED   0

Referenced by is_joystick_left().

#define GPIO_JOYSTICK_PUSH   AVR32_PIN_PA13

Referenced by is_joystick_pressed().

#define GPIO_JOYSTICK_PUSH_PRESSED   0

Referenced by is_joystick_pressed().

#define GPIO_JOYSTICK_RIGHT   AVR32_PIN_PB09

Referenced by is_joystick_right().

#define GPIO_JOYSTICK_RIGHT_PRESSED   0

Referenced by is_joystick_right().

#define GPIO_JOYSTICK_UP   AVR32_PIN_PB07

Referenced by is_joystick_up().

#define GPIO_JOYSTICK_UP_PRESSED   0

Referenced by is_joystick_up().

#define GPIO_PUSH_BUTTON_0   AVR32_PIN_PB02
#define GPIO_PUSH_BUTTON_0_PRESSED   0
#define GPIO_PUSH_BUTTON_1   AVR32_PIN_PB03
#define GPIO_PUSH_BUTTON_1_PRESSED   0
#define LED0_GPIO   AVR32_PIN_PA07
#define LED0_PWM   0
#define LED0_PWM_FUNCTION   AVR32_PWM_0_0_FUNCTION
#define LED1_GPIO   AVR32_PIN_PA08
#define LED1_PWM   1
#define LED1_PWM_FUNCTION   AVR32_PWM_1_0_FUNCTION
#define LED2_GPIO   AVR32_PIN_PA21
#define LED2_PWM   2
#define LED2_PWM_FUNCTION   AVR32_PWM_2_0_FUNCTION
#define LED3_GPIO   AVR32_PIN_PA22
#define LED3_PWM   6
#define LED3_PWM_FUNCTION   AVR32_PWM_6_0_FUNCTION
#define LED_COUNT   4
#define OSC0_STARTUP   AVR32_PM_OSCCTRL0_STARTUP_2048_RCOSC

Osc0 startup time: RCOsc periods.

Referenced by clockfrequencies_configure(), init_sys_clocks(), local_start_highfreq_clock(), main(), and sys_cpu_48MHz().

#define USB_ID   AVR32_USBB_USB_ID_0_0

Multiplexed pin used for USB_ID: AVR32_USBB_USB_ID_x_x.

To be selected according to the AVR32_USBB_USB_ID_x_x_PIN and AVR32_USBB_USB_ID_x_x_FUNCTION definitions from <avr32/uc3bxxxx.h>.

#define USB_OVERCURRENT_DETECT_PIN   AVR32_PIN_PA20

USB overcurrent detection pin.

#define USB_VBOF   AVR32_USBB_USB_VBOF_0_0

Multiplexed pin used for USB_VBOF: AVR32_USBB_USB_VBOF_x_x.

To be selected according to the AVR32_USBB_USB_VBOF_x_x_PIN and AVR32_USBB_USB_VBOF_x_x_FUNCTION definitions from <avr32/uc3bxxxx.h>.

#define USB_VBOF_ACTIVE_LEVEL   LOW

Active level of the USB_VBOF output pin.