
Description:
Set the status of GPIO Output pins.
Parameters:
This function takes an unsigned char as the parameter. The bit0 ~ bit3 in variable ‘val’ represent the
status of the output pins. The bit3 ~ bit7 in the variable ‘val’ are of no use and can be neglected.
For example:
u8 val = 0xf;
i32 result;
result = setChLevel(val);
if(result != 0)
printf(“Fail to set GPIO!\n”);
Return Value:
If the function sets the values successfully, it returns 0, any other returned value
stands for error.
6.5.2.2 Watchdog
1.
Syntax:
u8 getWtdTimer(void)
Description:
This function read the value of the watchdog time counter and returns it to the caller.
Parameters:
None.
Return Value:
This function returns the value of the time counter and returns it to the caller as an
unsigned character.
2.
Syntax:
void setWtdTimer( u8 val )
Description:
This function sets the watchdog timer register to the value ‘val’ and starts to count
down. The value could be 0 ~ 255. The unit is second. Setting the timer register to 0 disables the
watchdog function and stops the countdown.
Parameters:
The parameter ‘val’ is the value to set to watchdog timer register. The range is 0 ~ 255.
Return Value:
None.
58
Summary of Contents for AR-B6005
Page 1: ...1 AR B6005 Board User Manual ...
Page 8: ...2 2 Locations of I O ports Jumper settings definition 8 ...
Page 20: ...3 3 Superio Setup 20 ...
Page 23: ...3 5 Boot setup Choice boot priority 23 ...
Page 34: ...Driver Page This is the Driver Installation Page 34 ...
Page 35: ...Click the icon all the drivers will be selected 35 ...
Page 36: ...Click the icon all selected items will be cleared 36 ...
Page 38: ...Please click Yes to restart the system 38 ...
Page 43: ...Documents Page Double click on one of the items to open the manual 43 ...