Project

General

Profile

Revision 2

utilis done

View differences:

utils.c
4 4

  
5 5
int(util_get_LSB)(uint16_t val, uint8_t *lsb) {
6 6
  /* To be implemented by the students */
7
  printf("%s is not yet implemented!\n", __func__);
8

  
9
  return 1;
7
  //printf("%s is not yet implemented!\n", __func__);
8
  *lsb=val&0xFF;
9
  return 0;
10 10
}
11 11

  
12 12
int(util_get_MSB)(uint16_t val, uint8_t *msb) {
13 13
  /* To be implemented by the students */
14
  printf("%s is not yet implemented!\n", __func__);
14
  //printf("%s is not yet implemented!\n", __func__);
15
  *msb=(val&0xFF00)>>8;
15 16

  
16
  return 1;
17
  return 0;
17 18
}
18 19

  
19 20
int (util_sys_inb)(int port, uint8_t *value) {

Also available in: Unified diff