By calling "gpio_init_pin(ALARM_PIN= 28,
0);" I am getting this
Assertion failed: bank->data == v
How can I fix this error? How should I specify the GPIO pins?
The assertion is located inside the function which writes out to GPIO
pins and it checks if it correctly writes out a value. From what you
have provided, I'm guessing that you have problems writing to ALARM_PIN
or pin 28. However, it seems that you are initialising the GPIO pin to
be an input pin and not an output pin. The 'gpio_init_pin' call should
take '1' as the second argument which corresponds to
'GPIO_DIR_OUT_DEFAULT_LOW/GPIO_DIR_OUT' in the 'gpio_dir' enum in
gpio.h header in libplatsupport .
P.S. I think your checkout of the 'util_libs' repository is old. The
'gpio_write' functions have been replaced by the 'gpio_set' and
'gpio_clear' functions. The pin chaining functionality also got moved
into a different header file here: