Microchip® Advanced Software Framework

stk600_rcuc3l3.h File Reference

STK600 with the RCUC3L3 routing card header file.

This file contains definitions and services related to the features of the STK600 with the RCUC3L3 routing card. As the STK600 Leds, switches, clocks are configurable (hardware through connectors and software through Atmel Studio6), the proposed definitions below should be considered as examples and may be modified for a given application.

To use this board define BOARD=STK600_RCUC3L3.

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

#include "compiler.h"
#include "led.h"

Macros

#define _STK600_RCUC3L43_H_
 
GPIO Connections of LEDs.

To use these defines, connect the STK600 PORTE connectors to respectively the LEDs LED0-to-LED7 connectors. Note that when the JTAG is active, it uses pins PA00-to-PA03 of the UC3L. So we should not use pins PA00-to-PA03 for the LEDs.

#define LED0_GPIO   AVR32_PIN_PB08
 
#define LED1_GPIO   AVR32_PIN_PB09
 
#define LED2_GPIO   AVR32_PIN_PB10
 
#define LED3_GPIO   AVR32_PIN_PB11
 
#define LED4_GPIO   AVR32_PIN_PB12
 
#define LED5_GPIO   AVR32_PIN_PB13
 
#define LED6_GPIO   AVR32_PIN_PB14
 
#define LED7_GPIO   AVR32_PIN_PB15
 
#define LED_COUNT   8
 Number of LEDs. More...
 
GPIO Connections of Push Buttons. To use these defines, connect the

STK600 PORTF connector to the SWITCHES connector.

#define GPIO_PUSH_BUTTON_SW0   AVR32_PIN_PB16
 
#define GPIO_PUSH_BUTTON_SW0_PRESSED   0
 
#define GPIO_PUSH_BUTTON_SW1   AVR32_PIN_PB17
 
#define GPIO_PUSH_BUTTON_SW1_PRESSED   0
 
#define GPIO_PUSH_BUTTON_SW2   AVR32_PIN_PB18
 
#define GPIO_PUSH_BUTTON_SW2_PRESSED   0
 
#define GPIO_PUSH_BUTTON_SW3   AVR32_PIN_PB19
 
#define GPIO_PUSH_BUTTON_SW3_PRESSED   0
 
#define GPIO_PUSH_BUTTON_SW4   AVR32_PIN_PB20
 
#define GPIO_PUSH_BUTTON_SW4_PRESSED   0
 
#define GPIO_PUSH_BUTTON_SW5   AVR32_PIN_PB21
 
#define GPIO_PUSH_BUTTON_SW5_PRESSED   0
 
#define GPIO_PUSH_BUTTON_SW6   AVR32_PIN_PB22
 
#define GPIO_PUSH_BUTTON_SW6_PRESSED   0
 
#define GPIO_PUSH_BUTTON_SW7   AVR32_PIN_PB23
 
#define GPIO_PUSH_BUTTON_SW7_PRESSED   0
 
DataFlash memory (AT45DBX)
#define AT45DBX_SPI   (&AVR32_SPI)
 
#define AT45DBX_SPI_NPCS   0
 
#define AT45DBX_SPI_SCK_PIN   AVR32_SPI_SCK_0_0_PIN
 SCK pin. More...
 
#define AT45DBX_SPI_SCK_FUNCTION   AVR32_SPI_SCK_0_0_FUNCTION
 
#define AT45DBX_SPI_MOSI_PIN   AVR32_SPI_MOSI_0_0_PIN
 MOSI pin. More...
 
#define AT45DBX_SPI_MOSI_FUNCTION   AVR32_SPI_MOSI_0_0_FUNCTION
 
#define AT45DBX_SPI_MISO_PIN   AVR32_SPI_MISO_0_0_PIN
 MISO pin. More...
 
#define AT45DBX_SPI_MISO_FUNCTION   AVR32_SPI_MISO_0_0_FUNCTION
 
#define AT45DBX_SPI_NPCS0_PIN   AVR32_SPI_NPCS_0_2_PIN
 CS pin. More...
 
#define AT45DBX_SPI_NPCS0_FUNCTION   AVR32_SPI_NPCS_0_2_FUNCTION
 
External oscillator
#define FRCOSC   (AVR32_SCIF_RCOSC_FREQUENCY)
 RCOsc frequency: Hz. More...
 
#define FOSC32   (32768)
 Osc32 frequency (Hz.) and startup time (RCOsc periods). More...
 
#define OSC32_STARTUP   (AVR32_SCIF_OSCCTRL32_STARTUP_8192_RCOSC)
 
#define FOSC0   (16000000)
 Osc frequency (Hz.) and startup time (RCOsc periods). More...
 
#define OSC0_STARTUP   (AVR32_SCIF_OSCCTRL0_STARTUP_128_RCOSC)
 
Board oscillator configuration
#define BOARD_OSC32_IS_XTAL   true
 OSC32 uses a crystal, not an external clock. More...
 
#define BOARD_OSC32_HZ   FOSC32
 Clock frequency of OSC32 in Hz. More...
 
#define BOARD_OSC32_STARTUP_US   (71000)
 Startup time of OSC32 in microseconds. More...
 
#define BOARD_OSC0_IS_XTAL   true
 OSC0 uses a crystal, not an external clock. More...
 
#define BOARD_OSC0_HZ   FOSC0
 Clock frequency of OSC0 in Hz. More...
 
#define BOARD_OSC0_STARTUP_US   (1100)
 Startup time of OSC0 in microseconds. More...
 
Initialization
Note
Define these symbols in conf_board.h to enable the corresponding features.
#define CONF_BOARD_AT45DBX
 Initialize SPI pins for AT45DBX DataFlash. More...
 
#define CONF_BOARD_COM_PORT
 Initialize USART pins for uart usage. More...
 

#define _STK600_RCUC3L43_H_