conf_winc.h
Go to the documentation of this file.
1 
35 #ifndef CONF_WINC_H_INCLUDED
36 #define CONF_WINC_H_INCLUDED
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 #include "board.h"
43 
46 /*
47  ---------------------------------
48  ---------- PIN settings ---------
49  ---------------------------------
50 */
51 
52 #define CONF_WINC_PIN_RESET IOPORT_CREATE_PIN(PIOC, 21)
53 #define CONF_WINC_PIN_CHIP_ENABLE IOPORT_CREATE_PIN(PIOC, 22)
54 #define CONF_WINC_PIN_WAKE IOPORT_CREATE_PIN(PIOC, 31) //Not On Board
55 
56 /*
57  ---------------------------------
58  ---------- SPI settings ---------
59  ---------------------------------
60 */
61 
62 #define CONF_WINC_USE_SPI (1)
63 
65 #define CONF_WINC_SPI SPI1
66 #define CONF_WINC_SPI_ID ID_SPI1
67 #define CONF_WINC_SPI_MISO_GPIO PIO_PC26_IDX
68 #define CONF_WINC_SPI_MISO_FLAGS IOPORT_MODE_MUX_C
69 #define CONF_WINC_SPI_MOSI_GPIO PIO_PC27_IDX
70 #define CONF_WINC_SPI_MOSI_FLAGS IOPORT_MODE_MUX_C
71 #define CONF_WINC_SPI_CLK_GPIO PIO_PC24_IDX
72 #define CONF_WINC_SPI_CLK_FLAGS IOPORT_MODE_MUX_C
73 #define CONF_WINC_SPI_CS_GPIO PIO_PC25_IDX
74 #define CONF_WINC_SPI_CS_FLAGS IOPORT_MODE_MUX_C
75 #define CONF_WINC_SPI_NPCS (1)
76 
78 #define CONF_WINC_SPI_DLYBS (0)
79 #define CONF_WINC_SPI_DLYBCT (0)
80 
82 #define CONF_WINC_SPI_INT_PIN IOPORT_CREATE_PIN(PIOC, 23)
83 #define CONF_WINC_SPI_INT_PIO PIOC
84 #define CONF_WINC_SPI_INT_PIO_ID ID_PIOC
85 #define CONF_WINC_SPI_INT_MASK PIO_PC23
86 #define CONF_WINC_SPI_INT_PRIORITY (0)
87 
89 #define CONF_WINC_SPI_POL (0)
90 #define CONF_WINC_SPI_PHA (1)
91 
93 #define CONF_WINC_SPI_CLOCK (48000000)
94 
95 /*
96  ---------------------------------
97  --------- Debug Options ---------
98  ---------------------------------
99 */
100 
101 #define CONF_WINC_DEBUG (0)
102 #define CONF_WINC_PRINTF //printf
103 
104 #ifdef __cplusplus
105 }
106 #endif
107 
108 #endif /* CONF_WINC_H_INCLUDED */
Standard board header file.


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:57