rename hal.h to tusb_hal.h
This commit is contained in:
@@ -36,13 +36,11 @@
|
|||||||
*/
|
*/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
|
|
||||||
#include "common/common.h"
|
#include "hal_mcu.h"
|
||||||
#include "hal/hal.h"
|
#include "tusb.h"
|
||||||
|
|
||||||
#if TUSB_CFG_MCU == MCU_LPC43XX
|
#if TUSB_CFG_MCU == MCU_LPC43XX
|
||||||
|
|
||||||
#include "LPC43xx.h"
|
|
||||||
#include "lpc43xx_cgu.h"
|
|
||||||
#include "lpc43xx_scu.h"
|
#include "lpc43xx_scu.h"
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
@@ -54,7 +54,7 @@ extern "C"
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "compiler/compiler.h"
|
#include "compiler/compiler.h"
|
||||||
|
|
||||||
#include "hal/hal.h" // TODO find a way to break hal dependency
|
#include "tusb_hal.h" // TODO find a way to break hal dependency
|
||||||
|
|
||||||
#define VOID_RETURN
|
#define VOID_RETURN
|
||||||
|
|
||||||
|
@@ -45,7 +45,7 @@
|
|||||||
// INCLUDE
|
// INCLUDE
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
#include "common/common.h"
|
#include "common/common.h"
|
||||||
#include "hal/hal.h"
|
#include "tusb_hal.h"
|
||||||
#include "osal/osal.h"
|
#include "osal/osal.h"
|
||||||
#include "common/timeout_timer.h"
|
#include "common/timeout_timer.h"
|
||||||
|
|
||||||
|
@@ -47,7 +47,7 @@
|
|||||||
// INCLUDE
|
// INCLUDE
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
#include "common/common.h"
|
#include "common/common.h"
|
||||||
#include "hal/hal.h"
|
#include "tusb_hal.h"
|
||||||
#include "osal/osal.h"
|
#include "osal/osal.h"
|
||||||
|
|
||||||
//------------- HOST -------------//
|
//------------- HOST -------------//
|
||||||
|
@@ -39,6 +39,10 @@
|
|||||||
#ifndef _TUSB_HAL_H_
|
#ifndef _TUSB_HAL_H_
|
||||||
#define _TUSB_HAL_H_
|
#define _TUSB_HAL_H_
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// INCLUDES
|
// INCLUDES
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
@@ -49,8 +53,8 @@
|
|||||||
#include "common/tusb_errors.h"
|
#include "common/tusb_errors.h"
|
||||||
#include "common/compiler/compiler.h"
|
#include "common/compiler/compiler.h"
|
||||||
|
|
||||||
// callback from tusb.h
|
// from mcu port
|
||||||
void tusb_isr(uint8_t coreid);
|
#include "hal_mcu.h"
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// HAL API
|
// HAL API
|
||||||
@@ -83,11 +87,8 @@ void hal_usb_int_enable(uint8_t coreid);
|
|||||||
*/
|
*/
|
||||||
void hal_usb_int_disable(uint8_t coreid);
|
void hal_usb_int_disable(uint8_t coreid);
|
||||||
|
|
||||||
#include "hal_mcu.h"
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static inline bool hal_debugger_is_attached(void)
|
static inline bool hal_debugger_is_attached(void)
|
||||||
{
|
{
|
Reference in New Issue
Block a user