-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmpconfigboard.h
More file actions
49 lines (35 loc) · 1.84 KB
/
mpconfigboard.h
File metadata and controls
49 lines (35 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Board and hardware specific configuration
#define MICROPY_HW_BOARD_NAME "Pimoroni Tufty 2350"
#define MICROPY_HW_ROMFS_BYTES (1 * 1024 * 1024)
#define MICROPY_HW_FLASH_STORAGE_BYTES (PICO_FLASH_SIZE_BYTES - (2 * 1024 * 1024) - MICROPY_HW_ROMFS_BYTES)
#define MICROPY_OBJ_REPR (MICROPY_OBJ_REPR_C)
// Set up networking.
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "Tufty2350"
// Enable WiFi & PPP
#define MICROPY_PY_NETWORK (1)
// CYW43 driver configuration.
#define CYW43_USE_SPI (1)
#define CYW43_LWIP (1)
#define CYW43_GPIO (1)
#define CYW43_SPI_PIO (1)
#define MICROPY_HW_PIN_EXT_COUNT CYW43_WL_GPIO_COUNT
int mp_hal_is_pin_reserved(int n);
#define MICROPY_HW_PIN_RESERVED(i) mp_hal_is_pin_reserved(i)
// Skip default pins
#define MICROPY_HW_SPI_NO_DEFAULT_PINS (1)
#define MICROPY_HW_UART_NO_DEFAULT_PINS (1)
// Enable PSRAM
#define MICROPY_HW_ENABLE_PSRAM (1)
#define MICROPY_GC_SPLIT_HEAP (0)
// First 3MB of PSRAM for GC heap, next 4MB for PicoVector, last 1MB for tmp FS
#define MICROPY_HW_PSRAM_MAX_HEAP_SIZE (3 * 1024 * 1024)
// Alias the chip select pin specified by presto.h
#define MICROPY_HW_PSRAM_CS_PIN BW_PSRAM_CS
#define MICROPY_PY_THREAD (0)
// Configure USB
#define MICROPY_HW_USB_VID (0x2e8a)
#define MICROPY_HW_USB_PID (0x1101)
#define MICROPY_HW_USB_MSC (1)
#define MICROPY_HW_USB_DESC_STR_MAX (40)
#define MICROPY_HW_USB_MANUFACTURER_STRING "Pimoroni"
#define MICROPY_HW_USB_PRODUCT_FS_STRING MICROPY_HW_BOARD_NAME " MicroPython"