summaryrefslogtreecommitdiff
path: root/trafficlight.h
diff options
context:
space:
mode:
Diffstat (limited to 'trafficlight.h')
-rw-r--r--trafficlight.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/trafficlight.h b/trafficlight.h
index 6d86982..510b89c 100644
--- a/trafficlight.h
+++ b/trafficlight.h
@@ -1,5 +1,6 @@
#include <stdint.h>
#include <stdbool.h>
+#include <stdlib.h>
#include "tivaware.h"
#define TIVA_CLK 16e6
@@ -22,7 +23,14 @@ typedef struct Traffic{
extern Traffic tf1;
extern Traffic tf2;
+extern Traffic tf_ped;
+extern bool switch_pressed;
+extern uint32_t period_1;
+extern uint32_t period_2;
+extern uint32_t period_3;
+void TrafficInit();
void set_tf_color(Traffic tf, uint8_t color);
-void PortInit(uint32_t port, uint32_t clk);
+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);
+