JHCTech KMDA-3820 User Manual page 85

Table of Contents

Advertisement

/*==========================================================================
* void MB_gpio_output(WORD port,BYTE value);
1
2
* function description:high and low levels output of the motherboard
3
* parameter description:
Parameter: port fill in motherboard GPIO number which is designed by factory
Value 8 bit of a Byte, each bit controls a GPIO pin output value,
Bit =1, means output high level
Bit =0, means output low level
Value
GPIO pin
Note:
4 * 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
Bit7
Bit6
Bit5
PIN8
PIN7
PIN6
Setting 0 means to turn off the watchdog
Bit4
Bit3
Bit2
PIN5
PIN4
PIN3
77
User's Manual
Bit1
Bit0
PIN2
PIN1

Advertisement

Table of Contents
loading

Table of Contents