Commit from zer0 on branch b_zer0 (2007-04-03 00:01 CEST)
---------------------------------
Disable clk when not ready
aversive modules/comm/mf2_client/mf2_client.c 1.1.2.4
---------------------------------------------
aversive/modules/comm/mf2_client/mf2_client.c (1.1.2.3 -> 1.1.2.4)
---------------------------------------------
***************
*** 15,21 ****
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
! * Revision : $Id: mf2_client.c,v 1.1.2.3 2007-03-10 21:07:58 zer0 Exp $
*
*/
--- 15,21 ----
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
! * Revision : $Id: mf2_client.c,v 1.1.2.4 2007-04-02 22:01:18 zer0 Exp $
*
*/
***************
*** 67,72 ****
--- 67,75 ----
static void watchdog_timeout(void * dummy);
#endif
+ static void disable_intr(void);
+ static void set_falling_edge(void);
+
#define START_BIT 0x0001
#define PARITY_BIT 0x0200
#define STOP_BIT 0x0400
***************
*** 92,97 ****
--- 95,102 ----
rx_buf |= (1 << current_bitnum);
if (current_bitnum==10) {
+ disable_intr();
+ clk_0();
if (rx_event) {
c=check_rx_buf(rx_buf);
if( c >= 0 ) {
***************
*** 99,111 ****
}
}
current_bitnum=0;
- state=MF2_CLIENT_STATE_IDLE;
#ifdef CONFIG_MODULE_MF2_CLIENT_USE_SCHEDULER
if (sched_event != -1) {
scheduler_del_event(sched_event);
sched_event = -1;
}
#endif
}
else {
current_bitnum++;
--- 104,119 ----
}
}
current_bitnum=0;
#ifdef CONFIG_MODULE_MF2_CLIENT_USE_SCHEDULER
if (sched_event != -1) {
scheduler_del_event(sched_event);
sched_event = -1;
}
#endif
+ data_Z();
+ clk_Z();
+ set_falling_edge();
+ state=MF2_CLIENT_STATE_IDLE;
}
else {
current_bitnum++;
_______________________________________________
Avr-list mailing list
[email protected]
CVSWEB : http://cvsweb.droids-corp.org/cgi-bin/viewcvs.cgi/aversive
WIKI : http://wiki.droids-corp.org/index.php/Aversive
DOXYGEN : http://zer0.droids-corp.org/doxygen_aversive/html/
BUGZILLA : http://bugzilla.droids-corp.org
COMMIT LOGS : http://zer0.droids-corp.org/aversive_commitlog