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"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... | |
Contains the main routine for the alarm sensor module.
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.
1.8.14