periph_conf.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2024 Isikcan 'Jon' Yilmaz
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
24 #include <stdint.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
45 #ifndef ADC_GPIOS
46 # define ADC_GPIOS { GPIO1, GPIO2, GPIO3, GPIO4, GPIO5, GPIO6, GPIO7, GPIO8, GPIO9 }
47 #endif
62 #ifndef I2C0_SPEED
63 # define I2C0_SPEED I2C_SPEED_FAST
64 #endif
65 #ifndef I2C0_SCL
66 # define I2C0_SCL GPIO6
67 #endif
68 #ifndef I2C0_SDA
69 # define I2C0_SDA GPIO5
70 #endif
91 #ifndef PWM0_GPIOS
92 # define PWM0_GPIOS { GPIO0, GPIO1, GPIO2 }
93 #endif
94 
99 #ifndef PWM1_GPIOS
100 # define PWM1_GPIOS { GPIO21 }
101 #endif
114 #ifndef SPI0_CTRL
115 # define SPI0_CTRL FSPI
116 #endif
117 #ifndef SPI0_SCK
118 # define SPI0_SCK GPIO7
119 #endif
120 #ifndef SPI0_MISO
121 # define SPI0_MISO GPIO8
122 #endif
123 #ifndef SPI0_MOSI
124 # define SPI0_MOSI GPIO9
125 #endif
126 #ifndef SPI0_CS0
127 # define SPI0_CS0 GPIO3
128 #endif
142 #define UART0_TXD GPIO43
143 #define UART0_RXD GPIO44
146 #ifdef __cplusplus
147 } /* end extern "C" */
148 #endif
149 
150 /* include common peripheral definitions as last step */
151 #include "periph_conf_common.h"
152