Loading...
Searching...
No Matches

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

Detailed Description

Board specific definitions for the xG23-PK6068A.

Author
Juergen Fitschen me@ju.nosp@m.e.yt

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.

Functions

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

ztimer configuration

#define CONFIG_ZTIMER_LPTIMER_DEV   TIMER_DEV(1)
 
#define CONFIG_ZTIMER_LPTIMER_FREQ   LFXO_FREQ
 
#define CONFIG_ZTIMER_LPTIMER_WIDTH   24
 
#define CONFIG_ZTIMER_LPTIMER_BLOCK_PM_MODE   EFM32_PM_MODE_EM3
 

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)
 
#define DISP_EXTCOMIN_PIN   GPIO_PIN(PC, 6)
 
#define DISP_ENABLE_PIN   GPIO_PIN(PC, 9)
 

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

◆ CONFIG_ZTIMER_LPTIMER_BLOCK_PM_MODE

#define CONFIG_ZTIMER_LPTIMER_BLOCK_PM_MODE   EFM32_PM_MODE_EM3

Definition at line 45 of file board.h.

◆ CONFIG_ZTIMER_LPTIMER_DEV

#define CONFIG_ZTIMER_LPTIMER_DEV   TIMER_DEV(1)

Definition at line 42 of file board.h.

◆ CONFIG_ZTIMER_LPTIMER_FREQ

#define CONFIG_ZTIMER_LPTIMER_FREQ   LFXO_FREQ

Definition at line 43 of file board.h.

◆ CONFIG_ZTIMER_LPTIMER_WIDTH

#define CONFIG_ZTIMER_LPTIMER_WIDTH   24

Definition at line 44 of file board.h.

◆ DISP_ENABLE_PIN

#define DISP_ENABLE_PIN   GPIO_PIN(PC, 9)

Definition at line 103 of file board.h.

◆ DISP_EXTCOMIN_PIN

#define DISP_EXTCOMIN_PIN   GPIO_PIN(PC, 6)

Definition at line 102 of file board.h.

◆ DISP_SCS_PIN

#define DISP_SCS_PIN   GPIO_PIN(PC, 8)

Definition at line 101 of file board.h.

◆ DISP_SPI

#define DISP_SPI   SPI_DEV(0)

Definition at line 100 of file board.h.

◆ FLASH_CS_PIN

#define FLASH_CS_PIN   GPIO_PIN(PC, 4)

Definition at line 113 of file board.h.

◆ FLASH_SPI

#define FLASH_SPI   SPI_DEV(0)

Definition at line 112 of file board.h.

◆ LED0_OFF

#define LED0_OFF   gpio_clear(LED0_PIN)

Definition at line 87 of file board.h.

◆ LED0_ON

#define LED0_ON   gpio_set(LED0_PIN)

Definition at line 86 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PB, 2)

Definition at line 78 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   gpio_toggle(LED0_PIN)

Definition at line 88 of file board.h.

◆ LED1_OFF

#define LED1_OFF   gpio_clear(LED1_PIN)

Definition at line 90 of file board.h.

◆ LED1_ON

#define LED1_ON   gpio_set(LED1_PIN)

Definition at line 89 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(PD, 3)

Definition at line 79 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   gpio_toggle(LED1_PIN)

Definition at line 91 of file board.h.

◆ PB0_PIN

#define PB0_PIN   GPIO_PIN(PB, 1)

Definition at line 70 of file board.h.

◆ PB1_PIN

#define PB1_PIN   GPIO_PIN(PB, 3)

Definition at line 71 of file board.h.

◆ PM_BLOCKER_INITIAL

#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.

◆ SI70XX_PARAM_I2C_DEV

#define SI70XX_PARAM_I2C_DEV   I2C_DEV(0)

Definition at line 122 of file board.h.

◆ VCOM_EN_PIN

#define VCOM_EN_PIN   GPIO_PIN(PB, 0)

Definition at line 64 of file board.h.

◆ VCOM_UART

#define VCOM_UART   UART_DEV(0)

Definition at line 63 of file board.h.