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