更新u_malloc分配器
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
#define HEAP_SIZE (512)
|
||||
#define STACK_SIZE (1024 * 2)
|
||||
#define STACK_SIZE (1024 * 3)
|
||||
|
||||
#if defined(__CC_ARM)
|
||||
#define HEAP_ATTR SECTION("HEAP") __attribute__((zero_init))
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
#include <poll.h>
|
||||
#include <sys/types.h>
|
||||
#include <u_malloc.h>
|
||||
|
||||
#define BB_VER "latest: 2021-04-07"
|
||||
#define BB_BT "busybox vi"
|
||||
|
||||
|
||||
@@ -102,6 +102,6 @@ int main(int argc, char *argv[])
|
||||
meta_reg_svr_obj(&net_drv.svr, BLK_DRV_PROT);
|
||||
while (1)
|
||||
{
|
||||
u_sleep_ms(0);
|
||||
u_sleep_ms(U_SLEEP_ALWAYS);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,6 +49,6 @@ int main(int argc, char *argv[])
|
||||
ns_register("/i2c2", hd, 0);
|
||||
while (1)
|
||||
{
|
||||
u_sleep_ms(0);
|
||||
u_sleep_ms(U_SLEEP_ALWAYS);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,6 +49,6 @@ int main(int argc, char *argv[])
|
||||
ns_register("/pca9555", hd, 0);
|
||||
while (1)
|
||||
{
|
||||
u_sleep_ms(0);
|
||||
u_sleep_ms(U_SLEEP_ALWAYS);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,6 +93,6 @@ int main(int argc, char *argv[])
|
||||
meta_reg_svr_obj(&snd_drv.svr, BLK_DRV_PROT);
|
||||
while (1)
|
||||
{
|
||||
u_sleep_ms(0);
|
||||
u_sleep_ms(U_SLEEP_ALWAYS);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,6 +128,6 @@ int main(int argc, char *argv[])
|
||||
while (1)
|
||||
{
|
||||
// rpc_loop();
|
||||
u_sleep_ms((umword_t)(-1));
|
||||
u_sleep_ms(U_SLEEP_ALWAYS);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,6 +159,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
while (1)
|
||||
{
|
||||
u_sleep_ms(0);
|
||||
u_sleep_ms(U_SLEEP_ALWAYS);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user