Browse Source

Merged in RAMTRON update

sbg
Lorenz Meier 12 years ago
parent
commit
1984e609b6
  1. BIN
      Documentation/flight_mode_state_machine.odg
  2. 1
      makefiles/config_px4fmu-v1_default.mk
  3. 11
      src/systemcmds/ramtron/ramtron.c

BIN
Documentation/flight_mode_state_machine.odg

Binary file not shown.

1
makefiles/config_px4fmu-v1_default.mk

@ -39,6 +39,7 @@ MODULES += modules/sensors @@ -39,6 +39,7 @@ MODULES += modules/sensors
# System commands
#
MODULES += systemcmds/eeprom
MODULES += systemcmds/ramtron
MODULES += systemcmds/bl_update
MODULES += systemcmds/boardinfo
MODULES += systemcmds/i2c

11
src/systemcmds/ramtron/ramtron.c

@ -63,6 +63,15 @@ @@ -63,6 +63,15 @@
__EXPORT int ramtron_main(int argc, char *argv[]);
#ifndef CONFIG_MTD_RAMTRON
/* create a fake command with decent message to not confuse users */
int ramtron_main(int argc, char *argv[])
{
errx(1, "RAMTRON not enabled, skipping.");
}
#else
static void ramtron_attach(void);
static void ramtron_start(void);
static void ramtron_erase(void);
@ -266,3 +275,5 @@ ramtron_test(void) @@ -266,3 +275,5 @@ ramtron_test(void)
// at24c_test();
exit(0);
}
#endif

Loading…
Cancel
Save