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 /main.c | |
| parent | 547093d69d001fc6bf90778acc479316149a6fd1 (diff) | |
| download | Traffic-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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);
}
|
