Tried to use EC200A adapter for EC201E-CN

This commit is contained in:
KirisameMashiro 2024-12-25 11:14:57 +08:00
parent e4bf922fa5
commit 8ead70e7d5
2 changed files with 17 additions and 6 deletions

View File

@ -59,12 +59,14 @@ struct ATAgent
uint32 maintain_max; uint32 maintain_max;
#ifdef ADD_XIZI_FEATURES #ifdef ADD_XIZI_FEATURES
#ifdef ADAPTER_GM800TF
#if defined(ADAPTER_GM800TF) || defined(ADAPTER_EC801E)
pthread_mutex_t lock; pthread_mutex_t lock;
#else
int lock;
#endif
#else #else
int lock;
#endif
#else // ADD_XIZI_FEATURES
pthread_mutex_t lock; pthread_mutex_t lock;
#endif #endif

View File

@ -314,5 +314,14 @@ int InitHwLte(void) {
USART_Init(USART2, &USART_InitStructure_Lte); USART_Init(USART2, &USART_InitStructure_Lte);
USART_Cmd(USART2, ENABLE); USART_Cmd(USART2, ENABLE);
/* Enable module pin */
GPIO_InitStructure_Lte.GPIO_Pin = GPIO_Pin_6;
GPIO_InitStructure_Lte.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure_Lte.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_Init(GPIOA, &GPIO_InitStructure_Lte);
GPIO_SetBits(GPIOA, GPIO_Pin_6);
Delay_Ms(2000);
GPIO_ResetBits(GPIOA, GPIO_Pin_6);
return ret; return ret;
} }