Forgot to add definitions for leds

This commit is contained in:
Rajput R Vikramsingh Vikramsingh 2024-10-10 19:25:40 +05:30
parent e25309dd65
commit b0737507aa
1 changed files with 5 additions and 0 deletions

5
main.c
View File

@ -2,6 +2,11 @@
#include<stdbool.h>
#include"tm4c123gh6pm.h"
#define SW_bits 0x11
#define RED 0x02
#define BLUE 0x04
#define GREEN 0x08
/* Systick memory mapped registers */
#define STCTRL *((volatile long *) 0xE000E010) // control and status