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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user