[Lapetus-cvs] lapetus smpc.h,1.3,1.4
Status: Inactive
Brought to you by:
cyberwarriorx
|
From: Theo B. <cyb...@us...> - 2009-06-03 02:16:51
|
Update of /cvsroot/lapetus/lapetus In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv30967 Modified Files: smpc.h Log Message: -A couple of tweaks Index: smpc.h =================================================================== RCS file: /cvsroot/lapetus/lapetus/smpc.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- smpc.h 10 Jan 2008 21:09:14 -0000 1.3 +++ smpc.h 3 Jun 2009 01:32:18 -0000 1.4 @@ -61,20 +61,17 @@ { // Wait until SF register is cleared while(SMPC_REG_SF & 0x1) { } - - // Set SF register so that no other command can be issued. - SMPC_REG_SF = 1; } ////////////////////////////////////////////////////////////////////////////// static inline void SmpcIssueCommand(u8 cmd) { + // Set SF register so that no other command can be issued. + SMPC_REG_SF = 1; + // Writing COMREG starts execution SMPC_REG_COMREG = cmd; - - // Wait till command is finished -// while(SMPC_REG_SF & 0x1) {} } ////////////////////////////////////////////////////////////////////////////// |