| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #include "stm32f10x.h" // Device header
- #include "CONFIG.h"
- void GPIOA_Init(void)
- {
- #if EC800M
- RCC_APB2PeriphClockCmd(WAKE_GPIO_RCC, ENABLE);
- GPIO_InitTypeDef GPIO_InitStructure;
-
- GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
- GPIO_InitStructure.GPIO_Pin = WAKE_GPIO_Pin;
- GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
- GPIO_Init(WAKE_GPIO, &GPIO_InitStructure);
- GPIO_SetBits(WAKE_GPIO, WAKE_GPIO_Pin); // 4G윗멕
- #endif
- #if BC260Y
- RCC_APB2PeriphClockCmd(WAKE_GPIO_RCC, ENABLE);
- GPIO_InitTypeDef GPIO_InitStructure;
- GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
- GPIO_InitStructure.GPIO_Pin = WAKE_GPIO_Pin;
- GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
- GPIO_Init(GPIOA, &GPIO_InitStructure);
- GPIO_ResetBits(GPIOA, GPIO_Pin_7); // nb윗됴
- #endif
-
- #if ESP32
- RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);
- GPIO_InitTypeDef GPIO_InitStructure;
- GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
- GPIO_InitStructure.GPIO_Pin = WAKE_GPIO_Pin;
- GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
- GPIO_Init(WAKE_GPIO, &GPIO_InitStructure);
- GPIO_ResetBits(WAKE_GPIO, WAKE_GPIO_Pin); // WiFi�金추多신윗됴
- #endif
-
- #if AIWB2
- RCC_APB2PeriphClockCmd(WAKE_GPIO_RCC, ENABLE);
- RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);
- GPIO_InitTypeDef GPIO_InitStructure;
- GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
- GPIO_InitStructure.GPIO_Pin = WAKE_GPIO_Pin;
- GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
- GPIO_Init(WAKE_GPIO, &GPIO_InitStructure);
- GPIO_ResetBits(GPIOA, GPIO_Pin_6); //WIFI_AIWB2-32S윗됴
- #endif
- }
|