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

Native CPU peripheral configuration. More...

Detailed Description

Native CPU peripheral configuration.

Copyright (C) 2014 Ludwig Knüpfer ludwi.nosp@m.g.kn.nosp@m.uepfe.nosp@m.r@fu.nosp@m.-berl.nosp@m.in.d.nosp@m.e

This file is subject to the terms and conditions of the GNU Lesser General Public License v2.1. See the file LICENSE in the top level directory for more details.

Author
Ludwig Knüpfer ludwi.nosp@m.g.kn.nosp@m.uepfe.nosp@m.r@fu.nosp@m.-berl.nosp@m.in.d.nosp@m.e

Definition in file periph_conf.h.

#include "macros/units.h"
+ Include dependency graph for periph_conf.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define QDEC_NUMOF   (8U)
 UART configuration.
 
#define CLOCK_CORECLOCK   GHZ(1)
 System core clock in Hz.
 

hardware timer clock skew avoidance

#define NATIVE_TIMER_MIN_RES   200
 

Random Number Generator configuration

#define RANDOM_NUMOF   (1U)
 

Timer peripheral configuration

#define TIMER_NUMOF   (1U)
 
#define TIMER_CHANNEL_NUMOF   (1U)
 Number of timer channels.
 
#define XTIMER_BACKOFF   200
 xtimer configuration
 
#define XTIMER_ISR_BACKOFF   200
 

SPI configuration (Linux host only)

#define SPI_NUMOF   (1U)
 Amount of SPI devices.
 
#define SPI_MAXCS   (4U)
 Maximum amount of chip select lines per bus.
 
#define SPI_HWCS(x)   (UINT_MAX - SPI_MAXCS + x)
 Hardware chip select access macro.
 

Macro Definition Documentation

◆ CLOCK_CORECLOCK

#define CLOCK_CORECLOCK   GHZ(1)

System core clock in Hz.

1GHz is an arbitrary value used for compatibility with other platforms.

Definition at line 31 of file periph_conf.h.

◆ NATIVE_TIMER_MIN_RES

#define NATIVE_TIMER_MIN_RES   200

Definition at line 38 of file periph_conf.h.

◆ QDEC_NUMOF

#define QDEC_NUMOF   (8U)

UART configuration.

PWM configuration

QDEC configuration

Definition at line 87 of file periph_conf.h.

◆ RANDOM_NUMOF

#define RANDOM_NUMOF   (1U)

Definition at line 45 of file periph_conf.h.

◆ SPI_HWCS

#define SPI_HWCS (   x)    (UINT_MAX - SPI_MAXCS + x)

Hardware chip select access macro.

The amount of available hardware chip select lines depends on the SPI_MAXCS parameter. If the line is actually available at runtime depends of whether a --spi startup parameter with the corresponding SPI device and HWCS-line parameter has been given.

Definition at line 125 of file periph_conf.h.

◆ SPI_MAXCS

#define SPI_MAXCS   (4U)

Maximum amount of chip select lines per bus.

Allows up to SPI_MAXCS hardware cable select lines per SPI device. The n-th hardware select line can be used with the SPI_HWCS macro.

Definition at line 114 of file periph_conf.h.

◆ SPI_NUMOF

#define SPI_NUMOF   (1U)

Amount of SPI devices.

Allows up to SPI_NUMOF SPI devices with each having up to SPI_MAXCS hardware cable select lines. Assignment to hardware devices can be configured at runtime using the --spi startup parameter.

Can be overridden during compile time with a -DSPI_NUMOF=n flag.

Definition at line 104 of file periph_conf.h.

◆ TIMER_CHANNEL_NUMOF

#define TIMER_CHANNEL_NUMOF   (1U)

Number of timer channels.

Definition at line 53 of file periph_conf.h.

◆ TIMER_NUMOF

#define TIMER_NUMOF   (1U)

Definition at line 52 of file periph_conf.h.

◆ XTIMER_BACKOFF

#define XTIMER_BACKOFF   200

xtimer configuration

Definition at line 62 of file periph_conf.h.

◆ XTIMER_ISR_BACKOFF

#define XTIMER_ISR_BACKOFF   200

Definition at line 63 of file periph_conf.h.