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 
9 #pragma once
10 
21 #include "periph_cpu.h"
22 #include "macros/units.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #ifndef CLOCK_CORECLOCK
33 #define CLOCK_CORECLOCK MHZ(32)
34 #endif /* CLOCK_CORECLOCK */
42 #ifndef ADC_NUMOF
43 #define ADC_NUMOF (0U)
44 #endif /* ADC_NUMOF */
51 #ifndef I2C_NUMOF
52 #define I2C_NUMOF (0U)
53 #endif /* I2C_NUMOF */
61 #ifndef PWM_NUMOF
62 #define PWM_NUMOF (0U)
63 #endif /* PWM_NUMOF */
75 #ifndef SPI_NUMOF
76 #define SPI_NUMOF (0U)
77 #endif /* SPI_NUMOF */
89 #ifndef UART_NUMOF
90 #define UART_NUMOF (0U)
91 #endif /* UART_NUMOF */
94 #ifdef __cplusplus
95 }
96 #endif
97 
Unit helper macros.