Fixes for compilation of stm32f746g-disco

This commit is contained in:
Ivan Ucherdzhiev 2017-08-01 06:50:53 -06:00 committed by Gregory Nutt
parent e22912db37
commit a9e4e02c81
3 changed files with 13 additions and 13 deletions

View File

@ -39,7 +39,11 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include "stm32_ccm.h" #include <sys/types.h>
#include <sys/mount.h>
#include <syslog.h>
#include <errno.h>
#include "stm32f746g-disco.h" #include "stm32f746g-disco.h"
/**************************************************************************** /****************************************************************************
@ -86,11 +90,14 @@ int board_app_initialize(uintptr_t arg)
/* Mount the procfs file system */ /* Mount the procfs file system */
ret = mount(NULL, SAMV71_PROCFS_MOUNTPOINT, "procfs", 0, NULL); ret = mount(NULL, STM32_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: Failed to mount procfs at %s: %d\n", syslog(LOG_ERR,
SAMV71_PROCFS_MOUNTPOINT, ret); "ERROR: Failed to mount the PROC filesystem: %d (%d)\n",
ret, errno);
return ret;
} }
#endif #endif

View File

@ -47,14 +47,6 @@
#include "up_arch.h" #include "up_arch.h"
#include "stm32f746g-disco.h" #include "stm32f746g-disco.h"
/************************************************************************************
* Pre-processor Definitions
************************************************************************************/
/************************************************************************************
* Private Functions
************************************************************************************/
/************************************************************************************ /************************************************************************************
* Public Functions * Public Functions
************************************************************************************/ ************************************************************************************/
@ -115,7 +107,7 @@ void stm32_boardinitialize(void)
#ifdef CONFIG_BOARD_INITIALIZE #ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void) void board_initialize(void)
{ {
#if defined(CONFIG_NSH_LIBRARY) && !defined(CONFIG_LIB_BOARDCTL) #if !defined(CONFIG_NSH_ARCHINIT) && !defined(CONFIG_LIB_BOARDCTL)
/* Perform NSH initialization here instead of from the NSH. This /* Perform NSH initialization here instead of from the NSH. This
* alternative NSH initialization is necessary when NSH is ran in user-space * alternative NSH initialization is necessary when NSH is ran in user-space
* but the initialization function must run in kernel space. * but the initialization function must run in kernel space.

View File

@ -43,6 +43,7 @@
#include <string.h> #include <string.h>
#include <nuttx/version.h> #include <nuttx/version.h>
#include <unistd.h>
/* In the protected and kernel build modes where kernel and application code /* In the protected and kernel build modes where kernel and application code
* are separated, some of these common system property must reside only in * are separated, some of these common system property must reside only in