Microchip® Advanced Software Framework

atmega168pb_xplained_mini.h File Reference

ATMEGA168PB_XPLAINED_MINI board header file.

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

To use this board, define BOARD= ATMEGA168PB_XPLAINED_MINI.

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

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

Macros

#define BOARD_NAME   "ATMEGA168PB_XPLAINED_MINI"
 
#define GPIO_PUSH_BUTTON_0   IOPORT_CREATE_PIN(PORTB, 7)
 
#define LED0   LED0_GPIO
 
#define LED0_GPIO   IOPORT_CREATE_PIN(PORTB, 5)
 
#define LED_COUNT   1
 Number of LEDs. More...
 
#define MCU_SOC_NAME   "ATMEGA168PB"
 
Communication interfaces
#define TWID_SDA   IOPORT_CREATE_PIN(PORTC, 4)
 
#define TWID_SCL   IOPORT_CREATE_PIN(PORTC, 5)
 
#define USART_RX   IOPORT_CREATE_PIN(PORTD, 0)
 
#define USART_TX   IOPORT_CREATE_PIN(PORTD, 1)
 
#define SPI_SS_A   IOPORT_CREATE_PIN(PORTB, 2)
 
#define SPI_MOSI   IOPORT_CREATE_PIN(PORTB, 3)
 
#define SPI_MISO   IOPORT_CREATE_PIN(PORTB, 4)
 
#define SPI_SCK   IOPORT_CREATE_PIN(PORTB, 5)
 

#define BOARD_NAME   "ATMEGA168PB_XPLAINED_MINI"
#define GPIO_PUSH_BUTTON_0   IOPORT_CREATE_PIN(PORTB, 7)

Referenced by board_init(), and morse_poll().

#define LED0   LED0_GPIO
#define LED0_GPIO   IOPORT_CREATE_PIN(PORTB, 5)
#define LED_COUNT   1

Number of LEDs.

#define MCU_SOC_NAME   "ATMEGA168PB"
#define SPI_MISO   IOPORT_CREATE_PIN(PORTB, 4)
#define SPI_MOSI   IOPORT_CREATE_PIN(PORTB, 3)
#define SPI_SCK   IOPORT_CREATE_PIN(PORTB, 5)
#define SPI_SS_A   IOPORT_CREATE_PIN(PORTB, 2)
#define TWID_SCL   IOPORT_CREATE_PIN(PORTC, 5)
#define TWID_SDA   IOPORT_CREATE_PIN(PORTC, 4)
#define USART_RX   IOPORT_CREATE_PIN(PORTD, 0)
#define USART_TX   IOPORT_CREATE_PIN(PORTD, 1)