Open Garden  0.10.1-21
Functions
main.c File Reference

Main. More...

#include <stdlib.h>
#include <string.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <util/delay.h>
#include "i2c.h"
#include "debug.h"
#include "led.h"
#include "date.h"
#include "program.h"
#include "queue.h"
#include "cmdli.h"
#include "usb.h"
Include dependency graph for main.c:

Functions

void job_on_the_field (struct programs_t *progs, struct debug_t *debug, struct tm *tm_clock)
 
void go_to_sleep (uint8_t valve, struct debug_t *debug)
 
int main (void)
 

Detailed Description

Main.

Function Documentation

◆ go_to_sleep()

void go_to_sleep ( uint8_t  valve,
struct debug_t debug 
)

Sleep function.

Which IO line is in use is recorded in the progs struct.

Note
Incompatible with MONOSTABLE valve.

◆ job_on_the_field()

void job_on_the_field ( struct programs_t progs,
struct debug_t debug,
struct tm tm_clock 
)

The main function.

◆ main()

int main ( void  )

main