44 lines
1.4 KiB
C
44 lines
1.4 KiB
C
/****************************************************************/
|
|
/* TMS320C32 */
|
|
/* ====== BIOS, ÊËÀÈÍ, ÊËÂÑÏ ====== */
|
|
/* ÖÍÈÈ ÑÝÒ (ñ) 1998-2000 ã. */
|
|
/****************************************************************
|
|
cntrl_adr.c
|
|
****************************************************************
|
|
* Àäðåñ êîíòðîëëåðà *
|
|
****************************************************************/
|
|
|
|
#include "cntrl_adr.h"
|
|
|
|
#define ADDR_FOR_ALL_DEF 10
|
|
#define ADDR_ANSWER_DEF 0x33
|
|
#define ADDR_TERMINAL_DEF 11
|
|
#define ADDR_UNIVERSAL_DEF 10
|
|
|
|
|
|
/** Óñòàíîâêà àäðåñà êîíòðîëëåðà äëà ïîñûëêè âñåì ÀÈÍàì */
|
|
int ADDR_FOR_ALL = ADDR_FOR_ALL_DEF;
|
|
|
|
/** Óñòàíîâêà àäðåñà êîíòðîëëåðà äëà ïîñûëêè îòâåòà */
|
|
const int ADDR_ANSWER = ADDR_ANSWER_DEF;
|
|
|
|
/** Óñòàíîâêà àäðåñà òåðìèíàëà äëà ïîñûëêè îòâåòà */
|
|
const int ADDR_TERMINAL = ADDR_TERMINAL_DEF;
|
|
|
|
/* Óíèâåðñàëüíûé àäðåñ êîíòðîëëåðà */
|
|
const int CNTRL_ADDR_UNIVERSAL=ADDR_UNIVERSAL_DEF;
|
|
|
|
/* Àäðåñ êîíòðîëëåðà */
|
|
int CNTRL_ADDR=1;
|
|
|
|
int cntr_addr_c;
|
|
int cntr_addr_c_all;
|
|
|
|
/** Óñòàíîâêà àäðåñà êîíòðîëëåðà äëà ïðîøèâêè */
|
|
void set_cntrl_addr (int cntrl_addr,int cntrl_addr_for_all)
|
|
{
|
|
CNTRL_ADDR = cntrl_addr;
|
|
ADDR_FOR_ALL = cntrl_addr_for_all;
|
|
}
|
|
|