Microchip® Advanced Software Framework

stk600.h File Reference

STK board header file.

This file contains definitions and services related to the features of the STK600 board.

To use this board, define BOARD= STK600_MEGA.

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

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

Macros

#define GPIO_PUSH_BUTTON_ON_BOARD   IOPORT_CREATE_PIN(PORTE, 5)
 
#define LED_GREEN_GPIO   IOPORT_CREATE_PIN(PORTE, 2)
 
#define LED_RED_GPIO   IOPORT_CREATE_PIN(PORTE, 4)
 
#define LED_YELLOW_GPIO   IOPORT_CREATE_PIN(PORTE, 3)
 
GPIO Connections of LEDs

LEDS connector is connected to PORTB

Note
Caution! Please remove AREF0 Jumper on STK600.
#define LED0_GPIO   IOPORT_CREATE_PIN(PORTB, 0)
 
#define LED1_GPIO   IOPORT_CREATE_PIN(PORTB, 1)
 
#define LED2_GPIO   IOPORT_CREATE_PIN(PORTB, 2)
 
#define LED3_GPIO   IOPORT_CREATE_PIN(PORTB, 3)
 
#define LED4_GPIO   IOPORT_CREATE_PIN(PORTB, 4)
 
#define LED5_GPIO   IOPORT_CREATE_PIN(PORTB, 5)
 
#define LED6_GPIO   IOPORT_CREATE_PIN(PORTB, 6)
 
#define LED7_GPIO   IOPORT_CREATE_PIN(PORTB, 7)
 
#define LED0   LED0_GPIO
 
#define LED1   LED1_GPIO
 
#define LED2   LED2_GPIO
 
#define LED3   LED3_GPIO
 
#define LED4   LED4_GPIO
 
#define LED5   LED5_GPIO
 
#define LED6   LED6_GPIO
 
#define LED7   LED7_GPIO
 
GPIO Connections of Push Buttons. To use these defines, connect the

STK600 PORTD connector to the SWITCHES connector.

#define GPIO_PUSH_BUTTON_0   IOPORT_CREATE_PIN(PORTD, 0)
 
#define GPIO_PUSH_BUTTON_1   IOPORT_CREATE_PIN(PORTD, 1)
 
#define GPIO_PUSH_BUTTON_2   IOPORT_CREATE_PIN(PORTD, 2)
 
#define GPIO_PUSH_BUTTON_3   IOPORT_CREATE_PIN(PORTD, 3)
 
#define GPIO_PUSH_BUTTON_4   IOPORT_CREATE_PIN(PORTD, 4)
 
#define GPIO_PUSH_BUTTON_5   IOPORT_CREATE_PIN(PORTD, 5)
 
#define GPIO_PUSH_BUTTON_6   IOPORT_CREATE_PIN(PORTD, 6)
 
#define GPIO_PUSH_BUTTON_7   IOPORT_CREATE_PIN(PORTD, 7)
 
External oscillator
#define BOARD_EXTERNAL_CLK   32000000UL
 
SPI Connections of the AT45DBX Data Flash Memory. To use these defines,

connect :

  • PB0 to /CS pin on DataFlash connector
  • PB1 to SCK pin on DataFlash connector
  • PB3 to SO pin on DataFlash connector
  • PB2 to SI pin on DataFlash connector
#define AT45DBX_SPI   &SPCR
 
#define AT45DBX_CS   IOPORT_CREATE_PIN(PORTB,0)
 
#define AT45DBX_MASTER_SS   IOPORT_CREATE_PIN(PORTB,0)
 
#define AT45DBX_MASTER_SCK   IOPORT_CREATE_PIN(PORTB,1)
 
#define AT45DBX_MASTER_MOSI   IOPORT_CREATE_PIN(PORTB,2)
 
#define AT45DBX_MASTER_MISO   IOPORT_CREATE_PIN(PORTB,3)
 

#define AT45DBX_CS   IOPORT_CREATE_PIN(PORTB,0)

Referenced by board_init().

#define AT45DBX_MASTER_MISO   IOPORT_CREATE_PIN(PORTB,3)

Referenced by board_init().

#define AT45DBX_MASTER_MOSI   IOPORT_CREATE_PIN(PORTB,2)

Referenced by board_init().

#define AT45DBX_MASTER_SCK   IOPORT_CREATE_PIN(PORTB,1)

Referenced by board_init().

#define AT45DBX_MASTER_SS   IOPORT_CREATE_PIN(PORTB,0)
#define AT45DBX_SPI   &SPCR
#define BOARD_EXTERNAL_CLK   32000000UL

Referenced by sysclk_get_main_hz().

#define GPIO_PUSH_BUTTON_0   IOPORT_CREATE_PIN(PORTD, 0)

Referenced by board_init().

#define GPIO_PUSH_BUTTON_1   IOPORT_CREATE_PIN(PORTD, 1)

Referenced by board_init().

#define GPIO_PUSH_BUTTON_2   IOPORT_CREATE_PIN(PORTD, 2)

Referenced by board_init().

#define GPIO_PUSH_BUTTON_3   IOPORT_CREATE_PIN(PORTD, 3)

Referenced by board_init().

#define GPIO_PUSH_BUTTON_4   IOPORT_CREATE_PIN(PORTD, 4)

Referenced by board_init().

#define GPIO_PUSH_BUTTON_5   IOPORT_CREATE_PIN(PORTD, 5)

Referenced by board_init().

#define GPIO_PUSH_BUTTON_6   IOPORT_CREATE_PIN(PORTD, 6)

Referenced by board_init().

#define GPIO_PUSH_BUTTON_7   IOPORT_CREATE_PIN(PORTD, 7)

Referenced by board_init().

#define GPIO_PUSH_BUTTON_ON_BOARD   IOPORT_CREATE_PIN(PORTE, 5)

Referenced by board_init().

#define LED0   LED0_GPIO
#define LED0_GPIO   IOPORT_CREATE_PIN(PORTB, 0)

Referenced by board_init().

#define LED1   LED1_GPIO
#define LED1_GPIO   IOPORT_CREATE_PIN(PORTB, 1)

Referenced by board_init().

#define LED2   LED2_GPIO
#define LED2_GPIO   IOPORT_CREATE_PIN(PORTB, 2)

Referenced by board_init().

#define LED3   LED3_GPIO
#define LED3_GPIO   IOPORT_CREATE_PIN(PORTB, 3)

Referenced by board_init().

#define LED4   LED4_GPIO
#define LED4_GPIO   IOPORT_CREATE_PIN(PORTB, 4)

Referenced by board_init().

#define LED5   LED5_GPIO
#define LED5_GPIO   IOPORT_CREATE_PIN(PORTB, 5)

Referenced by board_init().

#define LED6   LED6_GPIO
#define LED6_GPIO   IOPORT_CREATE_PIN(PORTB, 6)

Referenced by board_init().

#define LED7   LED7_GPIO
#define LED7_GPIO   IOPORT_CREATE_PIN(PORTB, 7)

Referenced by board_init().

#define LED_GREEN_GPIO   IOPORT_CREATE_PIN(PORTE, 2)

Referenced by board_init().

#define LED_RED_GPIO   IOPORT_CREATE_PIN(PORTE, 4)

Referenced by board_init().

#define LED_YELLOW_GPIO   IOPORT_CREATE_PIN(PORTE, 3)

Referenced by board_init().