summaryrefslogtreecommitdiff
path: root/main.c
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 /main.c
parent547093d69d001fc6bf90778acc479316149a6fd1 (diff)
downloadTraffic-light-9bebf5f393bbfd51489b4c4e65a066e47e623f1e.tar.xz
Traffic-light-9bebf5f393bbfd51489b4c4e65a066e47e623f1e.zip
Added Traffic_Handler function to apply DRY principle
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index c9c115b..1da8860 100644
--- a/main.c
+++ b/main.c
@@ -13,4 +13,6 @@ Traffic tf_ped = {RED , GPIO_PORTB_BASE, 5, 4, 1};
int main()
{
TrafficInit();
+ // PortInit(GPIO_PORTA_BASE, SYSCTL_PERIPH_GPIOA, 0x0, 0xFF); // Initialize porta
+ // GPIOPinWrite(GPIO_PORTA_BASE, 0xFF, 2);
}