Alarm Sensor Module  0.1
⇒ back to Project Page
Macros | Functions | Variables
main.c File Reference

Contains the main routine for the alarm sensor module. More...

#include <avr/io.h>
#include <stdlib.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include <avr/sleep.h>
#include <math.h>
#include <stdio.h>
#include "basic_definitions.h"
#include "port_definitions.h"
#include "alarm_sensor.h"
#include "rfm12_io.h"
#include "adc.h"
#include "encryption.h"
#include "subfunctions.h"
#include "crc.h"
Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define F_CPU   20000000UL
 Controller Clock Cycle [Hz]. More...
 

Functions

int main (void)
 

Variables

volatile uint8_t time_scale
 counter triggered by timer More...
 
volatile uint8_t prev_time_scale
 previous counter value (triggered by timer) More...
 

Detailed Description

Contains the main routine for the alarm sensor module.

Author
Michael Skutek
Date
31.10.2018
Version
0.1

Platform: AVR ATmega (tested on ATmega328)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file main.c.