#include <avr/io.h>
#include "os.h"
Go to the source code of this file.
Data Structures | |
| struct | create_args_t |
| The arguments required to create a task. More... | |
| struct | td_struct |
| All the data needed to describe the task, including its context. More... | |
| struct | queue_t |
| Contains pointers to head and tail of a linked list. More... | |
Defines | |
| #define | CLOCK8MHZ() CLKPR = (1<<CLKPCE); CLKPR = 0x00; |
| #define | F_CPU 8000000UL |
| #define | Disable_Interrupt() asm volatile ("cli"::) |
| #define | Enable_Interrupt() asm volatile ("sei"::) |
| #define | MAXNAME MAXPROCESS |
| #define | TICK_CYCLES (F_CPU / 1000 * TICK) |
| #define | LED_RED_MASK (uint8_t)(_BV(4) | _BV(7)) |
| #define | LED_GREEN_MASK (uint8_t)(_BV(5) | _BV(6)) |
Typedefs | |
| typedef void(*) | voidfuncvoid_ptr (void) |
| typedef td_struct | task_descriptor_t |
Enumerations | |
| enum | task_state_t { DEAD = 0, RUNNING, READY, WAITING } |
| This is the set of states that a task can be in at any given time. More... | |
| enum | kernel_request_t { NONE = 0, TIMER_EXPIRED, TASK_CREATE, TASK_TERMINATE, TASK_NEXT, TASK_GET_ARG, EVENT_INIT, EVENT_WAIT, EVENT_SIGNAL, EVENT_BROADCAST, EVENT_SIGNAL_AND_NEXT, EVENT_BROADCAST_AND_NEXT } |
| This is the set of kernel requests, i.e., a request code for each system call. More... | |
CSC 460/560 Real Time Operating Systems - Mantis Cheng
Definition in file kernel.h.
| #define CLOCK8MHZ | ( | ) | CLKPR = (1<<CLKPCE); CLKPR = 0x00; |
| #define MAXNAME MAXPROCESS |
| #define TICK_CYCLES (F_CPU / 1000 * TICK) |
| #define LED_RED_MASK (uint8_t)(_BV(4) | _BV(7)) |
LEDs for OS_Abort()
| #define LED_GREEN_MASK (uint8_t)(_BV(5) | _BV(6)) |
LEDs for OS_Abort()
| typedef void(*) voidfuncvoid_ptr(void) |
| typedef struct td_struct task_descriptor_t |
| enum task_state_t |
| enum kernel_request_t |
1.5.1