cli.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef __CLI_H
  2. #define __CLI_H
  3. #include "cli_inter_actor.h"
  4. #include "cli_inter_preter.h"
  5. #include <stm32f4xx.h>
  6. #define cli_reset() NVIC_SystemReset()
  7. extern void light_lib_cli_input(void);
  8. extern void light_lib_cli_loop(void);
  9. extern command_entry command_debug_table[];
  10. extern command_entry command_ble_table[];
  11. extern command_entry command_eeprom_table[];
  12. extern command_entry command_flash_table[];
  13. #define CLI_COMPONENTS_LIST \
  14. command_entry_sub_menu("debug", command_debug_table, "debug_table"), \
  15. command_entry_sub_menu("ble", command_ble_table, "ble_table"), \
  16. command_entry_sub_menu("eeprom", command_eeprom_table, "eeprom_table"), \
  17. command_entry_sub_menu("flash", command_flash_table, "flash_table"),
  18. #define CLI_COMPONENTS_INIT \
  19. // light_lib_cli_init();
  20. #define CLI_COMPONENTS_LOOP \
  21. // light_lib_cli_loop();
  22. extern command_entry main_table[];
  23. extern void cli_init(void);
  24. extern void cli_loop(void);
  25. #endif // __CLI_H