summaryrefslogtreecommitdiff
path: root/tinyusb/hal
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-01-19 00:57:58 +0700
committerhathach <[email protected]>2013-01-19 00:57:58 +0700
commitcfe7a3d23b4639c3578b166fc865450bc439d82c (patch)
tree7a831618538324b04bfd9e0f918a78a0aea92b34 /tinyusb/hal
parentd8c8b9e38ad94ab84c24f22c2ecb79ce4d78b7ba (diff)
change error type to lower case for more consistency
change Error Enum to TUSB prefix for more consistency start to add check for OS configure
Diffstat (limited to 'tinyusb/hal')
-rw-r--r--tinyusb/hal/hal.h2
-rw-r--r--tinyusb/hal/hal_lpc11uxx.c4
-rw-r--r--tinyusb/hal/hal_lpc13uxx.c4
-rw-r--r--tinyusb/hal/hal_lpc43xx.c4
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