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/tusb_option.h | |
| 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/tusb_option.h')
| -rw-r--r-- | tinyusb/tusb_option.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tinyusb/tusb_option.h b/tinyusb/tusb_option.h index 250f83307..0d321f08e 100644 --- a/tinyusb/tusb_option.h +++ b/tinyusb/tusb_option.h @@ -55,12 +55,13 @@ /// define this symbol will make tinyusb look for external configure file #ifndef _TEST_ // TODO allow configurable name -#include "tusb_config.h" + #include "tusb_config.h" #endif -/// 0: no debug infor 3: most debug infor provided +/// 0: no debug information 3: most debug information provided #ifndef TUSB_CFG_DEBUG -#define TUSB_CFG_DEBUG 3 + #define TUSB_CFG_DEBUG 3 + #warning TUSB_CFG_DEBUG is not defined, default value is 3 #endif /// Enable Host Support @@ -69,6 +70,13 @@ /// Enable Device Support //#define TUSB_CFG_DEVICE +/// USB RAM Section Placement, MCU's usb controller often has limited access to specific RAM region. This will be used to declare internal variables as follow: +/// uint8_t tinyusb_data[10] TUSB_ATTR_RAM_SECTION; +/// if your mcu's usb controller has no such limit, define TUSB_ATTR_RAM_SECTION as empty macro. +#ifndef TUSB_ATTR_RAM_SECTION + #error TUSB_ATTR_RAM_SECTION is not defined, needed to place data in accessible RAM for usb controller +#endif + #define DEVICE_CLASS_HID ( (defined TUSB_CFG_DEVICE_HID_KEYBOARD) || (defined TUSB_CFG_DEVICE_HID_MOUSE) ) #define HOST_EHCI |
