mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-11 15:28:53 +00:00
[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:
parent
89592fc9a3
commit
356f258e83
554 changed files with 79150 additions and 46596 deletions
21
examples/mbedtls/main.c
Normal file
21
examples/mbedtls/main.c
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue