};
#endif
-bool isinit = 0;
-
/****************************************************************************
* Private Functions
****************************************************************************/
****************************************************************************/
static int s5j_gpio_open(FAR struct gpio_dev_s *dev)
{
- int idx = ((struct s5j_gpio_priv *)(dev->priv))->idx;
- if (!isinit) {
- up_create_gpio(idx);
- }
return OK;
}
* Name: up_gpioinitialize
*
* Description:
- * Init all available GPIO, exposing them to file system: dev/gpioXX
+ * Dummy function. Real function s5j_gpioinitialize, where GPIOs are exposed,
+ * called from board_init().
*
* Input Parameters:
* None
****************************************************************************/
void up_gpioinitialize(void)
{
- int i;
- for (i = 0; i < NUM_GPIO; i++) {
- up_create_gpio(i);
- }
- isinit = OK;
}
/****************************************************************************