flashclearstatus.c
1.06 KB
/*---------------------------------------------------------------------
Copyright (C) 1998 Nintendo.
File flash.c
Coded by Atushi Watanabe. Dec 1, 1998.
Modified by Atushi Watanabe. Apr 4, 2000.
Comments 1M Flash ROM access functions(Ver.7.6)
$Id: flashclearstatus.c,v 1.2 2003/03/26 02:00:13 blythe Exp $
---------------------------------------------------------------------*/
/**************************************************************************
*
* $Revision: 1.2 $
* $Date: 2003/03/26 02:00:13 $
* $Source:
*
**************************************************************************/
#include <ultra64.h>
#include "osint_flash.h"
/* CLEAR STATUS */
void osFlashClearStatus(void)
{
#ifndef BBPLAYER
/* Clear Status Register */
/* Set Read Status Mode */
osEPiWriteIo(&__osFlashHandler,(__osFlashHandler.baseAddress|0x10000),0xd2000000);
/* Clear Status Register */
osEPiWriteIo(&__osFlashHandler,__osFlashHandler.baseAddress,(u32)0);
return;
#endif
}