summaryrefslogtreecommitdiff
path: root/ATmega48/Source/d_power.r
diff options
context:
space:
mode:
authorNicolas Schodet2023-03-06 17:15:36 +0100
committerNicolas Schodet2023-03-06 17:15:36 +0100
commitde3d76109e318516fc1fe06580050cd0415ce081 (patch)
treee5fd4eed8e8f23f80798c9a1de058adcf44efbc4 /ATmega48/Source/d_power.r
parentf013e6c23adb9d068f1ee5a372f9454e5db09797 (diff)
Remove ATMEGA48 files
This was never supported.
Diffstat (limited to 'ATmega48/Source/d_power.r')
-rw-r--r--ATmega48/Source/d_power.r79
1 files changed, 0 insertions, 79 deletions
diff --git a/ATmega48/Source/d_power.r b/ATmega48/Source/d_power.r
deleted file mode 100644
index de229a3..0000000
--- a/ATmega48/Source/d_power.r
+++ /dev/null
@@ -1,79 +0,0 @@
-//
-// Programmer
-//
-// Date init 14.12.2004
-//
-// Reviser $Author:: Dktochpe $
-//
-// Revision date $Date:: 2-09-05 14:37 $
-//
-// Filename $Workfile:: d_power.r $
-//
-// Version $Revision:: 8 $
-//
-// Archive $Archive:: /LMS2006/Sys01/Ioctrl/Firmware/Source/d_power. $
-//
-// Platform C
-//
-
-#ifdef ATMEGAX8
-
-#define POWERInit {\
- PORTC &= ~0x04;\
- DDRC &= ~0x04;\
- DIDR0 |= 0x04;\
- }
-
-#define POWEROff {\
- PORTD &= ~0x10;\
- DDRD |= 0x10;\
- }
-
-#define POWEROn {\
- PORTD |= 0x10;\
- DDRD |= 0x10;\
- }
-
-#define POWERSelect {\
- PORTD |= 0x04;\
- DDRD |= 0x04;\
- }
-
-#define POWERConvert(V) {\
- ADMUX = 0x42;\
- ADCSRA &= ~0x07;\
- ADCSRA |= 0x05;\
- ADCSRA |= 0x40;\
- while ((ADCSRA & 0x40));\
- ADCSRA |= 0x40;\
- while ((ADCSRA & 0x40));\
- V = ADC;\
- V &= 0x7FFF;\
- IoFromAvr.Battery &= 0x8000;\
- IoFromAvr.Battery |= V;\
- }
-
-#define POWERDeselect {\
- PORTD &= ~0x04;\
- DDRD |= 0x04;\
- }
-
-#define POWERHigh {\
- PORTC |= 0x04;\
- DDRC |= 0x04;\
- }
-
-#define POWERFloat {\
- PORTC &= ~0x04;\
- DDRC &= ~0x04;\
- }
-
-
-
-#define POWERExit {\
- POWEROff;\
- POWERDeselect;\
- POWERConvert(ADC);\
- }
-
-#endif