Board specific definitions for the xG23-PK6068A. More...

Detailed Description

Board specific definitions for the xG23-PK6068A.

Juergen Fitschen

Definition in file board.h.

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


void board_init (void)
 Initialize board specific hardware.
#define PM_BLOCKER_INITIAL   { 0, 0, 0 }
 Initialize pm_layered with no pre-defined blockers. More...

ztimer configuration


Board VCOM interface

Power mode required for GPIO IRQs

If all GPIO IRQs are expected on port A or B, EM3 is the lowest allowed power mode. No power level has to be blocked in this case. If GPIO IRQs shall be fired on port C or D, we must stay in EM1. Uncomment the line down below in this case.

Define the GPIO pin to enable the VCOM interface

#define VCOM_UART   UART_DEV(0)
#define VCOM_EN_PIN   GPIO_PIN(PB, 0)

Push button pin definitions

#define PB0_PIN   GPIO_PIN(PB, 1)
#define PB1_PIN   GPIO_PIN(PB, 3)

LED pin definitions

#define LED0_PIN   GPIO_PIN(PB, 2)
#define LED1_PIN   GPIO_PIN(PD, 3)

Macros for controlling the on-board LEDs

#define LED0_ON   gpio_set(LED0_PIN)
#define LED0_OFF   gpio_clear(LED0_PIN)
#define LED0_TOGGLE   gpio_toggle(LED0_PIN)
#define LED1_ON   gpio_set(LED1_PIN)
#define LED1_OFF   gpio_clear(LED1_PIN)
#define LED1_TOGGLE   gpio_toggle(LED1_PIN)

Display configuration

Connection to the on-board Sharp Memory LCD (LS013B7DH03).

#define DISP_SPI   SPI_DEV(0)
#define DISP_SCS_PIN   GPIO_PIN(PC, 8)

Flash configuration

Connection to the on-board MX25R8035F.

#define FLASH_SPI   SPI_DEV(0)
#define FLASH_CS_PIN   GPIO_PIN(PC, 4)

Sensor configuration

Connection to the on-board Si7021 temperature & humidity sensor.

#define SI70XX_PARAM_I2C_DEV   I2C_DEV(0)
#define SI7021_EN_PIN   GPIO_PIN(PC, 9)

Macro Definition Documentation



Definition at line 45 of file board.h.



Definition at line 42 of file board.h.



Definition at line 43 of file board.h.



Definition at line 44 of file board.h.



Definition at line 103 of file board.h.



Definition at line 102 of file board.h.


#define DISP_SCS_PIN   GPIO_PIN(PC, 8)

Definition at line 101 of file board.h.


#define DISP_SPI   SPI_DEV(0)

Definition at line 100 of file board.h.


#define FLASH_CS_PIN   GPIO_PIN(PC, 4)

Definition at line 113 of file board.h.


#define FLASH_SPI   SPI_DEV(0)

Definition at line 112 of file board.h.


#define LED0_OFF   gpio_clear(LED0_PIN)

Definition at line 87 of file board.h.


#define LED0_ON   gpio_set(LED0_PIN)

Definition at line 86 of file board.h.


#define LED0_PIN   GPIO_PIN(PB, 2)

Definition at line 78 of file board.h.


#define LED0_TOGGLE   gpio_toggle(LED0_PIN)

Definition at line 88 of file board.h.


#define LED1_OFF   gpio_clear(LED1_PIN)

Definition at line 90 of file board.h.


#define LED1_ON   gpio_set(LED1_PIN)

Definition at line 89 of file board.h.


#define LED1_PIN   GPIO_PIN(PD, 3)

Definition at line 79 of file board.h.


#define LED1_TOGGLE   gpio_toggle(LED1_PIN)

Definition at line 91 of file board.h.


#define PB0_PIN   GPIO_PIN(PB, 1)

Definition at line 70 of file board.h.


#define PB1_PIN   GPIO_PIN(PB, 3)

Definition at line 71 of file board.h.


#define PM_BLOCKER_INITIAL   { 0, 0, 0 }

Initialize pm_layered with no pre-defined blockers.

All peripheral drivers keep track of required pm modes.

Definition at line 36 of file board.h.

◆ SI7021_EN_PIN

#define SI7021_EN_PIN   GPIO_PIN(PC, 9)

Definition at line 123 of file board.h.


#define SI70XX_PARAM_I2C_DEV   I2C_DEV(0)

Definition at line 122 of file board.h.


#define VCOM_EN_PIN   GPIO_PIN(PB, 0)

Definition at line 64 of file board.h.


#define VCOM_UART   UART_DEV(0)

Definition at line 63 of file board.h.