clock_gpio_init() function
Output an optionally divided clock to the specified gpio pin.
Arguments
gpio
The GPIO pin to output the clock to. Valid GPIOs are: 21, 23, 24, 25. These GPIOs are connected to the GPOUT0-3 clock generators.
src
The source clock. See the register field CLOCKS_CLK_GPOUT0_CTRL_AUXSRC for a full list. The list is the same for each GPOUT clock generator.
div
The float amount to divide the source clock by. This is useful to not overwhelm the GPIO pin with a fast clock.
Examples
clock_gpio_init() is referenced by 1 libraries and example projects: