view target-utils/c139explore/cmdtab.c @ 752:c79aaed75bd8

compile-fc-batt: allow possible third field in source lines Battery tables maintained in the fc-battery-conf repository will now have a third field added, defining thresholds for the battery bars icon, and there will be a new utility to compile them into the new /etc/batterytab2 file read by the FC Tourmaline version of our FCHG driver. For backward compatibility with the original Magnetite version of FCHG, compile-fc-batt remains the tool for compiling the original /etc/batterytab file format, and it needs to ignore the newly added third field in battery table sources.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 05 Nov 2020 20:37:55 +0000
parents 44a1de4264d8
children
line wrap: on
line source

#include "cmdtab.h"

extern void cmd_abbr();
extern void cmd_abbw();
extern void cmd_buz();
extern void cmd_buzlev();
extern void cmd_dac();
extern void cmd_dacon();
extern void cmd_dbl();
extern void cmd_hbars();
extern void cmd_jump();
extern void cmd_kpbl();
extern void cmd_lcdcmd();
extern void cmd_lcdfill();
extern void cmd_lcdinit();
extern void cmd_lcdpix();
extern void cmd_r8();
extern void cmd_r16();
extern void cmd_r32();
extern void cmd_vbars();
extern void cmd_vibe();
extern void cmd_w8();
extern void cmd_w16();
extern void cmd_w32();

extern void abb_init();
extern void abb_power_off();
extern void abb_unlock_page2();
extern void cmd_memdump_human();

const struct cmdtab cmdtab[] = {
	{"abbinit", abb_init},
	{"abbpage2", abb_unlock_page2},
	{"abbr", cmd_abbr},
	{"abbw", cmd_abbw},
	{"buz", cmd_buz},
	{"buzlev", cmd_buzlev},
	{"dac", cmd_dac},
	{"dacon", cmd_dacon},
	{"dbl", cmd_dbl},
	{"dump", cmd_memdump_human},
	{"hbars", cmd_hbars},
	{"jump", cmd_jump},
	{"kpbl", cmd_kpbl},
	{"lcdcmd", cmd_lcdcmd},
	{"lcdfill", cmd_lcdfill},
	{"lcdinit", cmd_lcdinit},
	{"lcdpix", cmd_lcdpix},
	{"poweroff", abb_power_off},
	{"r8", cmd_r8},
	{"r16", cmd_r16},
	{"r32", cmd_r32},
	{"vbars", cmd_vbars},
	{"vibe", cmd_vibe},
	{"w8", cmd_w8},
	{"w16", cmd_w16},
	{"w32", cmd_w32},
	{0, 0}
};