rename hal_* to tusb_hal_*
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user