[sync] sync from internal repo

* use nuttx libc, disable system libc
* use tlsf as default
* update lhal flash driver
* add example readme
* add flash ini for new flash tool
* add fw header for new flash tool
This commit is contained in:
jzlv 2023-01-17 20:54:15 +08:00
parent 89592fc9a3
commit 356f258e83
554 changed files with 79150 additions and 46596 deletions

21
examples/mbedtls/main.c Normal file
View file

@ -0,0 +1,21 @@
#include "bflb_mtimer.h"
#include "board.h"
#include "mbedtls/aes.h"
#include "mbedtls/sha1.h"
#include "mbedtls/sha256.h"
#include "mbedtls/sha512.h"
int main(void)
{
board_init();
mbedtls_aes_self_test(1);
mbedtls_sha1_self_test(1);
mbedtls_sha256_self_test(1);
mbedtls_sha512_self_test(1);
printf("mbedtls test success\r\n");
while (1) {
bflb_mtimer_delay_ms(1000);
}
}