Added function that allows a "soft" reset of the disabled pins.
This commit is contained in:
parent
1b615155ff
commit
1aca4d7876
|
@ -94,3 +94,12 @@ void Load_HandleLoadPortB(uint8_t adc_pin, uint8_t out_pin)
|
|||
RegEdit_ClearBit((void *) &PORTB.OUT, out_pin);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Load_SoftResetDisabledLoads()
|
||||
{
|
||||
for(int i = 0; i < 8; i++){
|
||||
porta_disabled[i] = false;
|
||||
portb_disabled[i] = false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,5 +51,10 @@ void Load_HandleLoadPortA(uint8_t adc_pin, uint8_t out_pin);
|
|||
void Load_HandleLoadPortB(uint8_t adc_pin, uint8_t out_pin);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Resets the disabled array state.
|
||||
*/
|
||||
void Load_SoftResetDisabledLoads();
|
||||
|
||||
#endif /* LOAD_H */
|
||||
|
||||
|
|
Loading…
Reference in New Issue