26#define __AVR_ATmega32U4__ 1
32#include <util/delay.h>
Motor config header file.
void EnableU2(void)
Enables the user function 2 LED.
void EnableU3(void)
Enables the user function 3 LED.
void EnableU1(void)
Enables the user function 1 LED.
void DisableFaultLEDs(void)
Disables all LEDs.
void EnableOverCurrentLED(void)
Enables the over current fault LED.
void SweepLEDsBlocking(void)
Sweeps through all LEDs individually with a delay.
void EnableNoHallConnectionsLED(void)
Enables the no hall connection fault LED.
void EnableMotorStoppedLED(void)
Enables the motor stopped fault LED.
void faultSequentialStateMachine(volatile faultflags_t *faultFlags, volatile motorflags_t *motorFlags)
Sequential State Machine for Handling Fault Flags.
void EnableReverseRotationLED(void)
Enables the reverse rotation fault LED.
struct motorflags motorflags_t
Collection of all motor control flags.
struct faultflags faultflags_t
Collection of all fault flags.