diff --git a/cores/nRF5/freertos/Source/include/portable.h b/cores/nRF5/freertos/Source/include/portable.h index 6d448ae4..8aac353e 100644 --- a/cores/nRF5/freertos/Source/include/portable.h +++ b/cores/nRF5/freertos/Source/include/portable.h @@ -128,7 +128,6 @@ void vPortDefineHeapRegions( const HeapRegion_t * const pxHeapRegions ) PRIVILEG */ void *pvPortMalloc( size_t xSize ) PRIVILEGED_FUNCTION; void vPortFree( void *pv ) PRIVILEGED_FUNCTION; -void *pvPortRealloc( void* pv, size_t new_size) PRIVILEGED_FUNCTION; // Adafruit TODO remove later void vPortInitialiseBlocks( void ) PRIVILEGED_FUNCTION; size_t xPortGetFreeHeapSize( void ) PRIVILEGED_FUNCTION; size_t xPortGetMinimumEverFreeHeapSize( void ) PRIVILEGED_FUNCTION; diff --git a/cores/nRF5/freertos/Source/portable/MemMang/heap_3.c b/cores/nRF5/freertos/Source/portable/MemMang/heap_3.c index 447faa62..99837499 100644 --- a/cores/nRF5/freertos/Source/portable/MemMang/heap_3.c +++ b/cores/nRF5/freertos/Source/portable/MemMang/heap_3.c @@ -92,29 +92,3 @@ void vPortFree( void *pv ) ( void ) xTaskResumeAll(); } } - -void *pvPortRealloc( void* pv, size_t new_size) -{ - void *pvReturn; - - vTaskSuspendAll(); - { - pvReturn = realloc( pv, new_size ); - traceMALLOC( pvReturn, new_size ); - } - ( void ) xTaskResumeAll(); - - #if( configUSE_MALLOC_FAILED_HOOK == 1 ) - { - if( pvReturn == NULL ) - { - extern void vApplicationMallocFailedHook( void ); - vApplicationMallocFailedHook(); - } - } - #endif - - return pvReturn; -} - - diff --git a/cores/nRF5/rtos.h b/cores/nRF5/rtos.h index ae0e23d9..3c63def4 100644 --- a/cores/nRF5/rtos.h +++ b/cores/nRF5/rtos.h @@ -84,11 +84,6 @@ static inline void rtos_free( void *pv ) return (xTaskGetSchedulerState() == taskSCHEDULER_NOT_STARTED) ? free(pv) : vPortFree(pv); } -// TODO used by nffs, removed later -static inline void* rtos_realloc(void* pv, size_t new_size) -{ - return (xTaskGetSchedulerState() == taskSCHEDULER_NOT_STARTED) ? realloc(pv, new_size) : pvPortRealloc(pv, new_size); -} #endif #ifdef __cplusplus // Visible only with cplusplus diff --git a/keywords.txt b/keywords.txt index 42a32ebb..eeee3221 100644 --- a/keywords.txt +++ b/keywords.txt @@ -37,7 +37,6 @@ delay_ns KEYWORD2 # RTOS rtos_malloc KEYWORD2 rtos_free KEYWORD2 -rtos_realloc KEYWORD2 nrf52_flash_init KEYWORD2 nrf52_flash_erase_sector KEYWORD2 diff --git a/libraries/FileSystem/examples/External_ListFiles/External_ListFiles.ino b/libraries/FileSystem/examples/External_ListFiles/External_ListFiles.ino index c6953255..54984881 100644 --- a/libraries/FileSystem/examples/External_ListFiles/External_ListFiles.ino +++ b/libraries/FileSystem/examples/External_ListFiles/External_ListFiles.ino @@ -15,7 +15,7 @@ #include #include -/* This example print out NFFS content up to +/* This example print out External Flash contents up to * MAX_LEVEL level of directories (including root) * WARNING: This example uses recursive call to print out directory tree * be extra careful, high number of MAX_LEVEL can cause memory overflow diff --git a/libraries/FileSystem/examples/Internal_ListFiles/Internal_ListFiles.ino b/libraries/FileSystem/examples/Internal_ListFiles/Internal_ListFiles.ino index 325067ec..9e3ef585 100644 --- a/libraries/FileSystem/examples/Internal_ListFiles/Internal_ListFiles.ino +++ b/libraries/FileSystem/examples/Internal_ListFiles/Internal_ListFiles.ino @@ -15,7 +15,7 @@ #include #include -/* This example print out NFFS content up to +/* This example print out Internal Flash contents up to * MAX_LEVEL level of directories (including root) * WARNING: This example uses recursive call to print out directory tree * be extra careful, high number of MAX_LEVEL can cause memory overflow