|
36 | 36 | #define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_FULL_FEATURES) |
37 | 37 | #endif |
38 | 38 |
|
39 | | -#define MICROPY_HW_ENABLE_UART_REPL (1) // useful if there is no USB |
40 | | -#define MICROPY_HW_ENABLE_USBDEV (1) |
41 | | - |
| 39 | +#ifndef MICROPY_HW_ENABLE_OSPI |
| 40 | +#define MICROPY_HW_ENABLE_OSPI (CORE_M55_HP) |
| 41 | +#endif |
| 42 | +#ifndef MICROPY_HW_ENABLE_USBDEV |
| 43 | +#define MICROPY_HW_ENABLE_USBDEV (CORE_M55_HP) |
| 44 | +#endif |
42 | 45 | #ifndef MICROPY_HW_USB_PRODUCT_FS_STRING |
43 | 46 | #define MICROPY_HW_USB_PRODUCT_FS_STRING "Board in HS mode" |
44 | 47 | #endif |
45 | | -#define MICROPY_HW_USB_CDC (1) |
| 48 | +#ifndef MICROPY_HW_USB_CDC |
| 49 | +#define MICROPY_HW_USB_CDC (CORE_M55_HP) |
| 50 | +#endif |
46 | 51 | #define MICROPY_HW_USB_CDC_TX_TIMEOUT (500) |
47 | 52 | #ifndef MICROPY_HW_USB_MSC |
48 | 53 | #define MICROPY_HW_USB_MSC (0) |
|
53 | 58 | #ifndef MICROPY_HW_USB_PID |
54 | 59 | #define MICROPY_HW_USB_PID (0x9802) // interface has CDC only |
55 | 60 | #endif |
56 | | - |
| 61 | +#ifndef MICROPY_HW_ENABLE_UART_REPL |
| 62 | +#define MICROPY_HW_ENABLE_UART_REPL (CORE_M55_HP) // useful if there is no USB |
| 63 | +#endif |
57 | 64 | #define MICROPY_HW_FLASH_BLOCK_SIZE_BYTES (4096) |
58 | 65 |
|
59 | 66 | // Memory allocation policies |
|
78 | 85 | #define MICROPY_ENABLE_GC (1) |
79 | 86 | #define MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF (1) |
80 | 87 | #define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ) |
| 88 | +#ifndef MICROPY_FLOAT_IMPL |
| 89 | +#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT) |
| 90 | +#endif |
81 | 91 | #define MICROPY_SCHEDULER_DEPTH (8) |
82 | 92 | #define MICROPY_SCHEDULER_STATIC_NODES (1) |
83 | 93 | #define MICROPY_USE_INTERNAL_ERRNO (1) |
|
0 commit comments