54 lines
1.1 KiB
C
54 lines
1.1 KiB
C
#ifndef __app_COMMON_H__
|
|
#define __app_COMMON_H__
|
|
|
|
|
|
/****************************************************************************
|
|
* Included Files
|
|
****************************************************************************/
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <string.h>
|
|
#include "cm_os.h"
|
|
#include "cm_iomux.h"
|
|
|
|
|
|
//uart0
|
|
#define UART0_TX_IOMUX CM_IOMUX_PIN_18, CM_IOMUX_FUNC_FUNCTION1
|
|
#define UART0_RX_IOMUX CM_IOMUX_PIN_17, CM_IOMUX_FUNC_FUNCTION1
|
|
|
|
//uart1
|
|
#define UART1_RX_IOMUX CM_IOMUX_PIN_28, CM_IOMUX_FUNC_FUNCTION1
|
|
#define UART1_TX_IOMUX CM_IOMUX_PIN_29, CM_IOMUX_FUNC_FUNCTION1
|
|
|
|
//uart2
|
|
#define UART2_TX_IOMUX CM_IOMUX_PIN_50, CM_IOMUX_FUNC_FUNCTION3
|
|
#define UART2_RX_IOMUX CM_IOMUX_PIN_51, CM_IOMUX_FUNC_FUNCTION3
|
|
|
|
/****************************************************************************
|
|
* Pre-processor Definitions
|
|
****************************************************************************/
|
|
|
|
#ifndef FALSE
|
|
#define FALSE (0U)
|
|
#endif
|
|
|
|
#ifndef TRUE
|
|
#define TRUE (1U)
|
|
#endif
|
|
|
|
|
|
typedef enum{
|
|
RET_BUSY = -2,
|
|
RET_ERROR =-1,
|
|
RET_SUCCESS = 0
|
|
}CM_RET_E;
|
|
|
|
|
|
|
|
|
|
#endif /* __APP_COMMON_H__ */
|
|
|
|
|
|
|
|
|