Bit =1, means output high level
Bit =0, means output low level
Note:
Value
4
*
GPIO pin
creation date:
5*========================================================================*/
/*==========================================================================
1
* void MB_gpio_init();
2
* function description: initialization function of the motherboard gpio, This function must be called
once before using it
3
* parameter description:
4
* creation date:
5*======================================================================*/
/*==========================================================================
1 * void watchdog_set(int time);
2 * function description:Watchdog function
3 * parameter description:time is to Set the dog feeding time,Value between 0 and 255
4 * creation date:
5*=======================================================================*/
/*==========================================================================
1 * voidSecond_gpio_mode(int port,int mode);
2 *function description:Subcard input and output mode settings
3 *parameter description:
Parameter:port fill in subcard GPIO number, 1or 2
Mode 8 bit of a bit, each bit controls the input and output mode of a GPIO pin,
Bit=1,the corresponding pin is used as the input port.
Bit =0, the corresponding pin is used as an output port.
Mode
Bit7
Bit6
Bit5
PIN8
PIN7
PIN6
Setting 0 means to turn off the watchdog
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
PIN5
PIN4
PIN3
Bit4
Bit3
Bit2
64
User's Manual
Bit1
Bit0
PIN2
PIN1
Bit1
Bit0