49 lines
1.2 KiB
C
49 lines
1.2 KiB
C
|
/****************************************************************/
|
|||
|
/* TMS320C32 */
|
|||
|
/* ====== BIOS, <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> ====== */
|
|||
|
/* <09><><EFBFBD><EFBFBD> <20><><EFBFBD> (<28>) 1998-2001<30>. */
|
|||
|
/****************************************************************/
|
|||
|
/* log_to_mem.h
|
|||
|
****************************************************************
|
|||
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD>y<EFBFBD><EFBFBD> *
|
|||
|
****************************************************************/
|
|||
|
|
|||
|
#ifndef _LOG_TO_MEM
|
|||
|
#define _LOG_TO_MEM
|
|||
|
|
|||
|
#ifdef __cplusplus
|
|||
|
extern "C" {
|
|||
|
#endif
|
|||
|
|
|||
|
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>a <20><>a <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|||
|
#define LOG_PAGE_START 0x0200000
|
|||
|
#define LOG_PAGE_LEN 0xF000
|
|||
|
|
|||
|
extern int no_write, never_write; // <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD> <20><><EFBFBD>)
|
|||
|
|
|||
|
typedef struct
|
|||
|
{
|
|||
|
unsigned long Start;
|
|||
|
unsigned long Finis;
|
|||
|
unsigned long Adres;
|
|||
|
unsigned int Circl;
|
|||
|
|
|||
|
} LOG;
|
|||
|
|
|||
|
extern LOG Log;
|
|||
|
|
|||
|
/* <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>a <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> */
|
|||
|
#define Log_to_mem(x) *(int *)(Log.Adres++) = x
|
|||
|
|
|||
|
/* <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> */
|
|||
|
#define Test_mem_limit(x) if(Log.Adres > (Log.Finis - x)) Log.Adres = Log.Start
|
|||
|
|
|||
|
/* <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) */
|
|||
|
void clear_mem();
|
|||
|
|
|||
|
#ifdef __cplusplus
|
|||
|
}
|
|||
|
#endif
|
|||
|
|
|||
|
#endif /* _LOG_TO_MEM */
|