Skip to content

Commit a4fb3ee

Browse files
author
mars
committed
added pvPortMalloc/Free wrappers
1 parent 65c5936 commit a4fb3ee

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

WebSource/web.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ extern "C"{
3333
char* WEB_getStatus();
3434
char* WEB_getPatchName();
3535
char* WEB_getParameterName(int pid);
36+
37+
void *pvPortMalloc( size_t xWantedSize );
38+
void vPortFree( void *pv );
3639
}
3740

3841
extern "C"{
@@ -222,3 +225,10 @@ void programStatus(ProgramVectorAudioStatus status){}
222225
int serviceCall(int service, void** params, int len){
223226
return -1;
224227
}
228+
229+
void *pvPortMalloc( size_t xWantedSize ){
230+
return malloc(xWantedSize);
231+
}
232+
void vPortFree( void *pv ){
233+
free(pv);
234+
}

0 commit comments

Comments
 (0)