From 0f9db44ec7e0d92caeeeab4347f8aed8c5a978fe Mon Sep 17 00:00:00 2001 From: schodet Date: Fri, 22 Jul 2005 21:30:39 +0000 Subject: Ajout de TWI, migration vers le nouveau système de makefiles. --- n/avr/modules/twi/slave/twi_slave.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 n/avr/modules/twi/slave/twi_slave.h (limited to 'n/avr/modules/twi/slave/twi_slave.h') diff --git a/n/avr/modules/twi/slave/twi_slave.h b/n/avr/modules/twi/slave/twi_slave.h new file mode 100644 index 0000000..c7851e0 --- /dev/null +++ b/n/avr/modules/twi/slave/twi_slave.h @@ -0,0 +1,37 @@ +#ifndef twi_slave_h +#define twi_slave_h +/* twi_slave.h */ +/* avr.twi.slave - TWI slave module. {{{ + * + * Copyright (C) 2005 Clément Demonchy + * + * Robot APB Team/Efrei 2006. + * Web: http://assos.efrei.fr/robot/ + * Email: robot AT efrei DOT fr + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * }}} */ + +void +twi_init (uint8_t addr); + +uint8_t +twi_poll (uint8_t buf[], uint8_t size); + +void +twi_update (uint8_t buf[], uint8_t size); + +#endif /* twi_slave_h */ -- cgit v1.2.3