summaryrefslogtreecommitdiff
path: root/main.c
blob: c9c115bfa1321804a751aa60eadaec87e8e8ea0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "trafficlight.h"

uint32_t period_1   = RED_PERIOD;
uint32_t period_2   = GREEN_PERIOD;
uint32_t period_3   = RED_PERIOD;
bool switch_pressed = false;


Traffic tf1    =    {YELLOW, GPIO_PORTA_BASE, 2, 3, 4};
Traffic tf2    =    {RED   , GPIO_PORTF_BASE, 1, 2, 3};
Traffic tf_ped =    {RED   , GPIO_PORTB_BASE, 5, 4, 1};

int main()
{
  TrafficInit();
}