Skip to content

Commit e1fd678

Browse files
committed
STM32F4 USB: enable USB Device in targets.json
tests-usb_device-basic are OK on the following platforms: NUCLEO_F412ZG NUCLEO_F413ZH NUCLEO_F429ZI NUCLEO_F446ZE DISCO_F413ZH DISCO_F469NI
1 parent 074aab6 commit e1fd678

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

targets/targets.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,8 +1198,8 @@
11981198
}
11991199
},
12001200
"detect_code": ["0826"],
1201-
"macros_add": ["USB_STM_HAL", "USBHOST_OTHER"],
1202-
"device_has_add": ["CAN", "SERIAL_ASYNCH", "SERIAL_FC", "TRNG", "FLASH"],
1201+
"macros_add": ["USBHOST_OTHER"],
1202+
"device_has_add": ["CAN", "SERIAL_ASYNCH", "SERIAL_FC", "TRNG", "FLASH", "USBDEVICE"],
12031203
"release_versions": ["2", "5"],
12041204
"device_name": "STM32F412ZG",
12051205
"bootloader_supported": true
@@ -1283,8 +1283,8 @@
12831283
}
12841284
},
12851285
"detect_code": ["0743"],
1286-
"macros_add": ["USB_STM_HAL", "USBHOST_OTHER"],
1287-
"device_has_add": ["ANALOGOUT", "CAN", "SERIAL_ASYNCH", "SERIAL_FC", "TRNG", "FLASH", "QSPI"],
1286+
"macros_add": ["USBHOST_OTHER"],
1287+
"device_has_add": ["ANALOGOUT", "CAN", "SERIAL_ASYNCH", "SERIAL_FC", "TRNG", "FLASH", "QSPI", "USBDEVICE"],
12881288
"bootloader_supported": true,
12891289
"release_versions": ["2", "5"],
12901290
"device_name": "STM32F413ZH"
@@ -1306,8 +1306,8 @@
13061306
}
13071307
},
13081308
"detect_code": ["0743"],
1309-
"macros_add": ["USB_STM_HAL", "USBHOST_OTHER"],
1310-
"device_has_add": ["ANALOGOUT", "CAN", "SERIAL_ASYNCH", "SERIAL_FC", "TRNG", "FLASH"],
1309+
"macros_add": ["USBHOST_OTHER"],
1310+
"device_has_add": ["ANALOGOUT", "CAN", "SERIAL_ASYNCH", "SERIAL_FC", "TRNG", "FLASH", "USBDEVICE"],
13111311
"bootloader_supported": true,
13121312
"release_versions": ["2", "5"],
13131313
"device_name": "STM32F413ZH"
@@ -1342,8 +1342,8 @@
13421342
}
13431343
},
13441344
"extra_labels_add": ["STM32F4", "STM32F429", "STM32F429ZI", "STM32F429xx", "STM32F429xI", "STM_EMAC"],
1345-
"macros_add": ["USB_STM_HAL", "USBHOST_OTHER"],
1346-
"device_has_add": ["ANALOGOUT", "CAN", "EMAC", "SERIAL_ASYNCH", "SERIAL_FC", "TRNG", "FLASH"],
1345+
"macros_add": ["USBHOST_OTHER"],
1346+
"device_has_add": ["ANALOGOUT", "CAN", "EMAC", "SERIAL_ASYNCH", "SERIAL_FC", "TRNG", "FLASH", "USBDEVICE"],
13471347
"detect_code": ["0796"],
13481348
"release_versions": ["2", "5"],
13491349
"device_name": "STM32F429ZI",
@@ -1411,8 +1411,8 @@
14111411
}
14121412
},
14131413
"detect_code": ["0778"],
1414-
"macros_add": ["USB_STM_HAL", "USBHOST_OTHER"],
1415-
"device_has_add": ["ANALOGOUT", "CAN", "SERIAL_ASYNCH", "SERIAL_FC", "FLASH"],
1414+
"macros_add": ["USBHOST_OTHER"],
1415+
"device_has_add": ["ANALOGOUT", "CAN", "SERIAL_ASYNCH", "SERIAL_FC", "FLASH", "USBDEVICE"],
14161416
"release_versions": ["2", "5"],
14171417
"device_name": "STM32F446ZE"
14181418
},
@@ -1937,8 +1937,8 @@
19371937
}
19381938
},
19391939
"detect_code": ["0788"],
1940-
"macros_add": ["USB_STM_HAL", "USBHOST_OTHER"],
1941-
"device_has_add": ["ANALOGOUT", "CAN", "SERIAL_FC", "TRNG", "FLASH", "QSPI"],
1940+
"macros_add": ["USBHOST_OTHER"],
1941+
"device_has_add": ["ANALOGOUT", "CAN", "SERIAL_FC", "TRNG", "FLASH", "QSPI", "USBDEVICE"],
19421942
"release_versions": ["2", "5"],
19431943
"device_name": "STM32F469NI"
19441944
},

0 commit comments

Comments
 (0)