mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-10 23:08:34 +00:00
[feat] add tinymaix component and demo
This commit is contained in:
parent
b46115f175
commit
57bda6c48b
314 changed files with 309080 additions and 0 deletions
34
examples/tinymaix/main.c
Normal file
34
examples/tinymaix/main.c
Normal file
|
@ -0,0 +1,34 @@
|
|||
#include "bflb_mtimer.h"
|
||||
#include "board.h"
|
||||
|
||||
#define MODEL_MNIST 1
|
||||
#define MODEL_CIFAR10 2
|
||||
#define MODEL_VWW 3
|
||||
#define MODEL_MBNET 4
|
||||
|
||||
#define CONFIG_MODEL MODEL_MNIST
|
||||
|
||||
#define main benchmark_main
|
||||
#if (CONFIG_MODEL == MODEL_MNIST)
|
||||
#include "mnist/main.c"
|
||||
#elif (CONFIG_MODEL == MODEL_CIFAR10)
|
||||
#include "cifar10/main.c"
|
||||
#elif (CONFIG_MODEL == MODEL_VWW)
|
||||
#include "vww/main.c"
|
||||
#elif (CONFIG_MODEL == MODEL_MBNET)
|
||||
#include "mbnet/label.c"
|
||||
#include "mbnet/main.c"
|
||||
#endif
|
||||
#undef main
|
||||
|
||||
int main(void)
|
||||
{
|
||||
board_init();
|
||||
|
||||
printf("tinymaix test ...\n");
|
||||
benchmark_main(0, NULL);
|
||||
|
||||
while (1) {
|
||||
bflb_mtimer_delay_ms(1000);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue