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)
This commit is contained in:
hathach
2013-01-18 11:49:51 +07:00
parent c16632da0b
commit 25f6cee73b
13 changed files with 45 additions and 111 deletions

View File

@@ -320,7 +320,7 @@ TUSB_Error_t tusb_cdc_configured(USBD_HANDLE_T hUsb)
fifo_init (&ffTX, qBuffer[0], CDC_BUFFER_SIZE, false, USB0_IRQn); // TODO USB1 TX is non-overwritable
fifo_init (&ffRX, qBuffer[1], CDC_BUFFER_SIZE, true, USB0_IRQn); // RX is overwritable
#else
#error No MCU defined" // TODO asbtract MCU
#error No MCU defined // TODO asbtract MCU
#endif
return tERROR_NONE;