GSM_config.h 756 B

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