flipperzero-firmware/applications/cli
Samuel Yvon 2bd4efd044
More GPIO control through CLI (#1271)
* Add more options
* Change from one big command to three small commands
  These changes follow from the review. Instead of having to
  rely in GOTOs (which are forbidden :<( ) to ensure cleaning,
  I divided in smaller pieces. Since I had no feedback w.r.t
  the previously existing `gpio_set`, this fits more with the
  current implementation.

  I also tried to interpret "That's not how we do enums" as
  to not include a `enum EnumName` decl. when using typedefs.

  I also distanced the implementation from using LL_GPIO
  in favour of functions provided in `<furi_hal_gpio.h>`
  but there was nothing to get the mode, so I stuck with
  LL_GPIO for mode check.

Co-authored-by: あく <alleteam@gmail.com>
2022-06-09 17:53:26 +09:00
..
cli_commands.c More GPIO control through CLI (#1271) 2022-06-09 17:53:26 +09:00
cli_commands.h [FL-2520] FW build with -Wextra (#1185) 2022-05-06 16:37:10 +03:00
cli_i.h [FL-2163] CLI: Separate session from CLI service (#1130) 2022-04-29 15:02:17 +03:00
cli_vcp.c [FL-2520] FW build with -Wextra (#1185) 2022-05-06 16:37:10 +03:00
cli_vcp.h [FL-2163] CLI: Separate session from CLI service (#1130) 2022-04-29 15:02:17 +03:00
cli.c [FL-2520] FW build with -Wextra (#1185) 2022-05-06 16:37:10 +03:00
cli.h [FL-2163] CLI: Separate session from CLI service (#1130) 2022-04-29 15:02:17 +03:00