@@ -118,6 +118,8 @@ def id(self) -> Optional[str]:
118
118
board_id = boards .FTDI_FT232H
119
119
elif chip_id == chips .FT2232H :
120
120
board_id = boards .FTDI_FT2232H
121
+ elif chip_id == chips .FT4232H :
122
+ board_id = boards .FTDI_FT4232H
121
123
elif chip_id == chips .APQ8016 :
122
124
board_id = boards .DRAGONBOARD_410C
123
125
elif chip_id in (chips .T210 , chips .T186 , chips .T194 , chips .T234 ):
@@ -1162,6 +1164,7 @@ def os_environ_board(self) -> bool:
1162
1164
def lazily_generate_conditions ():
1163
1165
yield self .board .FTDI_FT232H
1164
1166
yield self .board .FTDI_FT2232H
1167
+ yield self .board .FTDI_FT4232H
1165
1168
yield self .board .MICROCHIP_MCP2221
1166
1169
yield self .board .BINHO_NOVA
1167
1170
yield self .board .GREATFET_ONE
@@ -1245,6 +1248,11 @@ def ftdi_ft2232h(self) -> bool:
1245
1248
"""Check whether the current board is an FTDI FT2232H."""
1246
1249
return self .id == boards .FTDI_FT2232H
1247
1250
1251
+ @property
1252
+ def ftdi_ft4232h (self ) -> bool :
1253
+ """Check whether the current board is an FTDI FT4232H."""
1254
+ return self .id == boards .FTDI_FT4232H
1255
+
1248
1256
@property
1249
1257
def microchip_mcp2221 (self ) -> bool :
1250
1258
"""Check whether the current board is a Microchip MCP2221."""
0 commit comments