Mercurial > public > ostc4
comparison Small_CPU/Src/gpio.c @ 947:96cf6c53c934 Evo_2_23
GNSS sleep mode:
Backup voltage is now enabled during initialization. Power saving interval has been changed to 20 second active in a 60 minutes cycle.
author | Ideenmodellierer |
---|---|
date | Sun, 22 Dec 2024 21:14:41 +0100 |
parents | df87dbfc9c21 |
children |
comparison
equal
deleted
inserted
replaced
946:80ae8ea7f0a0 | 947:96cf6c53c934 |
---|---|
73 GPIO_InitStructure.Pin = GPS_BCKP_CONTROL_PIN; | 73 GPIO_InitStructure.Pin = GPS_BCKP_CONTROL_PIN; |
74 GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP; | 74 GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP; |
75 GPIO_InitStructure.Pull = GPIO_PULLDOWN; | 75 GPIO_InitStructure.Pull = GPIO_PULLDOWN; |
76 GPIO_InitStructure.Speed = GPIO_SPEED_LOW; | 76 GPIO_InitStructure.Speed = GPIO_SPEED_LOW; |
77 HAL_GPIO_Init( GPIOB, &GPIO_InitStructure); | 77 HAL_GPIO_Init( GPIOB, &GPIO_InitStructure); |
78 HAL_GPIO_WritePin( GPIOB, GPS_BCKP_CONTROL_PIN, GPIO_PIN_RESET); | 78 HAL_GPIO_WritePin( GPIOB, GPS_BCKP_CONTROL_PIN, GPIO_PIN_SET); |
79 } | 79 } |
80 | 80 |
81 void GPIO_Power_MainCPU_Init(void) { | 81 void GPIO_Power_MainCPU_Init(void) { |
82 GPIO_InitTypeDef GPIO_InitStructure; | 82 GPIO_InitTypeDef GPIO_InitStructure; |
83 __GPIOC_CLK_ENABLE(); | 83 __GPIOC_CLK_ENABLE(); |