|
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/interrupt.h"#include "driverlib/pin_map.h"#include "driverlib/sysctl.h"#include "driverlib/systick.h"#include "driverlib/rom.h"#include "libos/os.h"#include "libheart/heartbeat.h"#include "libos/semaphore.h"#include "libtimer/timer.h"#include "libsystick/systick.h"
Go to the source code of this file.
Macros | |
| #define | HEARTBEAT_MODAL |
Functions | |
| void | timer_task () |
| void | Task1 () |
| void | Task2 () |
| void | TIMER0A_Handler (void) |
| void | main (void) |
Variables | |
| uint32_t | PIDWork = 0 |
| semaphore_t | semaphore |
| uint32_t | interrupt_counter |
| #define HEARTBEAT_MODAL |
Definition at line 24 of file test-priority-scheduler.c.
| void main | ( | void | ) |
Definition at line 77 of file test-priority-scheduler.c.
References heart_init(), Hz, INT_TIMER0A, IntEnable(), IntMasterDisable(), IntMasterEnable(), os_add_thread(), os_launch(), OS_SYSTEM_POOL, os_threading_init(), postpone_death, sem_init, semaphore, SYSCTL_OSC_MAIN, SYSCTL_PERIPH_TIMER0, SYSCTL_SYSDIV_1, SYSCTL_USE_OSC, SYSCTL_XTAL_16MHZ, SysCtlClockGet(), SysCtlClockSet(), SysCtlPeripheralEnable(), Task1(), Task2(), TIMER0_BASE, TIMER_A, TIMER_CFG_PERIODIC, timer_metadata_init, TIMER_TIMA_TIMEOUT, TimerConfigure(), TimerEnable(), TimerIntEnable(), and TimerLoadSet().

| void Task1 | ( | ) |
Definition at line 40 of file test-priority-scheduler.c.
References FAULT_PENDSV, heart_toggle(), IntPendSet(), semaphore, and semaphore_blocked.
Referenced by main().


| void Task2 | ( | ) |
Definition at line 59 of file test-priority-scheduler.c.
References PIDWork.
Referenced by main().

| void TIMER0A_Handler | ( | void | ) |
Definition at line 66 of file test-priority-scheduler.c.
References interrupt_counter, sem_signal, semaphore, TIMER0_BASE, TIMER_TIMA_TIMEOUT, and TimerIntClear().
Referenced by __attribute__().


| void timer_task | ( | ) |
Definition at line 35 of file test-priority-scheduler.c.
References sem_post, semaphore, TIMER0_BASE, TIMER_TIMA_TIMEOUT, and TimerIntClear().

| uint32_t interrupt_counter |
Definition at line 33 of file test-priority-scheduler.c.
Referenced by TIMER0A_Handler().
| uint32_t PIDWork = 0 |
Definition at line 31 of file test-priority-scheduler.c.
Referenced by Task2().
| semaphore_t semaphore |
Definition at line 32 of file test-priority-scheduler.c.
Referenced by main(), Task1(), TIMER0A_Handler(), and timer_task().