Board specific definitions for the Sipeed Longan Nano board. More...
Board specific definitions for the Sipeed Longan Nano board.
Definition in file board.h.
 Include dependency graph for board.h:
 This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Button pin definitions | |
| #define | BTN0_PIN GPIO_PIN(PORT_A, 8) | 
| #define | BTN0_MODE GPIO_IN | 
| #define | BTN0_INT_FLANK GPIO_RISING | 
LED (on-board) configuration | |
| #define | LED0_PIN GPIO_PIN(PORT_C, 13) | 
| #define | LED0_MASK (1 << 13) | 
| #define | LED0_ON (GPIOC->BC = LED0_MASK) | 
| #define | LED0_OFF (GPIOC->BOP = LED0_MASK) | 
| #define | LED0_TOGGLE (GPIOC->OCTL ^= LED0_MASK) | 
| #define | LED1_PIN GPIO_PIN(PORT_A, 1) | 
| #define | LED1_MASK (1 << 1) | 
| #define | LED1_ON (GPIOA->BC = LED1_MASK) | 
| #define | LED1_OFF (GPIOA->BOP = LED1_MASK) | 
| #define | LED1_TOGGLE (GPIOA->OCTL ^= LED1_MASK) | 
| #define | LED2_PIN GPIO_PIN(PORT_A, 2) | 
| #define | LED2_MASK (1 << 2) | 
| #define | LED2_ON (GPIOA->BC = LED2_MASK) | 
| #define | LED2_OFF (GPIOA->BOP = LED2_MASK) | 
| #define | LED2_TOGGLE (GPIOA->OCTL ^= LED2_MASK) | 
| #define | LED_RED_PIN LED0_PIN | 
| LED0 is red.  | |
| #define | LED_GREEN_PIN LED1_PIN | 
| LED1 is green.  | |
| #define | LED_BLUE_PIN LED2_PIN | 
| LED2 is blue.  | |
MTD configuration | |
| #define | MTD_0 mtd_dev_get(0) | 
| MTD device for the SD Card.  | |
SD-Card interface configuration | |
| #define | SDCARD_SPI_PARAM_SPI SPI_DEV(0) | 
| #define | SDCARD_SPI_PARAM_CS GPIO_PIN(PORT_B, 12) | 
| #define | SDCARD_SPI_PARAM_CLK GPIO_PIN(PORT_B, 13) | 
| #define | SDCARD_SPI_PARAM_MISO GPIO_PIN(PORT_B, 14) | 
| #define | SDCARD_SPI_PARAM_MOSI GPIO_PIN(PORT_B, 15) |