HAL_Project/Project -APP-V1.0/Hardware/CAT/cat.h.orig

39 lines
949 B
C
Raw Permalink Normal View History

2025-05-09 15:43:42 +08:00
#ifndef __CAT_H__
#define __CAT_H__
#include "main.h"
#define GPIO_RCC_ENABLE __HAL_RCC_GPIOA_CLK_ENABLE() //ʹ<>ܶ˿<DCB6><41><CAB1>
#define CAT_POW_Pin GPIO_PIN_4
#define CAT_POW_GPIO_Port GPIOA
#define CAT_RST_Pin GPIO_PIN_5
#define CAT_RST_GPIO_Port GPIOA
#define CAT_RUN_Pin GPIO_PIN_6
#define CAT_RUN_GPIO_Port GPIOA
#define CAT_NET_Pin GPIO_PIN_7
#define CAT_NET_GPIO_Port GPIOA
#define POWER_KEY(x) HAL_GPIO_WritePin(CAT_POW_GPIO_Port, CAT_POW_Pin, (GPIO_PinState)x) //PA15<31><35><EFBFBD>Ƶ<EFBFBD>ԴIO
#define POWER_STA HAL_GPIO_ReadPin(CAT_RUN_GPIO_Port, CAT_RUN_Pin) //<2F><>ȡ<EFBFBD><C8A1>ƽ״̬,<2C><><EFBFBD><EFBFBD><EFBFBD>жϿ<D0B6><CFBF>ػ<EFBFBD>״̬
#define NET_STA HAL_GPIO_ReadPin(CAT_NET_GPIO_Port, CAT_NET_Pin) //<2F><>ȡ<EFBFBD><C8A1>ƽ״̬,<2C><><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>ע<EFBFBD><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬
#define CAT1_printf u3_printf
void catGpioInit(void);
void catReset(void);
void u3PassiveEvent(uint8_t *, uint16_t);
void activeEvents(void);
#endif /*__DMA_H__*/