Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 SSV Software Systems GmbH
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "cpu.h"
19#include "periph_conf.h"
20#include "periph_cpu.h"
21#include "periph/gpio.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
32#define PM_BLOCKER_INITIAL { 0, 0, 0 }
33
38#define CONFIG_ZTIMER_LPTIMER_DEV TIMER_DEV(1)
39#define CONFIG_ZTIMER_LPTIMER_FREQ LFXO_FREQ
40#define CONFIG_ZTIMER_LPTIMER_WIDTH 24
41#define CONFIG_ZTIMER_LPTIMER_BLOCK_PM_MODE EFM32_PM_MODE_EM3
43
52/* #define GPIO_INT_PM_BLOCKER PM_MODE_EM2 */
53
59#define VCOM_UART UART_DEV(0)
60#define VCOM_EN_PIN GPIO_PIN(PB, 0)
61
66#define PB0_PIN GPIO_PIN(PB, 1)
67#define PB1_PIN GPIO_PIN(PB, 3)
69
74#define LED0_PIN GPIO_PIN(PB, 2)
75#define LED1_PIN GPIO_PIN(PD, 3)
77
82#define LED0_ON gpio_set(LED0_PIN)
83#define LED0_OFF gpio_clear(LED0_PIN)
84#define LED0_TOGGLE gpio_toggle(LED0_PIN)
85#define LED1_ON gpio_set(LED1_PIN)
86#define LED1_OFF gpio_clear(LED1_PIN)
87#define LED1_TOGGLE gpio_toggle(LED1_PIN)
89
96#define DISP_SPI SPI_DEV(0)
97#define DISP_SCS_PIN GPIO_PIN(PC, 8)
98#define DISP_EXTCOMIN_PIN GPIO_PIN(PC, 6)
99#define DISP_ENABLE_PIN GPIO_PIN(PC, 9)
101
108#define FLASH_SPI SPI_DEV(0)
109#define FLASH_CS_PIN GPIO_PIN(PC, 4)
111
118#define SI70XX_PARAM_I2C_DEV I2C_DEV(0)
119#define SI7021_EN_PIN GPIO_PIN(PC, 9)
121
125void board_init(void);
126
127#ifdef __cplusplus
128}
129#endif
130
Configuration of CPU peripherals for xG23-PK6068A board.
Low-level GPIO peripheral driver interface definitions.
void board_init(void)
Initialize the board, called from the cpu startup code.