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

Board specific definitions for the QN9080DK base board. More...

Detailed Description

Board specific definitions for the QN9080DK base board.

Author
iosabi iosab.nosp@m.i@pr.nosp@m.otonm.nosp@m.ail..nosp@m.com

Definition in file board.h.

#include "cpu.h"
#include "periph_conf.h"
#include "periph_cpu.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.

LED configuration

#define LED_RED_PIN   GPIO_PIN(PORT_A, 31)
 
#define LED_GREEN_PIN   GPIO_PIN(PORT_A, 25)
 
#define LED_BLUE_PIN   GPIO_PIN(PORT_A, 13)
 

User buttons

#define BTN1_PIN   GPIO_PIN(PORT_A, 24)
 
#define BTN1_MODE   GPIO_IN_PU
 
#define BTN2_PIN   GPIO_PIN(PORT_A, 19)
 
#define BTN2_MODE   GPIO_IN_PU
 

MMA8652FC 3-axis accelerometer bus configuration

The MMA8652FC in the QN9080DK is only available when JP11 is shorted (the factory default).

#define MMA8X5X_PARAM_I2C   I2C_DEV(0)
 
#define MMA8X5X_PARAM_ADDR   0x1D
 
#define MMA8X5X_PARAM_TYPE   (MMA8X5X_TYPE_MMA8652)
 

MTD configuration

#define MTD_0   mtd_dev_get(0)
 

Macro Definition Documentation

◆ BTN1_MODE

#define BTN1_MODE   GPIO_IN_PU

Definition at line 44 of file board.h.

◆ BTN1_PIN

#define BTN1_PIN   GPIO_PIN(PORT_A, 24)

Definition at line 43 of file board.h.

◆ BTN2_MODE

#define BTN2_MODE   GPIO_IN_PU

Definition at line 46 of file board.h.

◆ BTN2_PIN

#define BTN2_PIN   GPIO_PIN(PORT_A, 19)

Definition at line 45 of file board.h.

◆ LED_BLUE_PIN

#define LED_BLUE_PIN   GPIO_PIN(PORT_A, 13)

Definition at line 36 of file board.h.

◆ LED_GREEN_PIN

#define LED_GREEN_PIN   GPIO_PIN(PORT_A, 25)

Definition at line 35 of file board.h.

◆ LED_RED_PIN

#define LED_RED_PIN   GPIO_PIN(PORT_A, 31)

Definition at line 34 of file board.h.

◆ MMA8X5X_PARAM_ADDR

#define MMA8X5X_PARAM_ADDR   0x1D

Definition at line 57 of file board.h.

◆ MMA8X5X_PARAM_I2C

#define MMA8X5X_PARAM_I2C   I2C_DEV(0)

Definition at line 56 of file board.h.

◆ MMA8X5X_PARAM_TYPE

#define MMA8X5X_PARAM_TYPE   (MMA8X5X_TYPE_MMA8652)

Definition at line 58 of file board.h.

◆ MTD_0

#define MTD_0   mtd_dev_get(0)

Definition at line 65 of file board.h.