| 1 |
// Board definition for the nullbits Bit-C PRO |
| 2 |
|
| 3 |
#ifndef _BOARDS_NULLBITS_BIT_C_PRO_H |
| 4 |
#define _BOARDS_NULLBITS_BIT_C_PRO_H |
| 5 |
|
| 6 |
// For board detection |
| 7 |
#define NULLBITS_BIT_C_PRO |
| 8 |
|
| 9 |
// On some samples, the xosc can take longer to stabilize than is usual |
| 10 |
#ifndef PICO_XOSC_STARTUP_DELAY_MULTIPLIER |
| 11 |
#define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 64 |
| 12 |
#endif |
| 13 |
|
| 14 |
// --- BOARD SPECIFIC --- |
| 15 |
#define BIT_C_PRO_LED_R_PIN 16 |
| 16 |
#define BIT_C_PRO_LED_G_PIN 17 |
| 17 |
#define BIT_C_PRO_LED_B_PIN 18 |
| 18 |
|
| 19 |
// ------------- UART -------------// |
| 20 |
#ifndef PICO_DEFAULT_UART |
| 21 |
#define PICO_DEFAULT_UART 0 |
| 22 |
#endif |
| 23 |
|
| 24 |
#ifndef PICO_DEFAULT_UART_TX_PIN |
| 25 |
#define PICO_DEFAULT_UART_TX_PIN 0 |
| 26 |
#endif |
| 27 |
|
| 28 |
#ifndef PICO_DEFAULT_UART_RX_PIN |
| 29 |
#define PICO_DEFAULT_UART_RX_PIN 1 |
| 30 |
#endif |
| 31 |
|
| 32 |
// --- LED --- |
| 33 |
// Set the default LED to the Bit-C PRO's B led |
| 34 |
#ifndef PICO_DEFAULT_LED_PIN |
| 35 |
#define PICO_DEFAULT_LED_PIN BIT_C_PRO_LED_B_PIN |
| 36 |
#endif |
| 37 |
|
| 38 |
#ifndef PICO_DEFAULT_LED_PIN_INVERTED |
| 39 |
#define PICO_DEFAULT_LED_PIN_INVERTED 1 |
| 40 |
#endif |
| 41 |
// no PICO_DEFAULT_WS2812_PIN |
| 42 |
|
| 43 |
// ------------- I2C -------------// |
| 44 |
#ifndef PICO_DEFAULT_I2C |
| 45 |
#define PICO_DEFAULT_I2C 0 |
| 46 |
#endif |
| 47 |
|
| 48 |
#ifndef PICO_DEFAULT_I2C_SDA_PIN |
| 49 |
#define PICO_DEFAULT_I2C_SDA_PIN 2 |
| 50 |
#endif |
| 51 |
|
| 52 |
#ifndef PICO_DEFAULT_I2C_SCL_PIN |
| 53 |
#define PICO_DEFAULT_I2C_SCL_PIN 3 |
| 54 |
#endif |
| 55 |
|
| 56 |
// ------------- SPI -------------// |
| 57 |
#ifndef PICO_DEFAULT_SPI |
| 58 |
#define PICO_DEFAULT_SPI 0 |
| 59 |
#endif |
| 60 |
|
| 61 |
#ifndef PICO_DEFAULT_SPI_TX_PIN |
| 62 |
#define PICO_DEFAULT_SPI_TX_PIN 23 |
| 63 |
#endif |
| 64 |
|
| 65 |
#ifndef PICO_DEFAULT_SPI_RX_PIN |
| 66 |
#define PICO_DEFAULT_SPI_RX_PIN 20 |
| 67 |
#endif |
| 68 |
|
| 69 |
#ifndef PICO_DEFAULT_SPI_SCK_PIN |
| 70 |
#define PICO_DEFAULT_SPI_SCK_PIN 22 |
| 71 |
#endif |
| 72 |
|
| 73 |
#ifndef PICO_DEFAULT_SPI_CSN_PIN |
| 74 |
#define PICO_DEFAULT_SPI_CSN_PIN 21 |
| 75 |
#endif |
| 76 |
|
| 77 |
// ------------- FLASH -------------// |
| 78 |
|
| 79 |
// Best performance/compatibility with selected flash |
| 80 |
#define PICO_BOOT_STAGE2_CHOOSE_W25X10CL 1 |
| 81 |
|
| 82 |
#ifndef PICO_FLASH_SPI_CLKDIV |
| 83 |
#define PICO_FLASH_SPI_CLKDIV 2 |
| 84 |
#endif |
| 85 |
|
| 86 |
// Bit-C PRO has 4MB SPI flash |
| 87 |
#ifndef PICO_FLASH_SIZE_BYTES |
| 88 |
#define PICO_FLASH_SIZE_BYTES (4 * 1024 * 1024) |
| 89 |
#endif |
| 90 |
|
| 91 |
// All boards have B1+ RP2040 |
| 92 |
#ifndef PICO_RP2040_B0_SUPPORTED |
| 93 |
#define PICO_RP2040_B0_SUPPORTED 0 |
| 94 |
#endif |
| 95 |
|
| 96 |
#endif |