Project

General

Profile

Revision 5

Code corrected

View differences:

utils.c
17 17

  
18 18
int (util_sys_inb)(int port, uint8_t *value) { //transform 8 bit into 32 bit
19 19

  
20
  uint32_t new_val;             //initializing 32 bit variable
20
  uint32_t new_val;                           //initializing 32 bit variable
21 21

  
22
  if(sys_inb(port,&new_val)!=0){   //verifies if there is an error
22
  if(sys_inb(port,&new_val)!=0){              //verifies if there is an error
23 23
      printf("Error in util_sys_inb\n");
24 24
      return 1;
25 25
  }
26
  *value=new_val & 0xFF;        // dereferencing "value"
26
  *value=new_val & 0xFF;                      //dereferencing "value"
27 27

  
28 28
  return 0;
29 29
}

Also available in: Unified diff