Skip to content

Commit c682e3c

Browse files
committed
Use PICO_RP2040_B0_SUPPORTED instead of the two old flags
1 parent adec54b commit c682e3c

File tree

4 files changed

+12
-24
lines changed

4 files changed

+12
-24
lines changed

src/boards/include/boards/waveshare_rp2040_lcd_0.96.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,9 @@
9595
// Drive high to force power supply into PWM mode (lower ripple on 3V3 at light loads)
9696
#define PICO_SMPS_MODE_PIN 23
9797

98-
#ifndef PICO_FLOAT_SUPPORT_ROM_V1
99-
#define PICO_FLOAT_SUPPORT_ROM_V1 1
100-
#endif
101-
102-
#ifndef PICO_DOUBLE_SUPPORT_ROM_V1
103-
#define PICO_DOUBLE_SUPPORT_ROM_V1 1
98+
// All boards have B1 RP2040
99+
#ifndef PICO_RP2040_B0_SUPPORTED
100+
#define PICO_RP2040_B0_SUPPORTED 0
104101
#endif
105102

106103
#endif

src/boards/include/boards/waveshare_rp2040_plus_16mb.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,9 @@
7676
// Drive high to force power supply into PWM mode (lower ripple on 3V3 at light loads)
7777
#define PICO_SMPS_MODE_PIN 23
7878

79-
#ifndef PICO_FLOAT_SUPPORT_ROM_V1
80-
#define PICO_FLOAT_SUPPORT_ROM_V1 1
81-
#endif
82-
83-
#ifndef PICO_DOUBLE_SUPPORT_ROM_V1
84-
#define PICO_DOUBLE_SUPPORT_ROM_V1 1
79+
// All boards have B1 RP2040
80+
#ifndef PICO_RP2040_B0_SUPPORTED
81+
#define PICO_RP2040_B0_SUPPORTED 0
8582
#endif
8683

8784
#endif

src/boards/include/boards/waveshare_rp2040_plus_4mb.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,9 @@
7676
// Drive high to force power supply into PWM mode (lower ripple on 3V3 at light loads)
7777
#define PICO_SMPS_MODE_PIN 23
7878

79-
#ifndef PICO_FLOAT_SUPPORT_ROM_V1
80-
#define PICO_FLOAT_SUPPORT_ROM_V1 1
81-
#endif
82-
83-
#ifndef PICO_DOUBLE_SUPPORT_ROM_V1
84-
#define PICO_DOUBLE_SUPPORT_ROM_V1 1
79+
// All boards have B1 RP2040
80+
#ifndef PICO_RP2040_B0_SUPPORTED
81+
#define PICO_RP2040_B0_SUPPORTED 0
8582
#endif
8683

8784
#endif

src/boards/include/boards/waveshare_rp2040_zero.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,9 @@
7171
#define PICO_FLASH_SIZE_BYTES (2 * 1024 * 1024)
7272
#endif
7373

74-
#ifndef PICO_FLOAT_SUPPORT_ROM_V1
75-
#define PICO_FLOAT_SUPPORT_ROM_V1 1
76-
#endif
77-
78-
#ifndef PICO_DOUBLE_SUPPORT_ROM_V1
79-
#define PICO_DOUBLE_SUPPORT_ROM_V1 1
74+
// All boards have B1 RP2040
75+
#ifndef PICO_RP2040_B0_SUPPORTED
76+
#define PICO_RP2040_B0_SUPPORTED 0
8077
#endif
8178

8279
#endif

0 commit comments

Comments
 (0)