summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-03-02 15:26:23 +0700
committerhathach <[email protected]>2018-03-02 15:26:23 +0700
commitb6e337bc12c041969687ee8c13dbe5045c4096f8 (patch)
treeb6cad9540f0df1b48c715cfc052438f7f6ecc3d4
parent4097d022542708ee2bc441552679834477a58cf6 (diff)
more hal update
-rw-r--r--demos/device/device_os_none/.cproject3
-rw-r--r--hw/mcu/nxp/lpc43xx/usb/hal_usb.h (renamed from hw/mcu/nxp/lpc43xx/usb/hal_lpc43xx.h)6
-rw-r--r--hw/readme.md (renamed from hw/mcu/readme.md)0
-rw-r--r--tinyusb/hal/hal.h16
4 files changed, 6 insertions, 19 deletions
diff --git a/demos/device/device_os_none/.cproject b/demos/device/device_os_none/.cproject
index 98b1e0a1f..7540a09e0 100644
--- a/demos/device/device_os_none/.cproject
+++ b/demos/device/device_os_none/.cproject
@@ -230,8 +230,9 @@
</option>
<option id="gnu.c.compiler.option.misc.other.2122594924" name="Other flags" superClass="gnu.c.compiler.option.misc.other" useByScannerDiscovery="false" value="-c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections" valueType="string"/>
<option id="gnu.c.compiler.option.include.paths.1913705177" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath">
- <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/hw/mcu/nxp/lpc43xx/CMSIS_LPC43xx_DriverLib/inc}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/hw/cmsis/Include}&quot;"/>
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/hw/mcu/nxp/lpc43xx/CMSIS_LPC43xx_DriverLib/inc}&quot;"/>
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/hw/mcu/nxp/lpc43xx/usb}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/hw}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/tinyusb}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/src}&quot;"/>
diff --git a/hw/mcu/nxp/lpc43xx/usb/hal_lpc43xx.h b/hw/mcu/nxp/lpc43xx/usb/hal_usb.h
index ecc892d4a..6b0d9488e 100644
--- a/hw/mcu/nxp/lpc43xx/usb/hal_lpc43xx.h
+++ b/hw/mcu/nxp/lpc43xx/usb/hal_usb.h
@@ -36,8 +36,8 @@
*/
/**************************************************************************/
-#ifndef _TUSB_HAL_LPC43XX_H_
-#define _TUSB_HAL_LPC43XX_H_
+#ifndef _TUSB_HAL_USB_H_
+#define _TUSB_HAL_USB_H_
#include "LPC43xx.h"
#include "lpc43xx_cgu.h"
@@ -52,5 +52,5 @@
}
#endif
-#endif /* _TUSB_HAL_LPC43XX_H_ */
+#endif /* _TUSB_HAL_USB_H_ */
diff --git a/hw/mcu/readme.md b/hw/readme.md
index 0f4308065..0f4308065 100644
--- a/hw/mcu/readme.md
+++ b/hw/readme.md
diff --git a/tinyusb/hal/hal.h b/tinyusb/hal/hal.h
index cdaa3c773..65b219610 100644
--- a/tinyusb/hal/hal.h
+++ b/tinyusb/hal/hal.h
@@ -83,20 +83,7 @@ void hal_interrupt_enable(uint8_t coreid);
*/
void hal_interrupt_disable(uint8_t coreid);
-//--------------------------------------------------------------------+
-// INCLUDE DRIVEN
-//--------------------------------------------------------------------+
-#if TUSB_CFG_MCU == MCU_LPC11UXX
- #include "hal_lpc11uxx.h"
-#elif TUSB_CFG_MCU == MCU_LPC13UXX
- #include "hal_lpc13uxx.h"
-#elif TUSB_CFG_MCU == MCU_LPC43XX
- #include "mcu/nxp/lpc43xx/usb/hal_lpc43xx.h"
-#elif TUSB_CFG_MCU == MCU_LPC175X_6X
- #include "hal_lpc175x_6x.h"
-#else
- #error MCU is not defined or supported yet
-#endif
+#include "hal_usb.h"
#ifdef __cplusplus
extern "C" {
@@ -114,7 +101,6 @@ static inline bool hal_debugger_is_attached(void)
#endif
}
-static inline void hal_debugger_breakpoint(void) ATTR_ALWAYS_INLINE;
static inline void hal_debugger_breakpoint(void)
{
#ifndef _TEST_