made helper functions private in scope.
This commit is contained in:
parent
3b9845487c
commit
1b615155ff
|
@ -30,7 +30,7 @@ static bool porta_disabled[8] = {0};
|
||||||
static bool portb_disabled[8] = {0};
|
static bool portb_disabled[8] = {0};
|
||||||
|
|
||||||
|
|
||||||
bool is_valid_load(uint16_t val)
|
static bool is_valid_load(uint16_t val)
|
||||||
{
|
{
|
||||||
if(val > LOWTHRESH && val < HIGHTHRESH) {
|
if(val > LOWTHRESH && val < HIGHTHRESH) {
|
||||||
return true;
|
return true;
|
||||||
|
@ -38,7 +38,7 @@ bool is_valid_load(uint16_t val)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_below_target(uint16_t val)
|
static bool is_below_target(uint16_t val)
|
||||||
{
|
{
|
||||||
if(val < HYSTERESIS){
|
if(val < HYSTERESIS){
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -50,19 +50,6 @@ void Load_HandleLoadPortA(uint8_t adc_pin, uint8_t out_pin);
|
||||||
*/
|
*/
|
||||||
void Load_HandleLoadPortB(uint8_t adc_pin, uint8_t out_pin);
|
void Load_HandleLoadPortB(uint8_t adc_pin, uint8_t out_pin);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief A helper function that handles the valid value range.
|
|
||||||
* @return True/False value.
|
|
||||||
*/
|
|
||||||
bool is_valid_load(uint16_t val);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief A helper function that checks if current load value is below target.
|
|
||||||
* @return True/False value.
|
|
||||||
*/
|
|
||||||
bool is_below_target(uint16_t val);
|
|
||||||
|
|
||||||
#endif /* LOAD_H */
|
#endif /* LOAD_H */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue