diff options
| author | hathach <[email protected]> | 2018-03-02 15:20:55 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-02 15:20:55 +0700 |
| commit | 4097d022542708ee2bc441552679834477a58cf6 (patch) | |
| tree | 7079fc373aec266dd418c31a465fabed01af4574 /tinyusb/hal/hal.h | |
| parent | b5f17fd8235b66b0137c79bf7abd26de4e77d3f7 (diff) | |
refactor hal
Diffstat (limited to 'tinyusb/hal/hal.h')
| -rw-r--r-- | tinyusb/hal/hal.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tinyusb/hal/hal.h b/tinyusb/hal/hal.h index 24e39289d..cdaa3c773 100644 --- a/tinyusb/hal/hal.h +++ b/tinyusb/hal/hal.h @@ -50,7 +50,7 @@ #include "common/compiler/compiler.h"
// callback from tusb.h
-extern void tusb_isr(uint8_t coreid);
+void tusb_isr(uint8_t coreid);
//--------------------------------------------------------------------+
// HAL API
@@ -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.
*/
-static inline void hal_interrupt_enable(uint8_t coreid) ATTR_ALWAYS_INLINE;
+void hal_interrupt_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.
*/
-static inline void hal_interrupt_disable(uint8_t coreid) ATTR_ALWAYS_INLINE;
+void hal_interrupt_disable(uint8_t coreid);
//--------------------------------------------------------------------+
// INCLUDE DRIVEN
@@ -91,7 +91,7 @@ static inline void hal_interrupt_disable(uint8_t coreid) ATTR_ALWAYS_INLINE; #elif TUSB_CFG_MCU == MCU_LPC13UXX
#include "hal_lpc13uxx.h"
#elif TUSB_CFG_MCU == MCU_LPC43XX
- #include "hal_lpc43xx.h"
+ #include "mcu/nxp/lpc43xx/usb/hal_lpc43xx.h"
#elif TUSB_CFG_MCU == MCU_LPC175X_6X
#include "hal_lpc175x_6x.h"
#else
@@ -102,8 +102,6 @@ static inline void hal_interrupt_disable(uint8_t coreid) ATTR_ALWAYS_INLINE; extern "C" {
#endif
-
-static inline bool hal_debugger_is_attached(void) ATTR_PURE ATTR_ALWAYS_INLINE;
static inline bool hal_debugger_is_attached(void)
{
// TODO check core M3/M4 defined instead
|
