diff options
| author | Omar Magdy <omar.professional8777@gmail.com> | 2022-08-23 23:43:02 +0200 |
|---|---|---|
| committer | Omar Magdy <omar.professional8777@gmail.com> | 2022-08-23 23:43:02 +0200 |
| commit | 9bebf5f393bbfd51489b4c4e65a066e47e623f1e (patch) | |
| tree | 9d32a88cad2c8f25902b864383fddd26776d44d5 /trafficlight.h | |
| parent | 547093d69d001fc6bf90778acc479316149a6fd1 (diff) | |
| download | Traffic-light-9bebf5f393bbfd51489b4c4e65a066e47e623f1e.tar.xz Traffic-light-9bebf5f393bbfd51489b4c4e65a066e47e623f1e.zip | |
Added Traffic_Handler function to apply DRY principle
Diffstat (limited to 'trafficlight.h')
| -rw-r--r-- | trafficlight.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/trafficlight.h b/trafficlight.h index 026bcaa..efc2306 100644 --- a/trafficlight.h +++ b/trafficlight.h @@ -29,6 +29,7 @@ extern uint32_t period_2; extern uint32_t period_3; void TrafficInit(); +void Traffic_Handler(Traffic *tf, uint32_t timer); void set_tf_color(Traffic tf, uint8_t color); void PortInit(uint32_t port, uint32_t clk, uint32_t input, uint32_t output); void TimerInit(uint32_t timer, void(*timer_handler)(), uint32_t clk, uint32_t delay); |
