refine ASSERT_DEFINE to allow special error_handler for os task

add device_addr0 for enumeration task
start to add osal port for freeRTOS
This commit is contained in:
hathach
2013-02-04 00:03:08 +07:00
parent 3ac88f1b4e
commit 5f8839fff8
10 changed files with 149 additions and 59 deletions

View File

@@ -34,6 +34,8 @@
- -:../test_old
#- ../../CMSISv2p10_LPC13Uxx/**
- ../../CMSISv2p10_LPC43xx_DriverLib/inc
# - ../../../os/FreeRTOSV7.3.0/FreeRTOS/Source/**
# - -:../../../os/FreeRTOSV7.3.0/FreeRTOS/Source/portable/**
:support:
- test/support

View File

@@ -121,7 +121,7 @@ extern osal_queue_handle_t enum_queue_hdl;
usbh_enumerate_t enum_connect =
{
.core_id = 0,
.hub_address = 0,
.hub_addr = 0,
.hub_port = 0,
.connect_status = 1
};

View File

@@ -89,17 +89,7 @@
#define TUSB_CFG_OS TUSB_OS_NONE
#define TUSB_CFG_OS_TICKS_PER_SECOND 1000 // 1 ms tick
#ifdef __CODE_RED // make use of code red's support for ram region macros
#if (MCU == MCU_LPC11UXX) || (MCU == MCU_LPC13UXX)
#define TUSB_RAM_SECTION ".data.$RAM2"
#elif (MCU == MCU_LPC43XX)
#define TUSB_RAM_SECTION ".data.$RAM3"
#endif
#define TUSB_CFG_ATTR_USBRAM __attribute__ ((section(TUSB_RAM_SECTION)))
#endif
#define TUSB_CFG_ATTR_USBRAM
#ifdef __cplusplus
}