mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 06:49:24 -05:00
Usb fix (#2433)
* revert custom compiler definition since we are now having correct hackrf m0 implementation * update submodule --------- Co-authored-by: gullradriel <gullradriel@no-mail.com>
This commit is contained in:
parent
d5c894b322
commit
ae656f07bf
@ -102,21 +102,6 @@ include(external/external.cmake)
|
|||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
set(LDSCRIPT ${PORTLD}/LPC43xx_M0.ld)
|
set(LDSCRIPT ${PORTLD}/LPC43xx_M0.ld)
|
||||||
|
|
||||||
# Special case for these two files:
|
|
||||||
# Originally these are compiled for M4 support, but in Mayhem we use them with M0
|
|
||||||
# As a result they are generating a lot of noise warnings
|
|
||||||
# Since they are not really using the defines stated in the warnings
|
|
||||||
# Since the only used one (NVIC_USB0_IRQ) is having the same value in both M0 and M4 mode
|
|
||||||
# => We are faking M4 mode on them
|
|
||||||
set(NO_WARNINGS_USBFILES
|
|
||||||
${HACKRF_PATH}/firmware/common/usb.c
|
|
||||||
${HACKRF_PATH}/firmware/common/usb_queue.c
|
|
||||||
)
|
|
||||||
|
|
||||||
# -DLPC43XX_M4 kills the 'warning: "NVIC_XXXX..." redefined'
|
|
||||||
# -D__ARM_ARCH_7M__ kills the 'warning: implicit declaration of function __ldrex && __sdrex'
|
|
||||||
set_source_files_properties(${NO_WARNINGS_USBFILES} PROPERTIES COMPILE_FLAGS "-DLPC43XX_M4 -D__ARM_ARCH_7M__")
|
|
||||||
|
|
||||||
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
# setting.
|
# setting.
|
||||||
set(CSRC
|
set(CSRC
|
||||||
@ -133,7 +118,8 @@ set(CSRC
|
|||||||
usb_serial_endpoints.c
|
usb_serial_endpoints.c
|
||||||
usb_serial_device_to_host.c
|
usb_serial_device_to_host.c
|
||||||
i2c_device_to_host.c
|
i2c_device_to_host.c
|
||||||
${NO_WARNINGS_USBFILES}
|
${HACKRF_PATH}/firmware/common/usb.c
|
||||||
|
${HACKRF_PATH}/firmware/common/usb_queue.c
|
||||||
${HACKRF_PATH}/firmware/hackrf_usb/usb_device.c
|
${HACKRF_PATH}/firmware/hackrf_usb/usb_device.c
|
||||||
${HACKRF_PATH}/firmware/common/usb_request.c
|
${HACKRF_PATH}/firmware/common/usb_request.c
|
||||||
${HACKRF_PATH}/firmware/common/usb_standard_request.c
|
${HACKRF_PATH}/firmware/common/usb_standard_request.c
|
||||||
|
2
hackrf
2
hackrf
@ -1 +1 @@
|
|||||||
Subproject commit 94dfae3f46c5b6befe6b60e18c63f75739704e95
|
Subproject commit 65bf67f9b55ec8e501d64de9ffcbd0528e41c5f3
|
Loading…
Reference in New Issue
Block a user