-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from imahjoub/6-support-ek-tm4c123gxl-board
support tm4c123gxl-board in UBM
- Loading branch information
Showing
29 changed files
with
15,429 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#include <stdint.h> | ||
#include <string.h> | ||
|
||
#include <Mcal/Mcu.h> | ||
#include <Mcal/Reg.h> | ||
#include <Util/C/UtilTimer.h> | ||
|
||
|
||
static uint64_t TaskTimer01; | ||
|
||
/************************* TASK1 *********************************/ | ||
void Task01_Init(void); | ||
void Task01_Func(void); | ||
|
||
void Task01_Init(void) | ||
{ | ||
/* Enable the clock for GPIO Port F */ | ||
SYSCTL_RCGCGPIO_R = (uint32_t)0x20U; | ||
|
||
/* Set Port F pin 1 as output (this controls all LED) */ | ||
GPIO_PORTF_DIR_R = (uint32_t)0x0EU; | ||
|
||
/* Enable digital function for Port F for rgb leds */ | ||
GPIO_PORTF_DEN_R = (uint32_t)0x0EU; | ||
|
||
/* Set the next timer timeout to be 1s later, */ | ||
/* Toggling will be sequentially carried out in the task. */ | ||
TaskTimer01 = TimerStart(1U); | ||
|
||
} | ||
|
||
void Task01_Func(void) | ||
{ | ||
if(TimerTimeout(TaskTimer01)) | ||
{ | ||
TaskTimer01 = TimerStart(1U); | ||
|
||
GPIO_PORTF_DATA_R ^= (uint32_t)0x02UL; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.