Skip to content

Commit

Permalink
disable SPI on sleep - 1.6mA
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Nov 9, 2017
1 parent dba0c3a commit f506079
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Projects/Multi/Applications/LoRa/AT_Slave/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ int main(void)
HW_Init();

/* Configure Debug mode */
DBG_Init();
//DBG_Init();

/* USER CODE BEGIN 1 */
CMD_Init();
Expand Down
3 changes: 2 additions & 1 deletion Projects/Multi/Applications/LoRa/AT_Slave/src/mlm32l0xx_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ void HW_GpioInit(void)
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
GPIO_InitStruct.Pull = GPIO_NOPULL;
/* All GPIOs except debug pins (SWCLK and SWD) */
HW_GPIO_Init(GPIOA, GPIO_PIN_All & (~(GPIO_PIN_13 | GPIO_PIN_14)), &GPIO_InitStruct);
HW_GPIO_Init(GPIOA, GPIO_PIN_All, &GPIO_InitStruct);

/* All GPIOs */
HW_GPIO_Init(GPIOB, GPIO_PIN_All, &GPIO_InitStruct);
Expand Down Expand Up @@ -529,6 +529,7 @@ static void HW_IoDeInit(void)
HW_GPIO_Init(RADIO_NSS_PORT, RADIO_NSS_PIN, &initStruct);

Radio.IoDeInit();
HW_SPI_IoDeInit();
//vcom_IoDeInit();
}

Expand Down

0 comments on commit f506079

Please sign in to comment.