example code using statis library for temperature measurement with LM35 and LM335

Dependencies:   mbed statis

Committer:
greletj
Date:
Sat Nov 24 13:36:58 2012 +0000
Revision:
5:0b3569945178
Parent:
4:ffc39af07ade
Child:
6:95195b0995dd
with formatted source code

Who changed what in which revision?

UserRevisionLine numberNew contents of line
greletj 5:0b3569945178 1 /* anciennement sys.h */
greletj 5:0b3569945178 2
greletj 5:0b3569945178 3 // typedef void procedure;
greletj 5:0b3569945178 4 // typedef unsigned char booleen;
greletj 5:0b3569945178 5 typedef void *pointeur;
greletj 5:0b3569945178 6 /*
greletj 5:0b3569945178 7 #ifndef FALSE
greletj 5:0b3569945178 8 # define FALSE 0
greletj 5:0b3569945178 9 #endif
greletj 5:0b3569945178 10 #ifndef TRUE
greletj 5:0b3569945178 11 # define TRUE 1
greletj 5:0b3569945178 12 #endif
greletj 5:0b3569945178 13 */
greletj 5:0b3569945178 14 #define ALLOUE( nb,type ) (type *) calloc( nb,sizeof( type ) )
greletj 5:0b3569945178 15 #define LIBERE( var ) if( var ) free( (void *) var )
greletj 5:0b3569945178 16
greletj 5:0b3569945178 17 #define FARALLOUE( nb,type ) (type *) calloc( nb, sizeof( type ) )
greletj 5:0b3569945178 18 #define FARLIBERE( var ) if( var ) free( (void *) var )
greletj 5:0b3569945178 19
greletj 5:0b3569945178 20 /* util.h */
greletj 5:0b3569945178 21
greletj 5:0b3569945178 22 typedef char STRING[ 41 ];
greletj 5:0b3569945178 23 #define MAX_CHAR_POOL 4096 /* 4Ko de chaines */
greletj 5:0b3569945178 24
greletj 5:0b3569945178 25
greletj 5:0b3569945178 26 double convert_position( double data );
greletj 5:0b3569945178 27 double temps( unsigned jour_julien, double heure );
greletj 5:0b3569945178 28
greletj 5:0b3569945178 29
greletj 5:0b3569945178 30 STRING *gen_str( unsigned taille /*= 80*/ );
greletj 5:0b3569945178 31