Commit 3f5c5ccb authored by Matthias Wenzl's avatar Matthias Wenzl
Browse files

update build and F_CPU comments

parent 17953b1e
......@@ -2,9 +2,9 @@
*
* Toggles led on pin 1 on port N
*
* Build options:
* Already set build options (no need to change anything):
* Stack size set to 1024 byte
* Heap size disabled - No memmap()
* Heap size disabled - No malloc()
* No code optimization
* Strict floating point interrupt behaviour
* Hardware floating point unit activated
......@@ -19,6 +19,7 @@
#include <inc/hw_memmap.h>/*supplies GPIO_PORTx_BASE*/
/*Controller is initially clocked with 16MHz*/
/* !! Changing this define does not change clock speed !! */
#define F_CPU 16000000
void main (void) {
......@@ -26,7 +27,7 @@ void main (void) {
uint32_t ui32Strength;
uint32_t ui32PinType;
uint8_t ui8val = 1;
volatile uint32_t ui32Loop = 0;
uint32_t ui32Loop = 0;
/*activate gpio port n*/
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPION);
......
/*
* Toggles led is user button USR 1 is pressed
*
* Build options:
* Stack size set to 256 byte
* Heap size disabled - No memmap()
* Toggles led on pin 1 on port N
*
* Already set build options (no need to change anything):
* Stack size set to 1024 byte
* Heap size disabled - No malloc()
* No code optimization
* Strict floating point interrupt behaviour
* Hardware floating point unit activated
*
*/
#include <stdint.h>
#include <inc/tm4c1294ncpdt.h>
int main(void)
{
volatile uint32_t ui32Loop;
uint32_t ui32Loop;
// Enable the GPIO port that is used for the on-board LED.
SYSCTL_RCGCGPIO_R = SYSCTL_RCGCGPIO_R12|SYSCTL_RCGCGPIO_R8;
......
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