|
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/gpio.h"#include "driverlib/timer.h"#include "driverlib/interrupt.h"#include "driverlib/pin_map.h"#include "driverlib/sysctl.h"#include "libtimer/timer.h"#include "libos/semaphore.h"#include <sys/stat.h>#include "libheart/heartbeat.h"
Go to the source code of this file.
Macros | |
| #define | HEARTBEAT_MODAL |
Functions | |
| void | led_blink_red () |
| void | led_blink_green () |
| void | led_blink_blue () |
| int | main (void) |
Variables | |
| volatile uint32_t | sem |
| uint32_t | interrupt_counter |
| uint32_t | wait_counter |
| uint32_t | red_work = 0 |
| uint32_t | blue_work = 0 |
| uint32_t | green_work = 0 |
| #define HEARTBEAT_MODAL |
Definition at line 28 of file test-timer.c.
| void led_blink_blue | ( | ) |
Definition at line 57 of file test-timer.c.
References blue_work, GPIO_PIN_2, GPIO_PORTF_BASE, GPIOPinRead(), GPIOPinWrite(), and os_surrender_context.
Referenced by main().


| void led_blink_green | ( | ) |
Definition at line 48 of file test-timer.c.
References GPIO_PIN_3, GPIO_PORTF_BASE, GPIOPinRead(), GPIOPinWrite(), and green_work.
Referenced by main().


| void led_blink_red | ( | ) |
Definition at line 39 of file test-timer.c.
References GPIO_PIN_1, GPIO_PORTF_BASE, GPIOPinRead(), GPIOPinWrite(), os_surrender_context, and red_work.
Referenced by main().


| int main | ( | void | ) |
Definition at line 66 of file test-timer.c.
References DL_SOFT, GPIO_PIN_1, GPIO_PIN_2, GPIO_PIN_3, GPIO_PORTF_BASE, heart_init(), hw_channel_init(), hw_driver_init(), hw_subscribe, HW_TIMER, Hz, INT_TIMER0A, IntMasterDisable(), IntMasterEnable(), led_blink_blue(), led_blink_green(), led_blink_red(), os_launch(), os_threading_init(), schedule(), SYSCTL_OSC_MAIN, SYSCTL_SYSDIV_1, SYSCTL_USE_OSC, SYSCTL_XTAL_16MHZ, SysCtlClockSet(), TIMER0_BASE, TIMER_CFG_PERIODIC, and timer_metadata_init.

| uint32_t blue_work = 0 |
Definition at line 36 of file test-timer.c.
Referenced by led_blink_blue().
| uint32_t green_work = 0 |
Definition at line 37 of file test-timer.c.
Referenced by led_blink_green().
| uint32_t interrupt_counter |
Definition at line 32 of file test-timer.c.
| uint32_t red_work = 0 |
Definition at line 35 of file test-timer.c.
Referenced by led_blink_red().
| volatile uint32_t sem |
Definition at line 31 of file test-timer.c.
| uint32_t wait_counter |
Definition at line 33 of file test-timer.c.