|
EE445M RTOS
Taken at the University of Texas Spring 2015
|
#include <stdint.h>#include <stdbool.h>#include <stdio.h>#include <stdlib.h>#include "inc/hw_ints.h"#include "inc/hw_memmap.h"#include "driverlib/debug.h"#include "driverlib/fpu.h"#include "driverlib/gpio.h"#include "driverlib/interrupt.h"#include "driverlib/pin_map.h"#include "driverlib/sysctl.h"#include "driverlib/timer.h"#include "driverlib/rom.h"

Go to the source code of this file.
Macros | |
| #define | HEART_RED GPIO_PIN_1 |
| #define | HEART_BLUE GPIO_PIN_2 |
| #define | HEART_GREEN GPIO_PIN_3 |
| #define | THORACIC_CAVITY GPIO_PORTF_BASE |
| #define | heart_wrap(x) |
Functions | |
| void | heart_init () |
| Initialize for visible transformation. More... | |
| int32_t | heart_status () |
| Return the status of . More... | |
| void | heart_off () |
| Turn off. More... | |
| void | heart_on () |
| Turn on. More... | |
| void | heart_toggle () |
| Toggle once. More... | |
| void | heart_beat () |
| Toggle twice. More... | |
| #define HEART_BLUE GPIO_PIN_2 |
Definition at line 31 of file heartbeat.h.
Referenced by heart_beat(), heart_init(), heart_off(), heart_on(), heart_status(), and heart_toggle().
| #define HEART_GREEN GPIO_PIN_3 |
Definition at line 32 of file heartbeat.h.
| #define HEART_RED GPIO_PIN_1 |
The on-board LED colloquially referred to as the 'heart.' Does every computer have one?
Definition at line 30 of file heartbeat.h.
| #define heart_wrap | ( | x | ) |
Surround the execution of a code block with two hooks.
Definition at line 132 of file heartbeat.h.
| #define THORACIC_CAVITY GPIO_PORTF_BASE |
The GPIO base where the may be found. Otherwise knows as a subdivision of the ventral body cavity which houses the heart.
Definition at line 37 of file heartbeat.h.
Referenced by heart_beat(), heart_init(), heart_off(), heart_on(), heart_status(), and heart_toggle().
|
inline |
Toggle twice.
end_state = starting_state
Definition at line 120 of file heartbeat.h.
References GPIOPinWrite(), HEART_BLUE, heart_status(), and THORACIC_CAVITY.

|
inline |
Initialize for visible transformation.
Definition at line 49 of file heartbeat.h.
References GPIOPinTypeGPIOOutput(), HEART_BLUE, SYSCTL_PERIPH_GPIOF, SysCtlPeripheralEnable(), and THORACIC_CAVITY.
Referenced by main().


|
inline |
Turn off.
Definition at line 79 of file heartbeat.h.
References GPIOPinWrite(), HEART_BLUE, and THORACIC_CAVITY.

|
inline |
Turn on.
Definition at line 92 of file heartbeat.h.
References GPIOPinWrite(), HEART_BLUE, and THORACIC_CAVITY.

|
inline |
Return the status of .
Definition at line 66 of file heartbeat.h.
References GPIOPinRead(), HEART_BLUE, and THORACIC_CAVITY.
Referenced by heart_beat(), and heart_toggle().


|
inline |
Toggle once.
end_state = ~starting_state
Definition at line 106 of file heartbeat.h.
References GPIOPinWrite(), HEART_BLUE, heart_status(), and THORACIC_CAVITY.
Referenced by Task1().

