Loading...
Searching...
No Matches
periph_conf_common.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 Gerson Fernando Budke <nandojve@gmail.com>
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_COMMON_H
20#define PERIPH_CONF_COMMON_H
21
22#include "periph_cpu.h"
23#include "macros/units.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#ifndef CLOCK_CORECLOCK
34#define CLOCK_CORECLOCK MHZ(32)
35#endif /* CLOCK_CORECLOCK */
43#ifndef ADC_NUMOF
44#define ADC_NUMOF (0U)
45#endif /* ADC_NUMOF */
52#ifndef I2C_NUMOF
53#define I2C_NUMOF (0U)
54#endif /* I2C_NUMOF */
62#ifndef PWM_NUMOF
63#define PWM_NUMOF (0U)
64#endif /* PWM_NUMOF */
76#ifndef SPI_NUMOF
77#define SPI_NUMOF (0U)
78#endif /* SPI_NUMOF */
90#ifndef UART_NUMOF
91#define UART_NUMOF (0U)
92#endif /* UART_NUMOF */
95#ifdef __cplusplus
96}
97#endif
98
99#endif /* PERIPH_CONF_COMMON_H */
Unit helper macros.