/*
* (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
*
- * SPDX-License-Identifier: GPL-2.0+
+ * SPDX-License-Identifier: GPL-2.0
*/
-#include "common.h"
-#include <stdlib.h>
-#include <string.h>
+#include "cmd_gpio.h"
#include <ctype.h>
-#include "command.h"
#include "print-utils.h"
#include "getopt-min.h"
#include "env.h"
/* TODO: enters endless loop on wrong parameters */
- if ((lp = getenv_char(PSTR(ENV_PINALIAS))) != NULL) {
+ if ((lp = getenv_str(PSTR(ENV_PINALIAS))) != NULL) {
pin_names[namestr] = strdup(lp);
ptr = strtok_P(pin_names[namestr], delim1);
while (ptr != NULL) {
}
-command_ret_t do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+command_ret_t do_gpio(cmd_tbl_t *cmdtp, uint_fast8_t flag, int argc, char *const argv[])
{
char printheader = 1;
uint_fast8_t pinarg[GPIO_MAX];