summaryrefslogtreecommitdiff
path: root/hw/mcu/nxp
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-03-11 13:01:57 +0700
committerhathach <[email protected]>2018-03-11 13:01:57 +0700
commit0384e40320605aa7b2b28777f41feabcc3b3f130 (patch)
tree7593065e5b6f8aa01ddda91db7297d8144d6d940 /hw/mcu/nxp
parentc39b24001d57a128dc0d094c509ae4ed3998e617 (diff)
rename hal_* to tusb_hal_*
Diffstat (limited to 'hw/mcu/nxp')
-rw-r--r--hw/mcu/nxp/lpc11uxx/hal_mcu/hal_lpc11uxx.c6
-rw-r--r--hw/mcu/nxp/lpc13uxx/hal_mcu/hal_lpc13uxx.c6
-rw-r--r--hw/mcu/nxp/lpc175x_6x/hal_mcu/hal_lpc175x_6x.c6
-rw-r--r--hw/mcu/nxp/lpc43xx/hal/hal_lpc43xx.c8
4 files changed, 13 insertions, 13 deletions
diff --git a/hw/mcu/nxp/lpc11uxx/hal_mcu/hal_lpc11uxx.c b/hw/mcu/nxp/lpc11uxx/hal_mcu/hal_lpc11uxx.c
index c2efb219f..8bef1e9d2 100644
--- a/hw/mcu/nxp/lpc11uxx/hal_mcu/hal_lpc11uxx.c
+++ b/hw/mcu/nxp/lpc11uxx/hal_mcu/hal_lpc11uxx.c
@@ -41,19 +41,19 @@
#if TUSB_CFG_MCU == MCU_LPC11UXX
-void hal_usb_int_enable(uint8_t port)
+void tusb_hal_init_enable(uint8_t port)
{
(void) port; // discard compiler's warning
NVIC_EnableIRQ(USB_IRQn);
}
-void hal_usb_int_disable(uint8_t port)
+void tusb_hal_init_disable(uint8_t port)
{
(void) port; // discard compiler's warning
NVIC_DisableIRQ(USB_IRQn);
}
-bool hal_usb_init(void)
+bool tusb_hal_init(void)
{
// TODO remove magic number
/* Enable AHB clock to the USB block and USB RAM. */
diff --git a/hw/mcu/nxp/lpc13uxx/hal_mcu/hal_lpc13uxx.c b/hw/mcu/nxp/lpc13uxx/hal_mcu/hal_lpc13uxx.c
index d2ceb24b3..2d48ab88d 100644
--- a/hw/mcu/nxp/lpc13uxx/hal_mcu/hal_lpc13uxx.c
+++ b/hw/mcu/nxp/lpc13uxx/hal_mcu/hal_lpc13uxx.c
@@ -41,19 +41,19 @@
#if TUSB_CFG_MCU == MCU_LPC13UXX
-void hal_usb_int_enable(uint8_t port)
+void tusb_hal_init_enable(uint8_t port)
{
(void) port; // discard compiler's warning
NVIC_EnableIRQ(USB_IRQ_IRQn);
}
-void hal_usb_int_disable(uint8_t port)
+void tusb_hal_init_disable(uint8_t port)
{
(void) port; // discard compiler's warning
NVIC_DisableIRQ(USB_IRQ_IRQn);
}
-bool hal_usb_init(void)
+bool tusb_hal_init(void)
{
// TODO remove magic number
LPC_SYSCON->SYSAHBCLKCTRL |= ((0x1<<14) | (0x1<<27)); /* Enable AHB clock to the USB block and USB RAM. */
diff --git a/hw/mcu/nxp/lpc175x_6x/hal_mcu/hal_lpc175x_6x.c b/hw/mcu/nxp/lpc175x_6x/hal_mcu/hal_lpc175x_6x.c
index 44768a676..940376fd3 100644
--- a/hw/mcu/nxp/lpc175x_6x/hal_mcu/hal_lpc175x_6x.c
+++ b/hw/mcu/nxp/lpc175x_6x/hal_mcu/hal_lpc175x_6x.c
@@ -41,13 +41,13 @@
#if TUSB_CFG_MCU == MCU_LPC175X_6X
-void hal_usb_int_enable(uint8_t port)
+void tusb_hal_init_enable(uint8_t port)
{
(void) port; // discard compiler's warning
NVIC_EnableIRQ(USB_IRQn);
}
-void hal_usb_int_disable(uint8_t port)
+void tusb_hal_init_disable(uint8_t port)
{
(void) port; // discard compiler's warning
NVIC_DisableIRQ(USB_IRQn);
@@ -56,7 +56,7 @@ void hal_usb_int_disable(uint8_t port)
//--------------------------------------------------------------------+
// IMPLEMENTATION
//--------------------------------------------------------------------+
-bool hal_usb_init(void)
+bool tusb_hal_init(void)
{
enum {
USBCLK_DEVCIE = 0x12, // AHB + Device
diff --git a/hw/mcu/nxp/lpc43xx/hal/hal_lpc43xx.c b/hw/mcu/nxp/lpc43xx/hal/hal_lpc43xx.c
index 8758dc73c..b86f5024e 100644
--- a/hw/mcu/nxp/lpc43xx/hal/hal_lpc43xx.c
+++ b/hw/mcu/nxp/lpc43xx/hal/hal_lpc43xx.c
@@ -53,7 +53,7 @@ enum {
LPC43XX_USBMODE_VBUS_HIGH = 1
};
-void hal_debugger_breakpoint(void)
+void tusb_hal_dbg_breakpoint(void)
{
// M0 cannot check if debugger is attached or not
#if defined(__CORTEX_M) && (__CORTEX_M > 0)
@@ -65,12 +65,12 @@ void hal_debugger_breakpoint(void)
#endif
}
-void hal_usb_int_enable(uint8_t port)
+void tusb_hal_init_enable(uint8_t port)
{
NVIC_EnableIRQ(port ? USB1_IRQn : USB0_IRQn);
}
-void hal_usb_int_disable(uint8_t port)
+void tusb_hal_init_disable(uint8_t port)
{
NVIC_DisableIRQ(port ? USB1_IRQn : USB0_IRQn);
}
@@ -91,7 +91,7 @@ static void hal_controller_reset(uint8_t port)
// return timeout_expired(&timeout) ? TUSB_ERROR_OSAL_TIMEOUT : TUSB_ERROR_NONE;
}
-bool hal_usb_init(void)
+bool tusb_hal_init(void)
{
LPC_CREG->CREG0 &= ~(1<<5); /* Turn on the phy */