diff options
| author | sakimisu <[email protected]> | 2022-12-04 16:39:53 +0800 |
|---|---|---|
| committer | sakimisu <[email protected]> | 2022-12-04 16:39:53 +0800 |
| commit | 4f83b333a0360ad3e867554cef1de4227006e2fb (patch) | |
| tree | 5c3d2d174e4402c42e55f0645035e297737bb5a9 /SConscript | |
| parent | 1bd423cef9a0183c601c3e30a9676c52abe9518d (diff) | |
add stm32h7 and f7 macro
Diffstat (limited to 'SConscript')
| -rw-r--r-- | SConscript | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -62,6 +62,10 @@ if GetDepend(['PKG_CHERRYUSB_DEVICE']): CPPDEFINES += ['CONFIG_USB_DWC2_PORT=FS_PORT'] elif GetDepend(['PKG_CHERRYUSB_DEVICE_DWC2_PORT_HS']): CPPDEFINES += ['CONFIG_USB_DWC2_PORT=HS_PORT'] + if GetDepend(['SOC_SERIES_STM32F7']): + CPPDEFINES += ['STM32F7'] + elif GetDepend(['SOC_SERIES_STM32H7']): + CPPDEFINES += ['STM32H7'] if GetDepend(['PKG_CHERRYUSB_DEVICE_MUSB']): src += Glob('port/musb/usb_dc_musb.c') |
