diff options
| author | hathach <[email protected]> | 2013-01-22 18:09:58 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-01-22 18:09:58 +0700 |
| commit | 3ffda2033a55093a1b1667ed22f523a9a8a6a3d4 (patch) | |
| tree | 5630457978c47300bc200f7bb8660b6dbc1d61b8 /tinyusb/hal | |
| parent | 38ce3f7534ec9e3e0b10b8923d7d17e437463e86 (diff) | |
clear 19.1
Diffstat (limited to 'tinyusb/hal')
| -rw-r--r-- | tinyusb/hal/hal.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/tinyusb/hal/hal.h b/tinyusb/hal/hal.h index 10a5c184e..fa0110d9a 100644 --- a/tinyusb/hal/hal.h +++ b/tinyusb/hal/hal.h @@ -62,6 +62,17 @@ #define MCU_LPC11UXX 2 #define MCU_LPC43XX 3 +#if MCU == 0 + #error MCU is not defined or supported +#elif MCU == MCU_LPC11UXX + #include "hal_lpc11uxx.h" +#elif MCU == MCU_LPC13UXX + #include "hal_lpc13uxx.h" +#elif MCU == MCU_LPC43XX + #include "hal_lpc43xx.h" +#endif + + /** \brief USB hardware init * * \param[in] para1 @@ -81,16 +92,6 @@ static inline void hal_interrupt_enable() ATTR_ALWAYS_INLINE; */ static inline void hal_interrupt_disable() ATTR_ALWAYS_INLINE; -#if MCU == 0 - #error MCU is not defined or supported -#elif MCU == MCU_LPC11UXX - #include "hal_lpc11uxx.h" -#elif MCU == MCU_LPC13UXX - #include "hal_lpc13uxx.h" -#elif MCU == MCU_LPC43XX - #include "hal_lpc43xx.h" -#endif - #ifdef __cplusplus } #endif |
