Compare commits
2 commits
3fe9f67ade
...
721fe66cf4
| Author | SHA1 | Date | |
|---|---|---|---|
| 721fe66cf4 | |||
| 9b9b8a07e4 |
1 changed files with 5 additions and 22 deletions
27
inc/main.h
27
inc/main.h
|
|
@ -90,14 +90,6 @@ typedef struct {
|
||||||
//Public Prototypes
|
//Public Prototypes
|
||||||
//#############################
|
//#############################
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Blinks a defined led pin.
|
|
||||||
* @param None
|
|
||||||
*/
|
|
||||||
void LedBlink(void);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Initializes the uC for the program.
|
* @brief Initializes the uC for the program.
|
||||||
*/
|
*/
|
||||||
|
|
@ -106,34 +98,25 @@ void InitProg(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Reads the ADC pin
|
* @brief Reads the ADC pin
|
||||||
* @param
|
|
||||||
*/
|
*/
|
||||||
uint16_t ReadADC(void);
|
uint16_t ReadADC(void);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief
|
* @brief Moves the motor to target location based off the PB3.
|
||||||
* @param
|
* @param[in] 8bit value representing fader location.
|
||||||
*/
|
*/
|
||||||
void MotorMoveTo(uint8_t target);
|
void MotorMoveTo(uint8_t target);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief
|
* @brief Turns off motor allowing free movement.
|
||||||
* @param
|
|
||||||
*/
|
*/
|
||||||
void MotorCoast(void);
|
void MotorCoast(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief
|
* @brief Activates the motor driver in forward or reverse.
|
||||||
* @param
|
* @param[in] moves foward when true and in reverse when false.
|
||||||
*/
|
*/
|
||||||
void MotorMove(uint8_t fwd);
|
void MotorMove(uint8_t fwd);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief
|
|
||||||
* @param
|
|
||||||
*/
|
|
||||||
uint8_t ReadButton(void);
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue