X-Git-Url: http://git.kpe.io/?p=avr_bc100.git;a=blobdiff_plain;f=BaseMegaFirmware%2FGCC%2Fbc100_slave.h;fp=BaseMegaFirmware%2FGCC%2Fbc100_slave.h;h=63450b7e0f3f7c681b4e94d50d516f0417585ad9;hp=0000000000000000000000000000000000000000;hb=89173ec9cd6f33843bf27c45be0f2f9be3f5f0ce;hpb=7997f136b12114035265bd082c854bff95fd73dc diff --git a/BaseMegaFirmware/GCC/bc100_slave.h b/BaseMegaFirmware/GCC/bc100_slave.h new file mode 100644 index 0000000..63450b7 --- /dev/null +++ b/BaseMegaFirmware/GCC/bc100_slave.h @@ -0,0 +1,23 @@ +// Martin Thomas 3/2008 +#ifndef BC100_SLAVE_H +#define BC100_SLAVE_H + +#define BC100_SLAVE_TEST + +#include +#include + +#define BC100_SLAVE_READ 0x00 +#define BC100_SLAVE_WRITE 0x40 +#define BC100_SLAVE_EEPROM 0x80 +#define BC100_SLAVE_SRAM 0x00 + + +void bc100_slave_init( void ); +uint8_t bc100_slave_read( uint8_t cmd, size_t size, void *buf ); + +#ifdef BC100_SLAVE_TEST +uint8_t bc100_slave_test(void); +#endif + +#endif