Skip to content

Commit ee6aa45

Browse files
committed
clean up
1 parent c3b3317 commit ee6aa45

File tree

6 files changed

+2
-35
lines changed

6 files changed

+2
-35
lines changed

cores/nRF5/freertos/Source/include/portable.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ void vPortDefineHeapRegions( const HeapRegion_t * const pxHeapRegions ) PRIVILEG
128128
*/
129129
void *pvPortMalloc( size_t xSize ) PRIVILEGED_FUNCTION;
130130
void vPortFree( void *pv ) PRIVILEGED_FUNCTION;
131-
void *pvPortRealloc( void* pv, size_t new_size) PRIVILEGED_FUNCTION; // Adafruit TODO remove later
132131
void vPortInitialiseBlocks( void ) PRIVILEGED_FUNCTION;
133132
size_t xPortGetFreeHeapSize( void ) PRIVILEGED_FUNCTION;
134133
size_t xPortGetMinimumEverFreeHeapSize( void ) PRIVILEGED_FUNCTION;

cores/nRF5/freertos/Source/portable/MemMang/heap_3.c

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -92,29 +92,3 @@ void vPortFree( void *pv )
9292
( void ) xTaskResumeAll();
9393
}
9494
}
95-
96-
void *pvPortRealloc( void* pv, size_t new_size)
97-
{
98-
void *pvReturn;
99-
100-
vTaskSuspendAll();
101-
{
102-
pvReturn = realloc( pv, new_size );
103-
traceMALLOC( pvReturn, new_size );
104-
}
105-
( void ) xTaskResumeAll();
106-
107-
#if( configUSE_MALLOC_FAILED_HOOK == 1 )
108-
{
109-
if( pvReturn == NULL )
110-
{
111-
extern void vApplicationMallocFailedHook( void );
112-
vApplicationMallocFailedHook();
113-
}
114-
}
115-
#endif
116-
117-
return pvReturn;
118-
}
119-
120-

cores/nRF5/rtos.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@ static inline void rtos_free( void *pv )
8484
return (xTaskGetSchedulerState() == taskSCHEDULER_NOT_STARTED) ? free(pv) : vPortFree(pv);
8585
}
8686

87-
// TODO used by nffs, removed later
88-
static inline void* rtos_realloc(void* pv, size_t new_size)
89-
{
90-
return (xTaskGetSchedulerState() == taskSCHEDULER_NOT_STARTED) ? realloc(pv, new_size) : pvPortRealloc(pv, new_size);
91-
}
9287
#endif
9388

9489
#ifdef __cplusplus // Visible only with cplusplus

keywords.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ delay_ns KEYWORD2
3737
# RTOS
3838
rtos_malloc KEYWORD2
3939
rtos_free KEYWORD2
40-
rtos_realloc KEYWORD2
4140

4241
nrf52_flash_init KEYWORD2
4342
nrf52_flash_erase_sector KEYWORD2

libraries/FileSystem/examples/External_ListFiles/External_ListFiles.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <bluefruit.h>
1616
#include <FileIO.h>
1717

18-
/* This example print out NFFS content up to
18+
/* This example print out External Flash contents up to
1919
* MAX_LEVEL level of directories (including root)
2020
* WARNING: This example uses recursive call to print out directory tree
2121
* be extra careful, high number of MAX_LEVEL can cause memory overflow

libraries/FileSystem/examples/Internal_ListFiles/Internal_ListFiles.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <bluefruit.h>
1616
#include <FileIO.h>
1717

18-
/* This example print out NFFS content up to
18+
/* This example print out Internal Flash contents up to
1919
* MAX_LEVEL level of directories (including root)
2020
* WARNING: This example uses recursive call to print out directory tree
2121
* be extra careful, high number of MAX_LEVEL can cause memory overflow

0 commit comments

Comments
 (0)