mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-05 05:07:49 +00:00
Changes to get PX4 config to build. Also some warning removal
This commit is contained in:
parent
af14026800
commit
10d4657d15
6 changed files with 23 additions and 18 deletions
|
|
@ -97,7 +97,7 @@ static struct fat_format_s g_fmt = FAT_FORMAT_INITIALIZER;
|
|||
|
||||
int create_ramdisk(void)
|
||||
{
|
||||
char *pbuffer;
|
||||
FAR char *pbuffer;
|
||||
int ret;
|
||||
|
||||
/* Allocate a buffer to hold the file system image. */
|
||||
|
|
@ -113,10 +113,10 @@ int create_ramdisk(void)
|
|||
/* Register a RAMDISK device to manage this RAM image */
|
||||
|
||||
ret = ramdisk_register(CONFIG_EXAMPLES_MOUNT_RAMDEVNO,
|
||||
pbuffer,
|
||||
CONFIG_EXAMPLES_MOUNT_NSECTORS,
|
||||
CONFIG_EXAMPLES_MOUNT_SECTORSIZE,
|
||||
true);
|
||||
(FAR uint8_t *)pbuffer,
|
||||
CONFIG_EXAMPLES_MOUNT_NSECTORS,
|
||||
CONFIG_EXAMPLES_MOUNT_SECTORSIZE,
|
||||
true);
|
||||
if (ret < 0)
|
||||
{
|
||||
printf("create_ramdisk: Failed to register ramdisk at %s: %d\n",
|
||||
|
|
|
|||
|
|
@ -119,14 +119,14 @@ static void dumptrace(void)
|
|||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: dumptrace
|
||||
* Name: usbterm_listener
|
||||
*
|
||||
* Description:
|
||||
* Entry point for the listener thread.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
FAR void *usbterm_listener(FAR void *parameter)
|
||||
static FAR void *usbterm_listener(FAR void *parameter)
|
||||
{
|
||||
message("usbterm_listener: Waiting for remote input\n");
|
||||
for (;;)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue