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

Board specific definitions for the STK3200 starter kit. More...

Detailed Description

Board specific definitions for the STK3200 starter kit.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de
Bas Stottelaar basst.nosp@m.otte.nosp@m.laar@.nosp@m.gmai.nosp@m.l.com

Definition in file board.h.

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

Xtimer configuration

The timer runs at 250 kHz to increase accuracy.

#define CONFIG_ZTIMER_USEC_DEV   (TIMER_DEV(0))
 Timer peripheral for ztimer.
 
#define CONFIG_ZTIMER_USEC_BASE_FREQ   (250000UL)
 Running at 250 kHz.
 
#define CONFIG_ZTIMER_USEC_WIDTH   (16)
 Running on a 16-bit timer.
 
#define CONFIG_ZTIMER_USEC_ADJUST_SET   (56)
 Overhead for ztimer_set.
 
#define CONFIG_ZTIMER_USEC_ADJUST_SLEEP   (64)
 Overhead for ztimer_sleep.
 

Board controller configuration

Define the GPIO pin to enable the BC, to allow serial communication via the USB port.

#define BC_PIN   GPIO_PIN(PA, 9)
 

Push button pin definitions

#define PB0_PIN   GPIO_PIN(PC, 8)
 
#define PB1_PIN   GPIO_PIN(PC, 9)
 

LED pin definitions

#define LED0_PIN   GPIO_PIN(PC, 10)
 
#define LED1_PIN   GPIO_PIN(PC, 11)
 

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)
 

Core temperature sensor configuration

Connection to the on-chip temperature sensor.

#define CORETEMP_ADC   ADC_LINE(0)
 

Display configuration

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

#define DISP_SPI   SPI_DEV(0)
 
#define DISP_COM_PIN   GPIO_PIN(PE, 10)
 
#define DISP_CS_PIN   GPIO_PIN(PE, 11)
 
#define DISP_SELECT_PIN   GPIO_PIN(PA, 8)
 
#define DISP_POWER_PIN   GPIO_PIN(PA, 10)
 

Macro Definition Documentation

◆ BC_PIN

#define BC_PIN   GPIO_PIN(PA, 9)

Definition at line 49 of file board.h.

◆ CONFIG_ZTIMER_USEC_ADJUST_SET

#define CONFIG_ZTIMER_USEC_ADJUST_SET   (56)

Overhead for ztimer_set.

Definition at line 38 of file board.h.

◆ CONFIG_ZTIMER_USEC_ADJUST_SLEEP

#define CONFIG_ZTIMER_USEC_ADJUST_SLEEP   (64)

Overhead for ztimer_sleep.

Definition at line 39 of file board.h.

◆ CONFIG_ZTIMER_USEC_BASE_FREQ

#define CONFIG_ZTIMER_USEC_BASE_FREQ   (250000UL)

Running at 250 kHz.

Definition at line 36 of file board.h.

◆ CONFIG_ZTIMER_USEC_DEV

#define CONFIG_ZTIMER_USEC_DEV   (TIMER_DEV(0))

Timer peripheral for ztimer.

Definition at line 35 of file board.h.

◆ CONFIG_ZTIMER_USEC_WIDTH

#define CONFIG_ZTIMER_USEC_WIDTH   (16)

Running on a 16-bit timer.

Definition at line 37 of file board.h.

◆ CORETEMP_ADC

#define CORETEMP_ADC   ADC_LINE(0)

Definition at line 86 of file board.h.

◆ DISP_COM_PIN

#define DISP_COM_PIN   GPIO_PIN(PE, 10)

Definition at line 96 of file board.h.

◆ DISP_CS_PIN

#define DISP_CS_PIN   GPIO_PIN(PE, 11)

Definition at line 97 of file board.h.

◆ DISP_POWER_PIN

#define DISP_POWER_PIN   GPIO_PIN(PA, 10)

Definition at line 99 of file board.h.

◆ DISP_SELECT_PIN

#define DISP_SELECT_PIN   GPIO_PIN(PA, 8)

Definition at line 98 of file board.h.

◆ DISP_SPI

#define DISP_SPI   SPI_DEV(0)

Definition at line 95 of file board.h.

◆ LED0_OFF

#define LED0_OFF   gpio_clear(LED0_PIN)

Definition at line 73 of file board.h.

◆ LED0_ON

#define LED0_ON   gpio_set(LED0_PIN)

Definition at line 72 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PC, 10)

Definition at line 64 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   gpio_toggle(LED0_PIN)

Definition at line 74 of file board.h.

◆ LED1_OFF

#define LED1_OFF   gpio_clear(LED1_PIN)

Definition at line 76 of file board.h.

◆ LED1_ON

#define LED1_ON   gpio_set(LED1_PIN)

Definition at line 75 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(PC, 11)

Definition at line 65 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   gpio_toggle(LED1_PIN)

Definition at line 77 of file board.h.

◆ PB0_PIN

#define PB0_PIN   GPIO_PIN(PC, 8)

Definition at line 56 of file board.h.

◆ PB1_PIN

#define PB1_PIN   GPIO_PIN(PC, 9)

Definition at line 57 of file board.h.