diff options
| author | hathach <[email protected]> | 2018-04-10 14:31:11 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-04-10 14:31:11 +0700 |
| commit | 3c2467196070eeedd4171e183db04fb815677246 (patch) | |
| tree | 742e3f277776b025ee0f90ab63ef2f70a3b3d03a /hw | |
| parent | 3473c71a6a7cb22cb45f368dba4edda49ed8f7af (diff) | |
mass rename TUSB_CFG to CFG_TUSB
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/ea4357/board_ea4357.c | 6 | ||||
| -rw-r--r-- | hw/bsp/keil/board_mcb4300.c | 2 | ||||
| -rw-r--r-- | hw/bsp/lpcxpresso/board_lpclink2.c | 2 | ||||
| -rw-r--r-- | hw/bsp/lpcxpresso/board_lpcxpresso11u14.c | 2 | ||||
| -rw-r--r-- | hw/bsp/lpcxpresso11u68/board_lpcxpresso11u68.c | 2 | ||||
| -rw-r--r-- | hw/bsp/lpcxpresso1347/board_lpcxpresso1347.c | 2 | ||||
| -rw-r--r-- | hw/bsp/lpcxpresso1769/board_lpcxpresso1769.c | 2 | ||||
| -rw-r--r-- | hw/bsp/ngx/board_ngx4330.c | 2 | ||||
| -rw-r--r-- | hw/mcu/nxp/lpc11uxx/hal_mcu/hal_lpc11uxx.c | 2 | ||||
| -rw-r--r-- | hw/mcu/nxp/lpc13uxx/hal_mcu/hal_lpc13uxx.c | 2 |
10 files changed, 12 insertions, 12 deletions
diff --git a/hw/bsp/ea4357/board_ea4357.c b/hw/bsp/ea4357/board_ea4357.c index 549eb70f7..fdb8adb8b 100644 --- a/hw/bsp/ea4357/board_ea4357.c +++ b/hw/bsp/ea4357/board_ea4357.c @@ -68,7 +68,7 @@ enum { /*------------------------------------------------------------------*/ /* TUSB HAL MILLISECOND *------------------------------------------------------------------*/ -#if TUSB_CFG_OS == TUSB_OS_NONE +#if CFG_TUSB_OS == TUSB_OS_NONE volatile uint32_t system_ticks = 0; @@ -91,7 +91,7 @@ void board_init(void) { CGU_Init(); -#if TUSB_CFG_OS == TUSB_OS_NONE // TODO may move to main.c +#if CFG_TUSB_OS == TUSB_OS_NONE // TODO may move to main.c SysTick_Config(CGU_GetPCLKFrequency(CGU_PERIPHERAL_M4CORE) / BOARD_TICKS_HZ); // 1 msec tick timer #endif @@ -99,7 +99,7 @@ void board_init(void) // USB0 Power: EA4357 channel B U20 GPIO26 active low (base board), P2_3 on LPC4357 scu_pinmux(0x02, 3, MD_PUP | MD_EZI, FUNC7); // USB0 VBus Power - #if TUSB_CFG_CONTROLLER_0_MODE & TUSB_MODE_DEVICE + #if CFG_TUSB_CONTROLLER_0_MODE & TUSB_MODE_DEVICE scu_pinmux(0x09, 5, GPIO_PDN, FUNC4); // P9_5 (GPIO5[18]) (GPIO28 on oem base) as USB connect, active low. GPIO_SetDir(5, BIT_(18), 1); #endif diff --git a/hw/bsp/keil/board_mcb4300.c b/hw/bsp/keil/board_mcb4300.c index b9a3f4144..55d0dc6ba 100644 --- a/hw/bsp/keil/board_mcb4300.c +++ b/hw/bsp/keil/board_mcb4300.c @@ -74,7 +74,7 @@ void board_init(void) { CGU_Init(); -#if TUSB_CFG_OS == TUSB_OS_NONE // TODO may move to main.c +#if CFG_TUSB_OS == TUSB_OS_NONE // TODO may move to main.c SysTick_Config(CGU_GetPCLKFrequency(CGU_PERIPHERAL_M4CORE) / BOARD_TICKS_HZ); // 1 msec tick timer #endif diff --git a/hw/bsp/lpcxpresso/board_lpclink2.c b/hw/bsp/lpcxpresso/board_lpclink2.c index 5f6f18cb6..f5dc00e00 100644 --- a/hw/bsp/lpcxpresso/board_lpclink2.c +++ b/hw/bsp/lpcxpresso/board_lpclink2.c @@ -56,7 +56,7 @@ void board_init(void) { CGU_Init(); -#if TUSB_CFG_OS == TUSB_OS_NONE // TODO may move to main.c +#if CFG_TUSB_OS == TUSB_OS_NONE // TODO may move to main.c SysTick_Config(CGU_GetPCLKFrequency(CGU_PERIPHERAL_M4CORE) / BOARD_TICKS_HZ); // 1 msec tick timer #endif diff --git a/hw/bsp/lpcxpresso/board_lpcxpresso11u14.c b/hw/bsp/lpcxpresso/board_lpcxpresso11u14.c index 79df45a36..a93ee21e0 100644 --- a/hw/bsp/lpcxpresso/board_lpcxpresso11u14.c +++ b/hw/bsp/lpcxpresso/board_lpcxpresso11u14.c @@ -67,7 +67,7 @@ void board_init(void) { SystemInit(); -#if TUSB_CFG_OS == TUSB_OS_NONE // TODO may move to main.c +#if CFG_TUSB_OS == TUSB_OS_NONE // TODO may move to main.c SysTick_Config(SystemCoreClock / BOARD_TICKS_HZ); // 1 msec tick timer #endif diff --git a/hw/bsp/lpcxpresso11u68/board_lpcxpresso11u68.c b/hw/bsp/lpcxpresso11u68/board_lpcxpresso11u68.c index 5796c2341..ba21a287e 100644 --- a/hw/bsp/lpcxpresso11u68/board_lpcxpresso11u68.c +++ b/hw/bsp/lpcxpresso11u68/board_lpcxpresso11u68.c @@ -58,7 +58,7 @@ void board_init(void) { SystemInit(); -#if TUSB_CFG_OS == TUSB_OS_NONE // TODO may move to main.c +#if CFG_TUSB_OS == TUSB_OS_NONE // TODO may move to main.c SysTick_Config(SystemCoreClock / BOARD_TICKS_HZ); // 1 msec tick timer #endif diff --git a/hw/bsp/lpcxpresso1347/board_lpcxpresso1347.c b/hw/bsp/lpcxpresso1347/board_lpcxpresso1347.c index c0a870d7e..2730e1768 100644 --- a/hw/bsp/lpcxpresso1347/board_lpcxpresso1347.c +++ b/hw/bsp/lpcxpresso1347/board_lpcxpresso1347.c @@ -68,7 +68,7 @@ void board_init(void) { SystemInit(); -#if TUSB_CFG_OS == TUSB_OS_NONE // TODO may move to main.c +#if CFG_TUSB_OS == TUSB_OS_NONE // TODO may move to main.c SysTick_Config(SystemCoreClock / BOARD_TICKS_HZ); // 1 msec tick timer #endif diff --git a/hw/bsp/lpcxpresso1769/board_lpcxpresso1769.c b/hw/bsp/lpcxpresso1769/board_lpcxpresso1769.c index 7aceb87f4..ba465e224 100644 --- a/hw/bsp/lpcxpresso1769/board_lpcxpresso1769.c +++ b/hw/bsp/lpcxpresso1769/board_lpcxpresso1769.c @@ -67,7 +67,7 @@ void board_init(void) { SystemInit(); -#if TUSB_CFG_OS == TUSB_OS_NONE // TODO may move to main.c +#if CFG_TUSB_OS == TUSB_OS_NONE // TODO may move to main.c SysTick_Config(SystemCoreClock / BOARD_TICKS_HZ); // 1 msec tick timer #endif diff --git a/hw/bsp/ngx/board_ngx4330.c b/hw/bsp/ngx/board_ngx4330.c index 63c72756e..41c0beddc 100644 --- a/hw/bsp/ngx/board_ngx4330.c +++ b/hw/bsp/ngx/board_ngx4330.c @@ -70,7 +70,7 @@ void board_init(void) { CGU_Init(); -#if TUSB_CFG_OS == TUSB_OS_NONE // TODO may move to main.c +#if CFG_TUSB_OS == TUSB_OS_NONE // TODO may move to main.c SysTick_Config( CGU_GetPCLKFrequency(CGU_PERIPHERAL_M4CORE)/BOARD_TICKS_HZ ); /* 1 ms Timer */ #endif diff --git a/hw/mcu/nxp/lpc11uxx/hal_mcu/hal_lpc11uxx.c b/hw/mcu/nxp/lpc11uxx/hal_mcu/hal_lpc11uxx.c index e8b204639..f7998d5af 100644 --- a/hw/mcu/nxp/lpc11uxx/hal_mcu/hal_lpc11uxx.c +++ b/hw/mcu/nxp/lpc11uxx/hal_mcu/hal_lpc11uxx.c @@ -39,7 +39,7 @@ #include "common/tusb_common.h"
#include "hal.h"
-#if TUSB_CFG_MCU == MCU_LPC11UXX
+#if CFG_TUSB_MCU == MCU_LPC11UXX
void tusb_hal_int_enable(uint8_t rhport)
{
diff --git a/hw/mcu/nxp/lpc13uxx/hal_mcu/hal_lpc13uxx.c b/hw/mcu/nxp/lpc13uxx/hal_mcu/hal_lpc13uxx.c index 89136da97..265729aa9 100644 --- a/hw/mcu/nxp/lpc13uxx/hal_mcu/hal_lpc13uxx.c +++ b/hw/mcu/nxp/lpc13uxx/hal_mcu/hal_lpc13uxx.c @@ -39,7 +39,7 @@ #include "common/tusb_common.h"
#include "hal.h"
-#if TUSB_CFG_MCU == MCU_LPC13UXX
+#if CFG_TUSB_MCU == MCU_LPC13UXX
void tusb_hal_int_enable(uint8_t rhport)
{
|
