Loading...
Searching...
No Matches
board.h File Reference

Board specific definitions for the spark-core board. More...

Detailed Description

Board specific definitions for the spark-core board.

Author
Christian Mehlis mehli.nosp@m.s@in.nosp@m.f.fu-.nosp@m.berl.nosp@m.in.de

Definition in file board.h.

#include <stdint.h>
#include "cpu.h"
#include "periph_conf.h"
#include "stm32_leds.h"
+ Include dependency graph for board.h:

Go to the source code of this file.

Tell the xtimer that we use a 16-bit peripheral timer

#define XTIMER_WIDTH   (16)
 

Macros for controlling the on-board LEDs

#define LED0_PIN_NUM   9
 
#define LED0_PORT   GPIO_PORT_A
 GPIO port of LED 0.
 
#define LED0_PORT_NUM   PORT_A
 
#define LED1_PIN_NUM   10
 
#define LED1_PORT   GPIO_PORT_A
 GPIO port of LED 1.
 
#define LED1_PORT_NUM   PORT_A
 
#define LED2_PIN_NUM   8
 
#define LED2_PORT   GPIO_PORT_A
 GPIO port of LED 2.
 
#define LED2_PORT_NUM   PORT_A
 
#define LED3_PIN_NUM   13
 
#define LED3_PORT   GPIO_PORT_A
 GPIO port of LED 3.
 
#define LED3_PORT_NUM   PORT_A
 

User button configuration

#define BUTTON1   GPIO_PIN(PORT_B,2)
 

CC3000 pin configuration

#define CC3000_SPI   SPI_DEV(0)
 
#define CC3000_CS   GPIO_PIN(PORT_B,12)
 
#define CC3000_EN   GPIO_PIN(PORT_B,8)
 
#define CC3000_INT   GPIO_PIN(PORT_B,11)
 

EXTFLASH pin configuration

#define EXTFLASH_SPI   SPI_DEV(0)
 
#define EXTFLASH   GPIO_PIN(PORT_B,9)
 

Macro Definition Documentation

◆ BUTTON1

#define BUTTON1   GPIO_PIN(PORT_B,2)

Definition at line 61 of file board.h.

◆ CC3000_CS

#define CC3000_CS   GPIO_PIN(PORT_B,12)

Definition at line 69 of file board.h.

◆ CC3000_EN

#define CC3000_EN   GPIO_PIN(PORT_B,8)

Definition at line 70 of file board.h.

◆ CC3000_INT

#define CC3000_INT   GPIO_PIN(PORT_B,11)

Definition at line 71 of file board.h.

◆ CC3000_SPI

#define CC3000_SPI   SPI_DEV(0)

Definition at line 68 of file board.h.

◆ EXTFLASH

#define EXTFLASH   GPIO_PIN(PORT_B,9)

Definition at line 79 of file board.h.

◆ EXTFLASH_SPI

#define EXTFLASH_SPI   SPI_DEV(0)

Definition at line 78 of file board.h.

◆ LED0_PIN_NUM

#define LED0_PIN_NUM   9

Definition at line 40 of file board.h.

◆ LED0_PORT

#define LED0_PORT   GPIO_PORT_A

GPIO port of LED 0.

Definition at line 41 of file board.h.

◆ LED0_PORT_NUM

#define LED0_PORT_NUM   PORT_A

Definition at line 42 of file board.h.

◆ LED1_PIN_NUM

#define LED1_PIN_NUM   10

Definition at line 44 of file board.h.

◆ LED1_PORT

#define LED1_PORT   GPIO_PORT_A

GPIO port of LED 1.

Definition at line 45 of file board.h.

◆ LED1_PORT_NUM

#define LED1_PORT_NUM   PORT_A

Definition at line 46 of file board.h.

◆ LED2_PIN_NUM

#define LED2_PIN_NUM   8

Definition at line 48 of file board.h.

◆ LED2_PORT

#define LED2_PORT   GPIO_PORT_A

GPIO port of LED 2.

Definition at line 49 of file board.h.

◆ LED2_PORT_NUM

#define LED2_PORT_NUM   PORT_A

Definition at line 50 of file board.h.

◆ LED3_PIN_NUM

#define LED3_PIN_NUM   13

Definition at line 52 of file board.h.

◆ LED3_PORT

#define LED3_PORT   GPIO_PORT_A

GPIO port of LED 3.

Definition at line 53 of file board.h.

◆ LED3_PORT_NUM

#define LED3_PORT_NUM   PORT_A

Definition at line 54 of file board.h.

◆ XTIMER_WIDTH

#define XTIMER_WIDTH   (16)

Definition at line 34 of file board.h.