summaryrefslogtreecommitdiff
path: root/tinyusb/hal
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-03-02 15:28:40 +0700
committerhathach <[email protected]>2018-03-02 15:28:40 +0700
commitdc12e55c568a182ac95e4e7594e0059c1b8f7f4b (patch)
tree5f4dc1d459c081ae6bf62ea781834d86f1f9d042 /tinyusb/hal
parentb6e337bc12c041969687ee8c13dbe5045c4096f8 (diff)
rename hal_interrupt_* to hal_usb_int_*
Diffstat (limited to 'tinyusb/hal')
-rw-r--r--tinyusb/hal/hal.h4
-rw-r--r--tinyusb/hal/hal_lpc11uxx.c4
-rw-r--r--tinyusb/hal/hal_lpc13uxx.c4
-rw-r--r--tinyusb/hal/hal_lpc175x_6x.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/tinyusb/hal/hal.h b/tinyusb/hal/hal.h
index 65b219610..f395c6d23 100644
--- a/tinyusb/hal/hal.h
+++ b/tinyusb/hal/hal.h
@@ -74,14 +74,14 @@ tusb_error_t hal_init(void);
* \note Some MCUs such as NXP LPC43xx has multiple USB controllers. It is necessary to know which USB controller for
* those MCUs.
*/
-void hal_interrupt_enable(uint8_t coreid);
+void hal_usb_int_enable(uint8_t coreid);
/** \brief Disable USB Interrupt on a specific USB Controller
* \param[in] coreid is a zero-based index to identify USB controller's ID
* \note Some MCUs such as NXP LPC43xx has multiple USB controllers. It is necessary to know which USB controller for
* those MCUs.
*/
-void hal_interrupt_disable(uint8_t coreid);
+void hal_usb_int_disable(uint8_t coreid);
#include "hal_usb.h"
diff --git a/tinyusb/hal/hal_lpc11uxx.c b/tinyusb/hal/hal_lpc11uxx.c
index 36755bdd5..f240597cc 100644
--- a/tinyusb/hal/hal_lpc11uxx.c
+++ b/tinyusb/hal/hal_lpc11uxx.c
@@ -41,13 +41,13 @@
#if TUSB_CFG_MCU == MCU_LPC11UXX
-void hal_interrupt_enable(uint8_t coreid)
+void hal_usb_int_enable(uint8_t coreid)
{
(void) coreid; // discard compiler's warning
NVIC_EnableIRQ(USB_IRQn);
}
-void hal_interrupt_disable(uint8_t coreid)
+void hal_usb_int_disable(uint8_t coreid)
{
(void) coreid; // discard compiler's warning
NVIC_DisableIRQ(USB_IRQn);
diff --git a/tinyusb/hal/hal_lpc13uxx.c b/tinyusb/hal/hal_lpc13uxx.c
index afa67ff21..a8969a2f7 100644
--- a/tinyusb/hal/hal_lpc13uxx.c
+++ b/tinyusb/hal/hal_lpc13uxx.c
@@ -41,13 +41,13 @@
#if TUSB_CFG_MCU == MCU_LPC13UXX
-void hal_interrupt_enable(uint8_t coreid)
+void hal_usb_int_enable(uint8_t coreid)
{
(void) coreid; // discard compiler's warning
NVIC_EnableIRQ(USB_IRQ_IRQn);
}
-void hal_interrupt_disable(uint8_t coreid)
+void hal_usb_int_disable(uint8_t coreid)
{
(void) coreid; // discard compiler's warning
NVIC_DisableIRQ(USB_IRQ_IRQn);
diff --git a/tinyusb/hal/hal_lpc175x_6x.c b/tinyusb/hal/hal_lpc175x_6x.c
index f7f1d6a7d..32be8f3fe 100644
--- a/tinyusb/hal/hal_lpc175x_6x.c
+++ b/tinyusb/hal/hal_lpc175x_6x.c
@@ -41,13 +41,13 @@
#if TUSB_CFG_MCU == MCU_LPC175X_6X
-void hal_interrupt_enable(uint8_t coreid)
+void hal_usb_int_enable(uint8_t coreid)
{
(void) coreid; // discard compiler's warning
NVIC_EnableIRQ(USB_IRQn);
}
-void hal_interrupt_disable(uint8_t coreid)
+void hal_usb_int_disable(uint8_t coreid)
{
(void) coreid; // discard compiler's warning
NVIC_DisableIRQ(USB_IRQn);