Loading...
Searching...
No Matches
periph_conf_common.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Gerson Fernando Budke <nandojve@gmail.com>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "periph_cpu.h"
19#include "macros/units.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29#ifndef CLOCK_CORECLOCK
30#define CLOCK_CORECLOCK MHZ(32)
31#endif /* CLOCK_CORECLOCK */
33
39#ifndef ADC_NUMOF
40#define ADC_NUMOF (0U)
41#endif /* ADC_NUMOF */
43
48#ifndef I2C_NUMOF
49#define I2C_NUMOF (0U)
50#endif /* I2C_NUMOF */
52
58#ifndef PWM_NUMOF
59#define PWM_NUMOF (0U)
60#endif /* PWM_NUMOF */
62
72#ifndef SPI_NUMOF
73#define SPI_NUMOF (0U)
74#endif /* SPI_NUMOF */
76
86#ifndef UART_NUMOF
87#define UART_NUMOF (0U)
88#endif /* UART_NUMOF */
90
91#ifdef __cplusplus
92}
93#endif
94
Unit helper macros.