comparison main.c @ 3:888be1b234b6

Add FatFS
author Matt Johnston <matt@ucc.asn.au>
date Tue, 08 May 2012 22:51:38 +0800
parents ab0e30c4b344
children 54d369e3d689
comparison
equal deleted inserted replaced
2:ab0e30c4b344 3:888be1b234b6
8 #include <string.h> 8 #include <string.h>
9 #include <avr/io.h> 9 #include <avr/io.h>
10 #include <avr/interrupt.h> 10 #include <avr/interrupt.h>
11 #include <avr/sleep.h> 11 #include <avr/sleep.h>
12 #include <util/crc16.h> 12 #include <util/crc16.h>
13
14 #include "integer.h"
13 15
14 // configuration params 16 // configuration params
15 // - measurement interval 17 // - measurement interval
16 // - transmit interval 18 // - transmit interval
17 // - bluetooth params 19 // - bluetooth params
131 sec_count = 0; 133 sec_count = 0;
132 need_measurement = 1; 134 need_measurement = 1;
133 } 135 }
134 } 136 }
135 137
138 DWORD get_fattime (void)
139 {
140 return 0;
141 }
142
136 static void 143 static void
137 deep_sleep() 144 deep_sleep()
138 { 145 {
139 // p119 of manual 146 // p119 of manual
140 OCR2A = SLEEP_COMPARE; 147 OCR2A = SLEEP_COMPARE;