getting rid of old stuff

This commit is contained in:
Antoine Drouin
2010-11-07 00:24:26 +00:00
parent 2ae00cfdce
commit 237a896896
2 changed files with 39 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#include "max1167.h"
volatile uint8_t max1167_status;
uint16_t max1167_values[MAX1167_NB_CHAN];
extern void max1167_init( void ) {
max1167_hw_init();
uint8_t i;
for (i=0; i<MAX1167_NB_CHAN; i++)
max1167_values[i] = 0;
max1167_status = STA_MAX1167_IDLE;
}
+24
View File
@@ -0,0 +1,24 @@
#ifndef MAX1167_H
#define MAX1167_H
#include "std.h"
#define MAX1167_NB_CHAN 4
extern void max1167_init( void );
extern void max1167_read( void );
#define STA_MAX1167_IDLE 0
#define STA_MAX1167_SENDING_REQ 1
#define STA_MAX1167_READING_RES 2
#define STA_MAX1167_DATA_AVAILABLE 3
extern volatile uint8_t max1167_status;
extern uint16_t max1167_values[MAX1167_NB_CHAN];
extern void max1167_hw_init( void );
#include "max1167_hw.h"
#endif /* MAX1167_H */