All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
periph_conf.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2014 Ludwig Knüpfer <ludwig.knuepfer@fu-berlin.de>
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
19#ifndef PERIPH_CONF_H
20#define PERIPH_CONF_H
21
22#include "macros/units.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
33#if !defined(CLOCK_CORECLOCK) || defined(DOXYGEN)
34# define CLOCK_CORECLOCK GHZ(1)
35#endif
36
40#define NATIVE_TIMER_MIN_RES 200
41
45#define RANDOM_NUMOF (1U)
46
47/* MARK: - Timer peripheral configuration */
52#define TIMER_NUMOF (1U)
53#define TIMER_CHANNEL_NUMOF (1U)
56/* MARK: - xtimer configuration */
65#define XTIMER_BACKOFF 200
66#define XTIMER_ISR_BACKOFF 200
72#if !defined(UART_NUMOF) || defined(DOXYGEN)
73# define UART_NUMOF (1U)
74#endif
75
79#if !defined(PWM_NUMOF) || defined(DOXYGEN)
80# define PWM_NUMOF (8U)
81#endif
82
86#if !defined(QDEC_NUMOF) || defined(DOXYGEN)
87# define QDEC_NUMOF (8U)
88#endif
89
90/* MARK: - SPI configuration (Linux host only) */
95#if !defined(SPI_NUMOF) || defined(DOXYGEN)
105# define SPI_NUMOF (1U)
106#endif
107
108#if !defined(SPI_MAXCS) || defined(DOXYGEN)
115# define SPI_MAXCS (4U)
116#endif
117
126#define SPI_HWCS(x) (UINT_MAX - SPI_MAXCS + x)
129#ifdef __cplusplus
130}
131#endif
132
133#endif /* PERIPH_CONF_H */
Unit helper macros.