summaryrefslogtreecommitdiff
path: root/src/drivers/ao_gps_ublox.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-05-14 09:12:29 -0700
committerKeith Packard <keithp@keithp.com>2013-05-15 22:11:21 -0700
commit5e9193f6375be27e5f7a0321fd34b6acfe81247f (patch)
treea7222f619868ec65d99bfd1046bb07b368849e37 /src/drivers/ao_gps_ublox.c
parentcdad289a0803babecd30cbc0a95be99c5caadeb5 (diff)
altos: Add 'g' command to ublox GPS code.
Take the gps_dump function from ao_gps_skytraq.c and move it to a new file so it can be shared with the u-blox driver. That affects every skytraq and u-blox user as they need to include the new file. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_gps_ublox.c')
-rw-r--r--src/drivers/ao_gps_ublox.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/ao_gps_ublox.c b/src/drivers/ao_gps_ublox.c
index 22300df3..24e70ee3 100644
--- a/src/drivers/ao_gps_ublox.c
+++ b/src/drivers/ao_gps_ublox.c
@@ -695,10 +695,16 @@ ao_gps(void) __reentrant
}
}
+__code struct ao_cmds ao_gps_cmds[] = {
+ { ao_gps_show, "g\0Display GPS" },
+ { 0, NULL },
+};
+
__xdata struct ao_task ao_gps_task;
void
ao_gps_init(void)
{
+ ao_cmd_register(&ao_gps_cmds[0]);
ao_add_task(&ao_gps_task, ao_gps, "gps");
}