NetBurner 3.5.8
PDF Version
esp32c5Defs.h
1/*NB_REVISION*/
2
3/*NB_COPYRIGHT*/
4
5/*******************************************************************************
6 READ THIS FIRST
7
8This is not the correct place to modify these values for a single specific
9project. If your project connects the ESP32-C5 via different pins, the
10correct thing to override is found in the externs declared in
11<esp32c5/esp32c5.h>. There we declare a number of `extern const int` values
12that are weakly defined per platform. Override any of them in your project
13to redirect a single pin without modifying SDK code.
14
15Example: to relocate the chip-select pin in a specific project, in any one
16of your project's source files:
17
18 #include <esp32c5/esp32c5.h>
19 const int NBESP_PLAT_DEFAULT_CSPIN = 22;
20
21*********************************************************************************/
22
23#ifndef __ESP32C5_DEFS_H
24#define __ESP32C5_DEFS_H
25
26/*
27 * SOMRT1061 dev kit defaults. These match the header on the SOMRT1061 dev
28 * board originally laid out for the (now-EOL) NBWIFIIN module; the ESP32-C5
29 * carrier plugs into the same header so out-of-the-box wiring just works.
30 */
31#define NBESP_DEFAULT_SPINUM 2 /* LPSPI2 */
32#define NBESP_DEFAULT_BAUD 10000000 /* 10 MHz */
33#define NBESP_DEFAULT_CSPIN 15 /* Chip select GPIO (active low, software driven) */
34#define NBESP_DEFAULT_RXDATA_PIN 19 /* RX_DATA_AVAIL signal from ESP32 (input) */
35#define NBESP_DEFAULT_TXREADY_PIN 85 /* TRANSACTION_READY toggling signal from ESP32 (input) */
36
37#endif /* __ESP32C5_DEFS_H */