Commit 4ac78733 authored by Matthias Wenzl's avatar Matthias Wenzl
Browse files
parents 7a30de1a 573d72ba
......@@ -11,11 +11,13 @@
*
*/
#define TARGET_IS_TM4C129_RA2
#include <stdbool.h> /*driverlib header requires stdbool.h to be included a first header file before any driverlib header*/
#include <stdint.h>
#include <driverlib/gpio.h>
#include <driverlib/pin_map.h>/*supplies GPIO_PIN_x*/
#include <driverlib/sysctl.h>
#include <driverlib/rom.h>
#include <inc/hw_memmap.h>/*supplies GPIO_PORTx_BASE*/
/*Controller is initially clocked with 16MHz*/
......@@ -44,15 +46,6 @@ void main (void) {
/*write value of val to pin 1 of port n*/
GPIOPinWrite (GPIO_PORTN_BASE, GPIO_PIN_1, ui8val);
// for(ui32Loop = 0; ui32Loop < 400000; ui32Loop++){}
SysCtlDelay(F_CPU/6); //approx 0,5 s
ROM_SysCtlDelay(F_CPU/2/3); //approx 0,5 s
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment