The HSO-100 relay board has the following components.
The device for the GPIO of the CPU is /dev/star_gpio. The device file for the GPIO of the HT46RU22 is /dev/ht_gpio. Both device file can be controlled by write the command to the device file. The format of the command is Select pin as GPIO pinThis command is valid for the CPU only. It will setup the pin as GPIO pin instead of the alternative function.
Setup the pin as input/output pinSetup the pin as an input pin.
Setup the ping value as '1' or '0'
Read input pinCurrent driver does not provide capability to read the input pin directly. However, we can use the ioctl to monitor the ping. [To be finsihed] |