57 lines
1.6 KiB
C
57 lines
1.6 KiB
C
/*----------------------------------------------------------------------------
|
|
* Copyright (c) Fenda Technologies Co., Ltd. 2020. All rights reserved.
|
|
*
|
|
* Description: debug_port.h
|
|
*
|
|
* Author: saimen
|
|
*
|
|
* Create: 2020-12-16
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
#ifndef DEBUG_PORT_H
|
|
#define DEBUG_PORT_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#define AM_UART_FIFO_SIZE 32 //FIFO区最大为32字节
|
|
//#define AM_UART_FIFO_SIZE 96 //FIFO区最大为96字节
|
|
|
|
typedef void (*debug_port_uart_isr_cb)(void *pHandle, uint32_t ui32Status);
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// External function definitions.
|
|
//
|
|
//*****************************************************************************
|
|
extern void am_bsp_jlink_pin_enable(void);
|
|
extern void am_bsp_jlink_pin_disable(void);
|
|
|
|
extern void* debug_port_uart_get_handle(void);
|
|
extern void debug_port_itm_enable(void);
|
|
extern void debug_port_itm_disable(void);
|
|
extern void debug_port_uart_enable(void);
|
|
extern void debug_port_uart_disable(void);
|
|
|
|
extern void debug_port_uart_user_cb(void *pHandle, uint32_t ui32Status);
|
|
extern void debug_port_uart_user_callback_register(debug_port_uart_isr_cb cb);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // AM_BSP_H
|
|
|
|
//*****************************************************************************
|
|
//
|
|
// End Doxygen group.
|
|
//! @}
|
|
//
|
|
//*****************************************************************************
|