fix iar build
This commit is contained in:
		| @@ -28,13 +28,15 @@ target_include_directories(${PROJECT} PUBLIC | |||||||
| family_configure_dual_usb_example(${PROJECT} noos) | family_configure_dual_usb_example(${PROJECT} noos) | ||||||
|  |  | ||||||
| # due to warnings from Pico-PIO-USB | # due to warnings from Pico-PIO-USB | ||||||
| target_compile_options(${PROJECT} PUBLIC | if (FAMILY STREQUAL rp2040) | ||||||
|   -Wno-error=shadow |   target_compile_options(${PROJECT} PUBLIC | ||||||
|   -Wno-error=cast-align |     -Wno-error=shadow | ||||||
|   -Wno-error=cast-qual |     -Wno-error=cast-align | ||||||
|   -Wno-error=redundant-decls |     -Wno-error=cast-qual | ||||||
|   -Wno-error=sign-conversion |     -Wno-error=redundant-decls | ||||||
|   -Wno-error=conversion |     -Wno-error=sign-conversion | ||||||
|   -Wno-error=sign-compare |     -Wno-error=conversion | ||||||
|   -Wno-error=unused-function |     -Wno-error=sign-compare | ||||||
|   ) |     -Wno-error=unused-function | ||||||
|  |     ) | ||||||
|  | endif () | ||||||
|   | |||||||
| @@ -8,7 +8,7 @@ INC += \ | |||||||
| EXAMPLE_SOURCE += $(wildcard src/*.c) | EXAMPLE_SOURCE += $(wildcard src/*.c) | ||||||
| SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE)) | SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE)) | ||||||
|  |  | ||||||
| CFLAGS += -Wno-error=cast-align -Wno-error=null-dereference | CFLAGS_GCC += -Wno-error=cast-align -Wno-error=null-dereference | ||||||
|  |  | ||||||
| SRC_C += \ | SRC_C += \ | ||||||
| 	src/class/hid/hid_host.c \ | 	src/class/hid/hid_host.c \ | ||||||
|   | |||||||
| @@ -28,13 +28,15 @@ target_include_directories(${PROJECT} PUBLIC | |||||||
| family_configure_dual_usb_example(${PROJECT} noos) | family_configure_dual_usb_example(${PROJECT} noos) | ||||||
|  |  | ||||||
| # due to warnings from Pico-PIO-USB | # due to warnings from Pico-PIO-USB | ||||||
| target_compile_options(${PROJECT} PUBLIC | if (FAMILY STREQUAL rp2040) | ||||||
|   -Wno-error=shadow |   target_compile_options(${PROJECT} PUBLIC | ||||||
|   -Wno-error=cast-align |     -Wno-error=shadow | ||||||
|   -Wno-error=cast-qual |     -Wno-error=cast-align | ||||||
|   -Wno-error=redundant-decls |     -Wno-error=cast-qual | ||||||
|   -Wno-error=sign-conversion |     -Wno-error=redundant-decls | ||||||
|   -Wno-error=conversion |     -Wno-error=sign-conversion | ||||||
|   -Wno-error=sign-compare |     -Wno-error=conversion | ||||||
|   -Wno-error=unused-function |     -Wno-error=sign-compare | ||||||
|   ) |     -Wno-error=unused-function | ||||||
|  |     ) | ||||||
|  | endif () | ||||||
|   | |||||||
| @@ -8,7 +8,7 @@ INC += \ | |||||||
| EXAMPLE_SOURCE += $(wildcard src/*.c) | EXAMPLE_SOURCE += $(wildcard src/*.c) | ||||||
| SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE)) | SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE)) | ||||||
|  |  | ||||||
| CFLAGS += -Wno-error=cast-align -Wno-error=null-dereference | CFLAGS_GCC += -Wno-error=cast-align -Wno-error=null-dereference | ||||||
|  |  | ||||||
| SRC_C += \ | SRC_C += \ | ||||||
| 	src/host/hub.c \ | 	src/host/hub.c \ | ||||||
|   | |||||||
| @@ -27,8 +27,6 @@ if (NOT DEFINED RHPORT_HOST_SPEED) | |||||||
|   list(GET RHPORT_SPEED ${RHPORT_HOST} RHPORT_HOST_SPEED) |   list(GET RHPORT_SPEED ${RHPORT_HOST} RHPORT_HOST_SPEED) | ||||||
| endif () | endif () | ||||||
|  |  | ||||||
| cmake_print_variables(RHPORT_DEVICE RHPORT_DEVICE_SPEED RHPORT_HOST RHPORT_HOST_SPEED) |  | ||||||
|  |  | ||||||
| #------------------------------------ | #------------------------------------ | ||||||
| # BOARD_TARGET | # BOARD_TARGET | ||||||
| #------------------------------------ | #------------------------------------ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach