projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Make cmd number parsing functions return value
[fw/altos]
/
src
/
drivers
/
ao_mma655x.c
diff --git
a/src/drivers/ao_mma655x.c
b/src/drivers/ao_mma655x.c
index b9f1709c9cf57ae2dd20ba3897ad1975f6c8a720..a48c1db20cec31606910d5446d69e30ad7c3eb36 100644
(file)
--- a/
src/drivers/ao_mma655x.c
+++ b/
src/drivers/ao_mma655x.c
@@
-30,8
+30,6
@@
#define PRINTD(l,...)
#endif
#define PRINTD(l,...)
#endif
-uint8_t ao_mma655x_spi_index = AO_MMA655X_SPI_INDEX;
-
static void
ao_mma655x_start(void) {
ao_spi_get_bit(AO_MMA655X_CS_PORT,
static void
ao_mma655x_start(void) {
ao_spi_get_bit(AO_MMA655X_CS_PORT,
@@
-261,7
+259,7
@@
ao_mma655x_dump(void)
printf ("MMA655X value %d\n", ao_mma655x_current);
}
printf ("MMA655X value %d\n", ao_mma655x_current);
}
-
__code
struct ao_cmds ao_mma655x_cmds[] = {
+
const
struct ao_cmds ao_mma655x_cmds[] = {
{ ao_mma655x_dump, "A\0Display MMA655X data" },
{ 0, NULL },
};
{ ao_mma655x_dump, "A\0Display MMA655X data" },
{ 0, NULL },
};
@@
-279,7
+277,7
@@
ao_mma655x(void)
}
}
}
}
-static
__xdata
struct ao_task ao_mma655x_task;
+static struct ao_task ao_mma655x_task;
void
ao_mma655x_init(void)
void
ao_mma655x_init(void)