diff options
Diffstat (limited to 'tinyusb/hal')
| -rw-r--r-- | tinyusb/hal/hal.h | 2 | ||||
| -rw-r--r-- | tinyusb/hal/hal_lpc11uxx.c | 4 | ||||
| -rw-r--r-- | tinyusb/hal/hal_lpc13uxx.c | 4 | ||||
| -rw-r--r-- | tinyusb/hal/hal_lpc43xx.c | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/tinyusb/hal/hal.h b/tinyusb/hal/hal.h index 4c317302b..10a5c184e 100644 --- a/tinyusb/hal/hal.h +++ b/tinyusb/hal/hal.h @@ -69,7 +69,7 @@ * \return Error Code of the \ref TUSB_ERROR enum * \note */ -TUSB_Error_t hal_init(); +tusb_error_t hal_init(); /** * Enable USB Interrupt diff --git a/tinyusb/hal/hal_lpc11uxx.c b/tinyusb/hal/hal_lpc11uxx.c index e4f5f9840..7a382b790 100644 --- a/tinyusb/hal/hal_lpc11uxx.c +++ b/tinyusb/hal/hal_lpc11uxx.c @@ -39,7 +39,7 @@ #if MCU == MCU_LPC11UXX -TUSB_Error_t hal_init() +tusb_error_t hal_init() { // TODO remove magic number /* Enable AHB clock to the USB block and USB RAM. */ @@ -52,7 +52,7 @@ TUSB_Error_t hal_init() LPC_IOCON->PIO0_6 &= ~0x07; LPC_IOCON->PIO0_6 |= (0x01<<0); /* Secondary function SoftConn */ - return tERROR_NONE; + return TUSB_ERROR_NONE; } #endif diff --git a/tinyusb/hal/hal_lpc13uxx.c b/tinyusb/hal/hal_lpc13uxx.c index 8affb434a..02e3748c4 100644 --- a/tinyusb/hal/hal_lpc13uxx.c +++ b/tinyusb/hal/hal_lpc13uxx.c @@ -39,7 +39,7 @@ #if MCU == MCU_LPC13UXX -TUSB_Error_t hal_init() +tusb_error_t hal_init() { // TODO usb abstract later /* Enable AHB clock to the USB block and USB RAM. */ @@ -52,7 +52,7 @@ TUSB_Error_t hal_init() LPC_IOCON->PIO0_6 &= ~0x07; LPC_IOCON->PIO0_6 |= (0x01<<0); /* Secondary function SoftConn */ - return tERROR_NONE; + return TUSB_ERROR_NONE; } #endif diff --git a/tinyusb/hal/hal_lpc43xx.c b/tinyusb/hal/hal_lpc43xx.c index 2b60d29c3..a980ebd0f 100644 --- a/tinyusb/hal/hal_lpc43xx.c +++ b/tinyusb/hal/hal_lpc43xx.c @@ -39,7 +39,7 @@ #if MCU == MCU_LPC43XX -TUSB_Error_t hal_init() +tusb_error_t hal_init() { /* Set up USB0 clock */ CGU_EnableEntity(CGU_CLKSRC_PLL0, DISABLE); /* Disable PLL first */ @@ -48,7 +48,7 @@ TUSB_Error_t hal_init() CGU_EnableEntity(CGU_CLKSRC_PLL0, ENABLE); /* Enable PLL after all setting is done */ LPC_CREG->CREG0 &= ~(1<<5); /* Turn on the phy */ - return tERROR_NONE; + return TUSB_ERROR_NONE; } #endif |
