make freertos source unmodified to ease the upgrade process later

use CGU_GetPCLKFrequency as configCPU_CLOCK_HZ for lpc43xx using with freeRTOS
move portmarco.h include to FreeRTOSConfig.h to have untouched version of freertos
add a readme.md to vendor/freertos
refractor usbh.c, increase POWER_STABLE_DELAY = 500, RESET_DELAY = 200
fix bug with hub, only handle 1 port at a time when reading hub status change endpoint --> other port will be handled in the next cycle
This commit is contained in:
hathach
2014-04-28 11:51:10 +07:00
parent b5a5b4152e
commit 05c767313d
13 changed files with 96 additions and 91 deletions

View File

@@ -70,44 +70,6 @@
#ifndef PORTABLE_H
#define PORTABLE_H
//--------------------------------------------------------------------+
// TinyUSB modification
//--------------------------------------------------------------------+
#if defined __CC_ARM
#if __CORTEX_M == 4 // TODO M0 M4
#define PORTMACRO_PATH "../portable/RVDS/ARM_CM4F/portmacro.h"
#elif __CORTEX_M == 3
#define PORTMACRO_PATH "../portable/RVDS/ARM_CM3/portmacro.h"
#elif __CORTEX_M == 0
#define PORTMACRO_PATH "../portable/RVDS/ARM_CM0/portmacro.h"
#endif
#elif defined __GNUC__
#if __CORTEX_M == 4
#define PORTMACRO_PATH "../portable/GCC/ARM_CM4F/portmacro.h"
#elif __CORTEX_M == 3
#define PORTMACRO_PATH "../portable/GCC/ARM_CM3/portmacro.h"
#elif __CORTEX_M == 0
#define PORTMACRO_PATH "../portable/GCC/ARM_CM0/portmacro.h"
#endif
#elif defined __ICCARM__
#if __CORTEX_M == 4
#define PORTMACRO_PATH "../portable/IAR/ARM_CM4F/portmacro.h"
#elif __CORTEX_M == 3
#define PORTMACRO_PATH "../portable/IAR/ARM_CM3/portmacro.h"
#elif __CORTEX_M == 0
#define PORTMACRO_PATH "../portable/IAR/ARM_CM0/portmacro.h"
#endif
#endif
#ifndef PORTMACRO_PATH
#error portmacro.h path is not defined for this toolchain and/or MCU
#endif
#include PORTMACRO_PATH
/* Include the macro file relevant to the port being used. */
#ifdef OPEN_WATCOM_INDUSTRIAL_PC_PORT