|
14 | 14 | #define BOOTLOADER_CONFIG_MAGIC 0xA0 |
15 | 15 | #define BOOTLOADER_VERSION 2 |
16 | 16 |
|
17 | | -#define PORTENTA_USB_SPEED_HIGH 1 |
18 | | -#define PORTENTA_USB_SPEED_FULL 2 |
| 17 | +#define USB_SPEED_HIGH 1 |
| 18 | +#define USB_SPEED_FULL 2 |
19 | 19 |
|
20 | | -#ifndef PORTENTA_USB_SPEED |
| 20 | +#ifndef BOARD_USB_SPEED |
21 | 21 | #ifdef USE_USB_HS |
22 | | -#define PORTENTA_USB_SPEED PORTENTA_USB_SPEED_HIGH |
| 22 | +#define BOARD_USB_SPEED USB_SPEED_HIGH |
23 | 23 | #else |
24 | | -#define PORTENTA_USB_SPEED PORTENTA_USB_SPEED_FULL |
| 24 | +#define BOARD_USB_SPEED USB_SPEED_FULL |
25 | 25 | #endif |
26 | 26 | #endif |
27 | 27 |
|
28 | | -#ifndef PORTENTA_HAS_ETHERNET |
29 | | -#define PORTENTA_HAS_ETHERNET 1 |
| 28 | +#ifndef BOARD_HAS_ETHERNET |
| 29 | +#define BOARD_HAS_ETHERNET 1 |
30 | 30 | #endif |
31 | 31 |
|
32 | | -#ifndef PORTENTA_HAS_WIFI |
33 | | -#define PORTENTA_HAS_WIFI 1 |
| 32 | +#ifndef BOARD_HAS_WIFI |
| 33 | +#define BOARD_HAS_WIFI 1 |
34 | 34 | #endif |
35 | 35 |
|
36 | | -#ifndef PORTENTA_RAM_SIZE |
37 | | -#define PORTENTA_RAM_SIZE 8 |
| 36 | +#ifndef BOARD_RAM_SIZE |
| 37 | +#define BOARD_RAM_SIZE 8 |
38 | 38 | #endif |
39 | 39 |
|
40 | | -#ifndef PORTENTA_QSPI_SIZE |
41 | | -#define PORTENTA_QSPI_SIZE 16 |
| 40 | +#ifndef BOARD_QSPI_SIZE |
| 41 | +#define BOARD_QSPI_SIZE 16 |
42 | 42 | #endif |
43 | 43 |
|
44 | | -#ifndef PORTENTA_HAS_VIDEO |
45 | | -#define PORTENTA_HAS_VIDEO 1 |
| 44 | +#ifndef BOARD_HAS_VIDEO |
| 45 | +#define BOARD_HAS_VIDEO 1 |
46 | 46 | #endif |
47 | 47 |
|
48 | | -#ifndef PORTENTA_HAS_CRYPTO |
49 | | -#define PORTENTA_HAS_CRYPTO 1 |
| 48 | +#ifndef BOARD_HAS_CRYPTO |
| 49 | +#define BOARD_HAS_CRYPTO 1 |
50 | 50 | #endif |
51 | 51 |
|
52 | | -#ifndef PORTENTA_EXTCLOCK |
53 | | -#define PORTENTA_EXTCLOCK 25 |
| 52 | +#ifndef BOARD_EXTCLOCK |
| 53 | +#define BOARD_EXTCLOCK 25 |
54 | 54 | #endif |
55 | 55 |
|
56 | 56 | int target_init(void); |
|
0 commit comments