22 lines
497 B
C
22 lines
497 B
C
#ifndef _E32_HAL_H_
|
|
#define _E32_HAL_H_
|
|
|
|
#define E32_USE_GPIO_AUX 1 // 0:不使用或不检测AUX状态引脚 1:正常使用AUX引脚
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef enum
|
|
{
|
|
WORK_MODE_TRANSPARENT = 0x00,
|
|
WORK_MODE_WAKE_ON_RADIO_MASTER = 0x01,
|
|
WORK_MODE_WAKE_ON_RADIO_SLAVE = 0x02,
|
|
WORK_MODE_CONFIG_AND_SLEEP = 0x03,
|
|
}work_mode_t;
|
|
|
|
void e32_hal_uart_tx( uint8_t *buffer , uint16_t length );
|
|
void e32_hal_aux_wait(void);
|
|
void e32_hal_reset(void);
|
|
void e32_hal_work_mode( work_mode_t mode);
|
|
|
|
#endif
|