diff options
| author | Zhihong Chen <[email protected]> | 2024-03-18 18:57:34 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-03-18 19:20:30 +0800 |
| commit | 9145add9af98d4ff2edc0d2066522cd6421ba78b (patch) | |
| tree | 593b19dc3dbab94757cc4437e859bf90d5746872 | |
| parent | ce241024b138b7675619141291ed865399aa48f1 (diff) | |
core: host: add "." to section usbh_class_info for IAR
- add "." to section usbh_class_info for IAR
Signed-off-by: Zhihong Chen <[email protected]>
| -rw-r--r-- | core/usbh_core.c | 4 | ||||
| -rw-r--r-- | core/usbh_core.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/usbh_core.c b/core/usbh_core.c index 0cb21f54..3349a759 100644 --- a/core/usbh_core.c +++ b/core/usbh_core.c @@ -683,8 +683,8 @@ int usbh_initialize(uint8_t busid, uint32_t reg_base) usbh_class_info_table_begin = (struct usbh_class_info *)&__usbh_class_info_start__; usbh_class_info_table_end = (struct usbh_class_info *)&__usbh_class_info_end__; #elif defined(__ICCARM__) || defined(__ICCRX__) || defined(__ICCRISCV__) - usbh_class_info_table_begin = (struct usbh_class_info *)__section_begin("usbh_class_info"); - usbh_class_info_table_end = (struct usbh_class_info *)__section_end("usbh_class_info"); + usbh_class_info_table_begin = (struct usbh_class_info *)__section_begin(".usbh_class_info"); + usbh_class_info_table_end = (struct usbh_class_info *)__section_end(".usbh_class_info"); #endif usbh_hub_initialize(bus); return 0; diff --git a/core/usbh_core.h b/core/usbh_core.h index d5cfc385..369d8b6a 100644 --- a/core/usbh_core.h +++ b/core/usbh_core.h @@ -39,8 +39,8 @@ extern "C" { #elif defined(__GNUC__) #define CLASS_INFO_DEFINE __attribute__((section(".usbh_class_info"))) __USED __ALIGNED(1) #elif defined(__ICCARM__) || defined(__ICCRX__) || defined(__ICCRISCV__) -#pragma section = "usbh_class_info" -#define CLASS_INFO_DEFINE __attribute__((section("usbh_class_info"))) __USED __ALIGNED(1) +#pragma section = ".usbh_class_info" +#define CLASS_INFO_DEFINE __attribute__((section(".usbh_class_info"))) __USED __ALIGNED(1) #endif #define USBH_GET_URB_INTERVAL(interval, speed) (speed < USB_SPEED_HIGH ? interval: (1 << (interval - 1))) |
