EE445M RTOS
Taken at the University of Texas Spring 2015
heartbeat.h File Reference
#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"
Include dependency graph for heartbeat.h:
This graph shows which files directly or indirectly include this file:

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...
 

Macro Definition Documentation

#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)
Value:
void heart_beat()
Toggle twice.
Definition: heartbeat.h:120
void heart_toggle()
Toggle once.
Definition: heartbeat.h:106

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().

Function Documentation

void heart_beat ( )
inline

Toggle twice.

end_state = starting_state

Returns
void

Definition at line 120 of file heartbeat.h.

References GPIOPinWrite(), HEART_BLUE, heart_status(), and THORACIC_CAVITY.

120  {
121 
122 #if !(defined(PROFILING_DISABLE))
125 #endif
126 }
void GPIOPinWrite(uint32_t ui32Port, uint8_t ui8Pins, uint8_t ui8Val)
Definition: gpio.c:1038
int32_t heart_status()
Return the status of .
Definition: heartbeat.h:66
#define HEART_BLUE
Definition: heartbeat.h:31
#define THORACIC_CAVITY
Definition: heartbeat.h:37

Here is the call graph for this function:

void heart_init ( )
inline

Initialize for visible transformation.

Returns
void

Definition at line 49 of file heartbeat.h.

References GPIOPinTypeGPIOOutput(), HEART_BLUE, SYSCTL_PERIPH_GPIOF, SysCtlPeripheralEnable(), and THORACIC_CAVITY.

Referenced by main().

49  {
50 
51 #if !(defined(PROFILING_DISABLE))
52  /* Enable the GPIO port that is used for the on-board LED. */
54 
55  /* Enable the GPIO pins for the LED (PF2). */
57 #endif
58 }
#define SYSCTL_PERIPH_GPIOF
Definition: sysctl.h:76
void SysCtlPeripheralEnable(uint32_t ui32Peripheral)
Definition: sysctl.c:841
void GPIOPinTypeGPIOOutput(uint32_t ui32Port, uint8_t ui8Pins)
Definition: gpio.c:1427
#define HEART_BLUE
Definition: heartbeat.h:31
#define THORACIC_CAVITY
Definition: heartbeat.h:37

Here is the call graph for this function:

Here is the caller graph for this function:

void heart_off ( )
inline

Turn off.

Returns
void

Definition at line 79 of file heartbeat.h.

References GPIOPinWrite(), HEART_BLUE, and THORACIC_CAVITY.

79  {
80 
81 #if !(defined(PROFILING_DISABLE))
83 #endif
84 }
void GPIOPinWrite(uint32_t ui32Port, uint8_t ui8Pins, uint8_t ui8Val)
Definition: gpio.c:1038
#define HEART_BLUE
Definition: heartbeat.h:31
#define THORACIC_CAVITY
Definition: heartbeat.h:37

Here is the call graph for this function:

void heart_on ( )
inline

Turn on.

Returns
void

Definition at line 92 of file heartbeat.h.

References GPIOPinWrite(), HEART_BLUE, and THORACIC_CAVITY.

92  {
93 
94 #if !(defined(PROFILING_DISABLE))
96 #endif
97 }
void GPIOPinWrite(uint32_t ui32Port, uint8_t ui8Pins, uint8_t ui8Val)
Definition: gpio.c:1038
#define HEART_BLUE
Definition: heartbeat.h:31
#define THORACIC_CAVITY
Definition: heartbeat.h:37

Here is the call graph for this function:

int32_t heart_status ( )
inline

Return the status of .

Returns
The current status of .

Definition at line 66 of file heartbeat.h.

References GPIOPinRead(), HEART_BLUE, and THORACIC_CAVITY.

Referenced by heart_beat(), and heart_toggle().

66  {
67 
68 #if !(defined(PROFILING_DISABLE))
70 #endif
71 }
#define HEART_BLUE
Definition: heartbeat.h:31
int32_t GPIOPinRead(uint32_t ui32Port, uint8_t ui8Pins)
Definition: gpio.c:1006
#define THORACIC_CAVITY
Definition: heartbeat.h:37

Here is the call graph for this function:

Here is the caller graph for this function:

void heart_toggle ( )
inline

Toggle once.

end_state = ~starting_state

Returns
void

Definition at line 106 of file heartbeat.h.

References GPIOPinWrite(), HEART_BLUE, heart_status(), and THORACIC_CAVITY.

Referenced by Task1().

106  {
107 
108 #if !(defined(PROFILING_DISABLE))
110 #endif
111 }
void GPIOPinWrite(uint32_t ui32Port, uint8_t ui8Pins, uint8_t ui8Val)
Definition: gpio.c:1038
int32_t heart_status()
Return the status of .
Definition: heartbeat.h:66
#define HEART_BLUE
Definition: heartbeat.h:31
#define THORACIC_CAVITY
Definition: heartbeat.h:37

Here is the call graph for this function:

Here is the caller graph for this function: