All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
periph_conf.h File Reference

Native CPU peripheral configuration. More...

Detailed Description

Native CPU peripheral configuration.

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 CLOCK_CORECLOCK   GHZ(1)
 System core clock in Hz.
 
#define NATIVE_TIMER_MIN_RES   200
 Hardware timer clock skew avoidance.
 
#define RANDOM_NUMOF   (1U)
 Random Number Generator configuration.
 
#define UART_NUMOF   (1U)
 UART configuration.
 
#define PWM_NUMOF   (8U)
 PWM configuration.
 
#define QDEC_NUMOF   (8U)
 QDEC configuration.
 

Timer peripheral configuration

#define TIMER_NUMOF   (1U)
 
#define TIMER_CHANNEL_NUMOF   (1U)
 Number of timer channels.
 

<tt>xtimer</tt> configuration

timer_set_absolute has a high margin for possible underflow if set with value not far in the future.

To prevent this, we set high backoff values here.

#define XTIMER_BACKOFF   200
 
#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)
 Hardware chip select access macro.