72 Star 584 Fork 128

GVP李昂 / pikapython

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
pika_config.c 1.07 KB
Copy Edit Web IDE Raw Blame History
李昂 authored 2022-02-25 16:17 . move pikaRTBooter to pikaRTThread
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2021-12-07 lyon the first version
*/
#include <rtthread.h>
#include "PikaPlatform.h"
#ifndef RT_USING_HEAP
#error "Please enable heap in the RT-Thread configuration"
#endif
int __platform_sprintf(char* buff, char* fmt, ...) {
va_list args;
int res;
va_start(args, fmt);
res = rt_vsprintf(buff, fmt, args);
va_end(args);
return res;
}
int __platform_vsprintf(char* buff, char* fmt, va_list args){
return rt_vsprintf(buff, fmt, args);
}
int __platform_vsnprintf(char* buff, size_t size, const char* fmt, va_list args){
return rt_vsnprintf(buff, size, fmt, args);
}
void* __platform_malloc(size_t size) {
return rt_malloc(size);
}
void __platform_free(void* ptr) {
rt_free(ptr);
}
void* __platform_memset(void* mem, int ch, size_t size) {
return rt_memset(mem, ch, size);
}
void* __platform_memcpy(void* dir, const void* src, size_t size) {
return rt_memcpy(dir, src, size);
}
C
1
https://gitee.com/Lyon1998/pikapython.git
git@gitee.com:Lyon1998/pikapython.git
Lyon1998
pikapython
pikapython
master

Search