diff options
| author | hathach <[email protected]> | 2013-01-18 11:49:51 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-01-18 11:49:51 +0700 |
| commit | 25f6cee73ba1a8a1f75456a352bcb864fcad92b7 (patch) | |
| tree | d09b67b57b55c9c35ff6ef9822f35d215b347c16 /tinyusb/device/dcd.c | |
| parent | c16632da0bf8d042388018c667cfbc176ed56436 (diff) | |
add DEVICE_ROM_DRIVER_ADDR macro in hal to point to rom driver add
add TUSB_ATTR_RAM_SECTION in tinyusb_config.h to abtract usb ram placement to application
remove power_api.h (mcu dependency)
Diffstat (limited to 'tinyusb/device/dcd.c')
| -rw-r--r-- | tinyusb/device/dcd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tinyusb/device/dcd.c b/tinyusb/device/dcd.c index de9e4f07d..3fabf0e51 100644 --- a/tinyusb/device/dcd.c +++ b/tinyusb/device/dcd.c @@ -41,11 +41,10 @@ // TODO refractor later #include "descriptors.h" -#include <cr_section_macros.h> // TODO dcd abstract later #define USB_ROM_SIZE (1024*2) -uint8_t usb_RomDriver_buffer[USB_ROM_SIZE] ATTR_ALIGNED(2048) __DATA(RAM2); +uint8_t usb_RomDriver_buffer[USB_ROM_SIZE] ATTR_ALIGNED(2048) TUSB_ATTR_RAM_SECTION; USBD_HANDLE_T g_hUsb; static volatile bool isConfigured = false; |
