Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ti-connected-launchpad
standalone_public
Commits
4ac78733
Commit
4ac78733
authored
Mar 06, 2017
by
Matthias Wenzl
Browse files
Merge branch 'master' of
https://es.technikum-wien.at/ti-connected-launchpad/standalone_public.git
parents
7a30de1a
573d72ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
example_standalone_driverlib/main.c
View file @
4ac78733
...
...
@@ -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
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment