mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-30 20:50:35 +08:00
Merged in RAMTRON update
This commit is contained in:
Binary file not shown.
@@ -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
|
||||
|
||||
@@ -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)
|
||||
// at24c_test();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user