#include <avr/io.h>
#include <avr/interrupt.h>
#include <publisher.h>
#include <scheduler.h>
#include <servo.h>
#include <stepper.h>
#include <utils.h>
Go to the source code of this file.
Defines | |
#define | SCHED1 25 |
AVR includes. | |
Functions | |
ISR (TIMER4_COMPA_vect) | |
int8_t | scheduler_Get_sl1 () |
void | scheduler_init () |
void | scheduler_layer0 () |
void | scheduler_layer1 () |
void | scheduler_Set_sl1 (int8_t stat) |
Variables | |
static uint8_t | p_count |
static char | sl1_isEnabled |
static uint8_t | t_count |
Code for scheduler. In this case, regulates the output throughput
Definition in file scheduler.c.
#define SCHED1 25 |
ISR | ( | TIMER4_COMPA_vect | ) |
int8_t scheduler_Get_sl1 | ( | void | ) |
Definition at line 78 of file scheduler.c.
void scheduler_init | ( | void | ) |
Scheduler init routine
Definition at line 114 of file scheduler.c.
void scheduler_layer0 | ( | void | ) |
Check whether its time to pan
Check whether its time to tilt
Definition at line 34 of file scheduler.c.
void scheduler_layer1 | ( | void | ) |
Layer 1 gets updated position and sends them
Definition at line 84 of file scheduler.c.
void scheduler_Set_sl1 | ( | int8_t | stat | ) |
Get-set scheduler value
Definition at line 75 of file scheduler.c.
uint8_t p_count [static] |
Definition at line 31 of file scheduler.c.
char sl1_isEnabled [static] |
Definition at line 30 of file scheduler.c.
uint8_t t_count [static] |
Definition at line 32 of file scheduler.c.