Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/examples/hcom/cell/cmux/hcom_cmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@

#include <meadow/hcom_protocol.h>
#include <meadow/meadow_os.h>
#include "../../hcom_common.h"

#include "hcom_cmux.h"
#include "netutils/cmux.h"
Expand Down
1 change: 1 addition & 0 deletions apps/examples/hcom/diag/hcom_diag_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

#include "../hcom_common.h"
#include <meadow/hcom_upd_shared.h>
#include <meadow/meadow_apps_core_share.h>
#include "hcom_diag_gpio.h"

/****************************************************************************
Expand Down
1 change: 1 addition & 0 deletions apps/examples/hcom/mono/hcom_mono_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
#include <string.h>

#include <termios.h>
#include <sys/wait.h>

#include "diag/hcom_diag_gpio.h"

Expand Down
2 changes: 1 addition & 1 deletion apps/examples/hcom/ota/hcom_ota.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ int meadow_cloud_decrypt_buf(const unsigned char *encrypted_buf, int encrypted_l
return -1;
}

meadow_cloud_release_private_key((const char**) &private_key);
meadow_cloud_release_private_key((char** const) &private_key);

unsigned char result[MBEDTLS_MPI_MAX_SIZE];
size_t olen = 0;
Expand Down
7 changes: 5 additions & 2 deletions apps/examples/sqlite/sqlite_meadow.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#include "sqlite3.h"

#include "sqlite_meadow.h"

#include "syslog.h"

// These are called by initialization, but are not defined unless SQLITE_OS_UNIX is defined
// If you define SQLITE_OS_UNIX, it fails because Nuttx doesn't implement things like fchmod
SQLITE_API sqlite3_os_init(void)
SQLITE_API int sqlite3_os_init(void)
{
// we must register the `demovfs` that Meadow uses
sqlite3_vfs *pVfs = sqlite3_demovfs();
Expand All @@ -22,7 +25,7 @@ SQLITE_API sqlite3_os_init(void)
return SQLITE_OK;
}

SQLITE_API sqlite3_os_end(void)
SQLITE_API int sqlite3_os_end(void)
{
return SQLITE_OK;
}
4 changes: 4 additions & 0 deletions apps/examples/sqlite/sqlite_meadow.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@
#ifndef ___SQLITE_MEADOW__H
#define ___SQLITE_MEADOW__H

#include "sqlite3.h"

/****************************************************************************
* Included Files
****************************************************************************/

#define VIRTUAL_FILE_SYS_NAME "meadow"

sqlite3_vfs *sqlite3_demovfs(void);

#endif // ___SQLITE_MEADOW__H
2 changes: 2 additions & 0 deletions bootloader/Core/Src/sysmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
extern int errno;
register char * stack_ptr asm("sp");

typedef char * caddr_t;

/* Functions */

/**
Expand Down
5 changes: 5 additions & 0 deletions nuttx/include/nuttx/lib/math.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,11 @@ double log2 (double x);
long double log2l (long double x);
#endif

#ifdef CONFIG_HAVE_DOUBLE
extern double hypot (double, double);
#endif


float ilogbf (float x);
#ifdef CONFIG_HAVE_DOUBLE
double ilogb (double x);
Expand Down
6 changes: 5 additions & 1 deletion nuttx/libs/libc/stdlib/lib_openpty.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@

#include <nuttx/serial/pty.h>

FAR char *ptsname(int fd);
int ptsname_r(int fd, FAR char *buf, size_t buflen);


/****************************************************************************
* Public Functions
****************************************************************************/
Expand Down Expand Up @@ -177,7 +181,7 @@ int openpty(FAR int *master, FAR int *slave, FAR char *name,

if (win != NULL)
{
ioctl(*slave, TIOCSWINSZ, win);
ioctl(*slave, TIOCSWINSZ, (unsigned long) win);
}

return 0;
Expand Down
Loading