Skip to content

Commit f506079

Browse files
committed
disable SPI on sleep - 1.6mA
1 parent dba0c3a commit f506079

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Projects/Multi/Applications/LoRa/AT_Slave/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ int main(void)
260260
HW_Init();
261261

262262
/* Configure Debug mode */
263-
DBG_Init();
263+
//DBG_Init();
264264

265265
/* USER CODE BEGIN 1 */
266266
CMD_Init();

Projects/Multi/Applications/LoRa/AT_Slave/src/mlm32l0xx_hw.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ void HW_GpioInit(void)
310310
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
311311
GPIO_InitStruct.Pull = GPIO_NOPULL;
312312
/* All GPIOs except debug pins (SWCLK and SWD) */
313-
HW_GPIO_Init(GPIOA, GPIO_PIN_All & (~(GPIO_PIN_13 | GPIO_PIN_14)), &GPIO_InitStruct);
313+
HW_GPIO_Init(GPIOA, GPIO_PIN_All, &GPIO_InitStruct);
314314

315315
/* All GPIOs */
316316
HW_GPIO_Init(GPIOB, GPIO_PIN_All, &GPIO_InitStruct);
@@ -529,6 +529,7 @@ static void HW_IoDeInit(void)
529529
HW_GPIO_Init(RADIO_NSS_PORT, RADIO_NSS_PIN, &initStruct);
530530

531531
Radio.IoDeInit();
532+
HW_SPI_IoDeInit();
532533
//vcom_IoDeInit();
533534
}
534535

0 commit comments

Comments
 (0)