summaryrefslogtreecommitdiff
path: root/trafficlight.h
diff options
context:
space:
mode:
authorOmar Magdy <omar.professional8777@gmail.com>2022-08-23 23:43:02 +0200
committerOmar Magdy <omar.professional8777@gmail.com>2022-08-23 23:43:02 +0200
commit9bebf5f393bbfd51489b4c4e65a066e47e623f1e (patch)
tree9d32a88cad2c8f25902b864383fddd26776d44d5 /trafficlight.h
parent547093d69d001fc6bf90778acc479316149a6fd1 (diff)
downloadTraffic-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.h1
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);