GSM_config.h 581 B

123456789101112131415161718192021
  1. #ifndef __GSM_CONFIG_H
  2. #define __GSM_CONFIG_H
  3. #include "main.h"
  4. #define GSM_USART_MAX_RECV_LEN 128 // 接收缓存大小
  5. #define GSM_USART_MAX_SEND_LEN 32 // 发送缓存大小
  6. #define GSM_USART_RX_EN 1 // 接收使能标志
  7. #define GSM_USARTx USART2
  8. extern char GSM_USART_RX_BUF[GSM_USART_MAX_RECV_LEN];
  9. extern char GSM_USART_TX_BUF[GSM_USART_MAX_SEND_LEN];
  10. extern volatile uint16_t GSM_USART_RX_STA; // 接收数据状态
  11. void GSM_USART_IRQHandler(void);
  12. void TIM3_IRQHandler(void);
  13. void GSM_TIM3_Init(void);
  14. void GSM_USART_Init(uint32_t bound);
  15. #endif