adding support for lpc13uxx
This commit is contained in:
@@ -86,9 +86,7 @@ static inline void hal_interrupt_disable(uint8_t coreid) ATTR_ALWAYS_INLINE;
|
||||
//--------------------------------------------------------------------+
|
||||
// INCLUDE DRIVEN
|
||||
//--------------------------------------------------------------------+
|
||||
#if MCU == 0
|
||||
#error MCU is not defined or supported yet
|
||||
#elif MCU == MCU_LPC11UXX
|
||||
#if MCU == MCU_LPC11UXX
|
||||
#include "hal_lpc11uxx.h"
|
||||
#elif MCU == MCU_LPC13UXX
|
||||
#include "hal_lpc13uxx.h"
|
||||
|
||||
@@ -57,6 +57,9 @@ tusb_error_t hal_init(void)
|
||||
LPC_IOCON->PIO0_6 &= ~0x07;
|
||||
LPC_IOCON->PIO0_6 |= (0x01<<0); /* Secondary function SoftConn */
|
||||
|
||||
dcd_controller_connect(0);
|
||||
hal_interrupt_enable(0);
|
||||
|
||||
return TUSB_ERROR_NONE;
|
||||
}
|
||||
|
||||
|
||||
@@ -58,15 +58,15 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
static inline void hal_interrupt_enable(uint8_t controller_id)
|
||||
static inline void hal_interrupt_enable(uint8_t coreid)
|
||||
{
|
||||
(void) controller_id; // discard compiler's warning
|
||||
(void) coreid; // discard compiler's warning
|
||||
NVIC_EnableIRQ(USB_IRQ_IRQn);
|
||||
}
|
||||
|
||||
static inline void hal_interrupt_disable(uint8_t controller_id)
|
||||
static inline void hal_interrupt_disable(uint8_t coreid)
|
||||
{
|
||||
(void) controller_id; // discard compiler's warning
|
||||
(void) coreid; // discard compiler's warning
|
||||
NVIC_DisableIRQ(USB_IRQ_IRQn);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user