This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_gpio_cleanup

Function Documentation

void rc_gpio_cleanup(int chip, int pin)

closes the file descriptor for a pin

Not strictly necessary to run at the end of your program since linux will clean this up for you. However this is sometimes useful in the middle of a program when a pin is no longer needed.

  • chip[in] The chip number, /dev/gpiochipX

  • pin[in] The pin ID