From ad72db5aeacf7d969f5c091c59a2f279eaf1c19c Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 10 Mar 2014 13:13:13 +0700 Subject: change IAR TUSB_CFG_ATTR_USBRAM to _Pragma("location=\".ahb_sram1\"") instead of @ .ahb_sram1 so that we can place it before the variable for a cleaner code change pipe xfer API buffer from void* to uint8_t* change FIFO_DEF to have a separated buffer to be compatible with IAR\ refractor IAR data alignment pragma --- tinyusb/class/hid_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tinyusb/class/hid_host.c') diff --git a/tinyusb/class/hid_host.c b/tinyusb/class/hid_host.c index e61590eab..fb50a6e03 100644 --- a/tinyusb/class/hid_host.c +++ b/tinyusb/class/hid_host.c @@ -180,7 +180,7 @@ void hidh_init(void) } #if 0 -uint8_t report_descriptor[256] TUSB_CFG_ATTR_USBRAM; +TUSB_CFG_ATTR_USBRAM uint8_t report_descriptor[256]; #endif tusb_error_t hidh_open_subtask(uint8_t dev_addr, tusb_descriptor_interface_t const *p_interface_desc, uint16_t *p_length) -- cgit v1.3.1