ADLINK Technology cPCI-3920 Series Manuel d'utilisateur Page 57

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 96
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 56
Watchdog Timer 43
AMC-1000
outportb(0xeb,00); //io delay
outportb(config_port_index,0x08);
}
/************************************/
unsigned char read_config_data_byte(unsigned char
_index)
{
unsigned char r_data;
outportb(config_port_index,_index);
outportb(0xeb,00); //io delay
r_data=inportb(config_port_data);
return(r_data);
}
/************************************/
void write_config_data_byte(unsigned char
_index,unsigned char _data)
{
outportb(config_port_index,_index);
outportb(0xeb,00); //io delay
outportb(config_port_data,_data);
}
/************************************/
void write_preload_val2_reg(unsigned long int
_time_out_val)
{
unsigned char *p_data;
// "unsigned char" declaration --> p_data++ =
addr. BYTE increased.
p_data=&_time_out_val;
// printf("%x\n",*p_data);
unlocking_reg();
outportb(wdt_io_base+4,*p_data);
p_data++;
// printf("%x\n",*p_data);
Vue de la page 56
1 2 ... 52 53 54 55 56 57 58 59 60 61 62 ... 95 96

Commentaires sur ces manuels

Pas de commentaire