Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
periph_conf.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2023 Gunar Schorcht
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
25
#ifndef PERIPH_CONF_H
26
#define PERIPH_CONF_H
27
28
#include <stdint.h>
29
30
#include "
board.h
"
31
#include "periph_cpu.h"
32
33
#ifdef __cplusplus
34
extern
"C"
{
35
#endif
36
47
#ifndef ADC_GPIOS
48
#define ADC_GPIOS { GPIO1, GPIO2 }
49
#endif
62
#ifndef PWM0_GPIOS
63
#define PWM0_GPIOS { LED0_PIN, LED1_PIN }
64
#endif
74
#ifndef SPI0_CTRL
75
#define SPI0_CTRL SPI2_HOST
76
#endif
77
#ifndef SPI0_SCK
78
#define SPI0_SCK GPIO6
79
#endif
80
#ifndef SPI0_MOSI
81
#define SPI0_MOSI GPIO7
82
#endif
83
#ifndef SPI0_MISO
84
#define SPI0_MISO GPIO3
85
#endif
86
#ifndef SPI0_CS0
87
#define SPI0_CS0 GPIO5
88
#endif
89
90
#if IS_USED(MODULE_SDCARD_SPI)
91
#ifndef SPI1_CTRL
92
#define SPI1_CTRL SPI3_HOST
93
#endif
94
#ifndef SPI1_SCK
95
#define SPI1_SCK GPIO36
96
#endif
97
#ifndef SPI1_MOSI
98
#define SPI1_MOSI GPIO35
99
#endif
100
#ifndef SPI1_MISO
101
#define SPI1_MISO GPIO37
102
#endif
103
#ifndef SPI1_CS0
104
#define SPI1_CS0 GPIO34
105
#endif
106
#endif
119
#define UART0_TXD GPIO43
120
#define UART0_RXD GPIO44
124
#ifdef __cplusplus
125
}
/* end extern "C" */
126
#endif
127
128
/* include common peripheral definitions as last step */
129
#include "periph_conf_common.h"
130
131
#endif
/* PERIPH_CONF_H */
board.h
Board specific definitions for the Zigduino board.
Generated on Mon Nov 4 2024 15:31:24 by
1.9.8