|
Open Garden
0.10.1-21
|
Functions to handle queues. More...
#include "ogstruct.h"#include "debug.h"#include "date.h"#include "temperature.h"#include "io_pin.h"

Go to the source code of this file.
Functions | |
| void | q_push (struct programs_t *progs, struct tm *tm_clock, const uint8_t i) |
| queue a program to be executed. More... | |
| void | queue_run (struct programs_t *progs, struct tm *tm_clock, struct debug_t *debug) |
| void | queue_list (struct programs_t *progs, struct debug_t *debug) |
Functions to handle queues.
| void q_push | ( | struct programs_t * | progs, |
| struct tm * | tm_clock, | ||
| const uint8_t | i | ||
| ) |
queue a program to be executed.
| progs | the programs struct. |
| tm_clock | the time. |
| i | the program number to be pushed into the queue. |
| void queue_list | ( | struct programs_t * | progs, |
| struct debug_t * | debug | ||
| ) |
list all valid programs
| void queue_run | ( | struct programs_t * | progs, |
| struct tm * | tm_clock, | ||
| struct debug_t * | debug | ||
| ) |
Check which program in the queue to exec.
Cycle trough the queue and open/close the lines. The compiler flag OG_QUEUE_PERMIT_MULTIPLE_OLINES if present let more than one line to be open at the same time. The purge from the queue of those Q_OFF (already completed) element is done at the end of the cycle, where changing index range should not be a problem.
| progs | |
| tm_clock | time now. |
| debug |
1.8.13