X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Finclude%2Fadc.h;h=e731f5cec771502a3aae0db019a5415ba6b6f021;hp=ad06a89aa9ea87bc6fe317cfaaa1de4a12ecb8bc;hb=5fb0341d348e101b30794945a6c91546e25e8e7b;hpb=1969a022e69bdac64a0d88de3d0ce88d79a27804 diff --git a/firmware/include/adc.h b/firmware/include/adc.h index ad06a89..e731f5c 100644 --- a/firmware/include/adc.h +++ b/firmware/include/adc.h @@ -13,12 +13,13 @@ \date September 2010 */ +#ifndef ADC_H +#define ADC_H -// Identical to that in command.h, but to avoid cyclic dependencies... -#define u8 unsigned char -#define u16 unsigned int -#define u32 unsigned long +#include "command.h" +#include "app.h" +#define ADC 0x74 //! Initialize ADC10 module (specific to 2xx chip family). void init_adc10(); @@ -69,3 +70,8 @@ u16 nsamples_adc10( u8 N_count, //! Number samples to obtain (bounded w.r.t. cmd 1 => user-specified sequence length, t_sample = 3, clock_div = 8; 3 => user-specified length, t_sample and clock_div. */ #define ADC10_NSAMPLE 0x84 + +extern app_t const adc_app; + +#endif // ADC_H +