Skip to content

Commit

Permalink
adding inculde guard
Browse files Browse the repository at this point in the history
  • Loading branch information
Wer-Wolf committed Sep 14, 2019
1 parent 22253d5 commit 8e9a04d
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/battery.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include <avr/interrupt.h>

#ifndef ADC_PRESCALER_SELECT_BITS
Expand Down
2 changes: 2 additions & 0 deletions lib/eeprom.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include <util/atomic.h> //-std=gnu99
#include <avr/interrupt.h>

Expand Down
2 changes: 2 additions & 0 deletions lib/input.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <util/atomic.h>
Expand Down
2 changes: 2 additions & 0 deletions lib/led.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#ifndef RED_LED_PIN
#error RED_LED_PIN not defined
#define RED_LED_PIN PB0 //Übersichtlichere Fehlermeldung
Expand Down
5 changes: 5 additions & 0 deletions lib/morse.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#pragma once

#include "../lib/eeprom.h"
#include "../util/adress.h"

#define END_OF_DATA 0xFF
#define ILLEGAL_DATA 0
#define DATA_MAX 9
Expand Down
2 changes: 2 additions & 0 deletions lib/wdt.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include <avr/wdt.h>
#include <util/atomic.h> //-std=gnu99

Expand Down
2 changes: 2 additions & 0 deletions util/adc_prescaler.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#ifndef F_CPU
#error F_CPU not defined
#define F_CPU 1200000 //Übersichtlichere Fehlermeldung
Expand Down
2 changes: 2 additions & 0 deletions util/adress.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#define DIRTY_BIT_ADRESS 0x00

#define DATA_START_ADRESS 0x01
Expand Down

0 comments on commit 8e9a04d

Please sign in to comment.