5.1 WDT and GPIO
/* ======================================================================
1
* void jhctech_init();
2
* function description: library initialization, This function must be called before calling other
functions
3
* parameter description:
4
* creation date:
5*======================================================================*/
/* ======================================================================
1
* void jhctech_init();
2
* function description: library release, Pair with jhctech_init, release the library's occupied resources
when not needed
3
* parameter description:
4
* creation date:
5* ======================================================================*/
/*==========================================================================
1
* BYTE MB_gpio_input(WORD port)
2
* function description: read the motherboard GPIO input level
3
* parameter description:
Return value:return a byte (8 bit), each bit of 8 bit corresponding to the level state of a GPIO pin
Return value
GPIO pin
Bit7
Bit6
Bit5
PIN8
PIN7
PIN6
Bit4
Bit3
Bit2
PIN5
PIN4
PIN3
65
User's Guide
Bit1
Bit0
PIN2
PIN1