ADD: buzzer, undervoltage lockout, safe poweroff, foo

This commit is contained in:
Niklas Fauth
2018-02-10 01:37:36 +01:00
parent 10da0983c6
commit 6842f7b7fe
9 changed files with 1022 additions and 730 deletions

View File

@@ -140,6 +140,9 @@ void MX_GPIO_Init(void) {
GPIO_InitStruct.Pin = CHARGER_PIN;
HAL_GPIO_Init(CHARGER_PORT, &GPIO_InitStruct);
GPIO_InitStruct.Pin = BUTTON_PIN;
HAL_GPIO_Init(BUTTON_PORT, &GPIO_InitStruct);
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;