Forgot to add definitions for leds
This commit is contained in:
parent
e25309dd65
commit
b0737507aa
5
main.c
5
main.c
|
@ -2,6 +2,11 @@
|
||||||
#include<stdbool.h>
|
#include<stdbool.h>
|
||||||
#include"tm4c123gh6pm.h"
|
#include"tm4c123gh6pm.h"
|
||||||
|
|
||||||
|
#define SW_bits 0x11
|
||||||
|
#define RED 0x02
|
||||||
|
#define BLUE 0x04
|
||||||
|
#define GREEN 0x08
|
||||||
|
|
||||||
|
|
||||||
/* Systick memory mapped registers */
|
/* Systick memory mapped registers */
|
||||||
#define STCTRL *((volatile long *) 0xE000E010) // control and status
|
#define STCTRL *((volatile long *) 0xE000E010) // control and status
|
||||||
|
|
Loading…
Reference in New Issue