PX4 Firmware
PX4 Autopilot Software http://px4.io
|
mtd service and utility app. More...
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/log.h>
#include <px4_platform_common/module.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mount.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mtd/mtd.h>
#include <nuttx/fs/nxffs.h>
#include <nuttx/fs/ioctl.h>
#include <nuttx/drivers/drivers.h>
#include <arch/board/board.h>
#include "systemlib/px4_macros.h"
#include <parameters/param.h>
#include <board_config.h>
Go to the source code of this file.
Functions | |
__EXPORT int | mtd_main (int argc, char *argv[]) |
mtd service and utility app.
Definition in file mtd.c.
int mtd_main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 74 of file mtd.c.
References arraySize, at24c_initialize(), fd, nblocks, OK, print_usage(), read(), SPIDEV_MODE3, and write().