File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -896,6 +896,8 @@ def _rp2040_u2if_id(self) -> Optional[str]:
896
896
product = dev ["product_id" ]
897
897
if vendor == 0xCAFE and product == 0x4005 :
898
898
return boards .PICO_U2IF
899
+ if vendor == 0xCAFF and product == 0x4005 :
900
+ return boards .RADXA_X4_U2IF
899
901
if vendor == 0x239A :
900
902
# Feather RP2040
901
903
if product == 0x00F1 :
@@ -1203,6 +1205,7 @@ def lazily_generate_conditions():
1203
1205
yield self .board .QT2040_TRINKEY_U2IF
1204
1206
yield self .board .KB2040_U2IF
1205
1207
yield self .board .RP2040_ONE_U2IF
1208
+ yield self .board .RADXA_X4_U2IF
1206
1209
yield self .board .OS_AGNOSTIC_BOARD
1207
1210
1208
1211
return any (condition for condition in lazily_generate_conditions ())
@@ -1342,6 +1345,11 @@ def rp2040_one_u2if(self) -> bool:
1342
1345
"""Check whether the current board is an RP2040 One w/ u2if."""
1343
1346
return self .id == boards .RP2040_ONE_U2IF
1344
1347
1348
+ @property
1349
+ def radxa_x4_u2if (self ) -> bool :
1350
+ """Check whether the current board is an RP2040 One w/ u2if."""
1351
+ return self .id == boards .RADXA_X4_U2IF
1352
+
1345
1353
@property
1346
1354
def binho_nova (self ) -> bool :
1347
1355
"""Check whether the current board is an BINHO NOVA."""
Original file line number Diff line number Diff line change @@ -125,7 +125,8 @@ def id(
125
125
if (
126
126
(
127
127
# Raspberry Pi Pico
128
- vendor == 0xCAFE
128
+ # Radxa X4
129
+ vendor in (0xCAFE , 0xCAFF )
129
130
and product == 0x4005
130
131
)
131
132
or (
Original file line number Diff line number Diff line change 195
195
KB2040_U2IF = "KB2040_U2IF"
196
196
197
197
RP2040_ONE_U2IF = "RP2040_ONE_U2IF"
198
+ RADXA_X4_U2IF = "RADXA_X4_U2IF"
198
199
199
200
BINHO_NOVA = "BINHO_NOVA"
200
201
You can’t perform that action at this time.
0 commit comments