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

@@ -13,10 +13,10 @@
#define PWM_FREQ 16000 // PWM frequency in Hz
#define DEAD_TIME 32 // PWM deadtime
#define DC_CUR_LIMIT 5 // Motor DC current limit in amps
#define DC_CUR_LIMIT 32 // Motor DC current limit in amps
#define DEBUG_SERIAL_SERVOTERM
//#define DEBUG_SERIAL_ASCII
//#define DEBUG_SERIAL_SERVOTERM
#define DEBUG_SERIAL_ASCII
#define DEBUG_BAUD 115200 // UART baud rate
//#define DEBUG_I2C_LCD

View File

@@ -114,6 +114,9 @@
#define OFF_PIN GPIO_PIN_5
#define OFF_PORT GPIOA
#define BUTTON_PIN GPIO_PIN_1
#define BUTTON_PORT GPIOA
#define CHARGER_PIN GPIO_PIN_12
#define CHARGER_PORT GPIOA