CAN node STM32F7 support and Freefly RTK GPS CAN node

This commit is contained in:
Daniel Agar
2021-05-16 13:10:02 -04:00
committed by GitHub
parent 1ad25369e7
commit ecf2cd3afb
39 changed files with 3417 additions and 5 deletions
@@ -40,6 +40,7 @@
#include "nuttx/arch.h"
#include "arm_internal.h"
#include "boot_config.h"
/****************************************************************************
* Pre-processor Definitions
@@ -81,6 +82,12 @@ int main(int argc, char **argv);
*
****************************************************************************/
int __wrap_nxsem_wait_uninterruptible(void *sem)
{
return 0;
}
int __wrap_nxsem_wait(void *sem)
{
return 0;
@@ -174,13 +181,27 @@ void __wrap_nx_start(void)
* Name: malloc
*
* Description:
* This function hijacks the OS's malloc and provides no allocation
* This function hijacks the OS's malloc and provides no or small
* allocation
*
****************************************************************************/
FAR void *malloc(size_t size)
{
#if defined(OPT_SIMPLE_MALLOC_HEAP_SIZE)
static int aloc = 0;
static uint8_t mem[OPT_SIMPLE_MALLOC_HEAP_SIZE];
void *rv = &mem[aloc];
aloc += size;
if (aloc > OPT_SIMPLE_MALLOC_HEAP_SIZE) {
PANIC();
}
return rv;
#else
return NULL;
#endif
}
/****************************************************************************