diff options
author | Karel Kočí <cynerd@email.cz> | 2016-03-08 16:10:33 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2016-03-08 16:10:33 +0100 |
commit | 5d29fe79d30f430ae326d9dc57ccfaed6fe61328 (patch) | |
tree | 8341804d561c0060176cbebc3f9a57c7c07f7816 /twi.h | |
parent | 4e773191d447ac434536262a6f204dd991d4ad77 (diff) | |
download | avr-ioe-5d29fe79d30f430ae326d9dc57ccfaed6fe61328.tar.gz avr-ioe-5d29fe79d30f430ae326d9dc57ccfaed6fe61328.tar.bz2 avr-ioe-5d29fe79d30f430ae326d9dc57ccfaed6fe61328.zip |
Another full update of current work
Diffstat (limited to 'twi.h')
-rw-r--r-- | twi.h | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -1,25 +0,0 @@ -#include <avr/io.h> -#include <avr/interrupt.h> -#include <stdint.h> - -#include "mcu/mcu_def.h" -#include "buffers.h" - -#ifndef _IOE_TWI_H_ -#define _IOE_TWI_H_ - -#ifndef MCUSUPPORT_TWI -#error "No TWI interface is known on your mcu." -#endif - -enum twiMode { - TWI_MODE_MASTER, - TWI_MODE_SLAVE -}; - -void twi_init(enum twiMode); -int8_t twi_busy(void); -void twi_join(void); -void twi_send(uint8_t data); - -#endif /* _IOE_TWI_H_ */ |