From: batt Date: Fri, 5 Sep 2008 16:09:24 +0000 (+0000) Subject: Refactor AVR twi driver to supply twi_get; add ATMega32 support. X-Git-Tag: 2.0.0~143 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=b25ef590dd1c154233df33ea2872c08275c3f0e0;p=bertos.git Refactor AVR twi driver to supply twi_get; add ATMega32 support. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1791 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/avr/drv/twi_avr.h b/bertos/cpu/avr/drv/twi_avr.h index daaaefb7..1ff89292 100644 --- a/bertos/cpu/avr/drv/twi_avr.h +++ b/bertos/cpu/avr/drv/twi_avr.h @@ -63,6 +63,7 @@ bool twi_start_r(uint8_t id); void twi_stop(void); bool twi_put(const uint8_t data); bool twi_send(const void *_buf, size_t count); +int twi_get(bool ack); bool twi_recv(void *_buf, size_t count); void twi_init(void);