From 9bebf5f393bbfd51489b4c4e65a066e47e623f1e Mon Sep 17 00:00:00 2001 From: Omar Magdy Date: Tue, 23 Aug 2022 23:43:02 +0200 Subject: Added Traffic_Handler function to apply DRY principle --- trafficlight.h | 1 + 1 file changed, 1 insertion(+) (limited to 'trafficlight.h') 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); -- cgit v1.2.3