fix tflitemicro_person_detection
This commit is contained in:
@@ -13,8 +13,6 @@
|
|||||||
#include "i2c.h"
|
#include "i2c.h"
|
||||||
#include "spi.h"
|
#include "spi.h"
|
||||||
#include "tim.h"
|
#include "tim.h"
|
||||||
#include "ov2640.h"
|
|
||||||
#include "lcd_2inch4.h"
|
|
||||||
#include "tos_k.h"
|
#include "tos_k.h"
|
||||||
void board_init(void);
|
void board_init(void);
|
||||||
void SystemClock_Config(void);
|
void SystemClock_Config(void);
|
||||||
|
@@ -18,7 +18,6 @@ int main(void)
|
|||||||
{
|
{
|
||||||
board_init();
|
board_init();
|
||||||
printf("Welcome to TencentOS tiny\r\n");
|
printf("Welcome to TencentOS tiny\r\n");
|
||||||
person_detect_init();
|
|
||||||
osKernelInitialize(); // TOS Tiny kernel initialize
|
osKernelInitialize(); // TOS Tiny kernel initialize
|
||||||
osThreadCreate(osThread(application_entry), NULL); // Create TOS Tiny task
|
osThreadCreate(osThread(application_entry), NULL); // Create TOS Tiny task
|
||||||
osKernelStart(); // Start TOS Tiny
|
osKernelStart(); // Start TOS Tiny
|
||||||
|
@@ -1,12 +1,9 @@
|
|||||||
#include "mcu_init.h"
|
#include "mcu_init.h"
|
||||||
|
|
||||||
uint16_t camera_buffer[OV2640_PIXEL_WIDTH*OV2640_PIXEL_HEIGHT];
|
|
||||||
uint8_t frame_flag = 0;
|
uint8_t frame_flag = 0;
|
||||||
uint8_t tensor_flag = 0;
|
|
||||||
|
|
||||||
extern DCMI_HandleTypeDef hdcmi;
|
extern DCMI_HandleTypeDef hdcmi;
|
||||||
|
|
||||||
|
|
||||||
int fputc(int ch, FILE *f)
|
int fputc(int ch, FILE *f)
|
||||||
{
|
{
|
||||||
if (ch == '\n') {
|
if (ch == '\n') {
|
||||||
@@ -42,18 +39,6 @@ void board_init(void)
|
|||||||
MX_I2C1_Init();
|
MX_I2C1_Init();
|
||||||
MX_SPI1_Init();
|
MX_SPI1_Init();
|
||||||
MX_TIM4_Init();
|
MX_TIM4_Init();
|
||||||
|
|
||||||
LCD_2IN4_Init();
|
|
||||||
OV2640_Init();
|
|
||||||
OV2640_RGB565_Mode();
|
|
||||||
OV2640_OutSize_Set(OV2640_PIXEL_WIDTH,OV2640_PIXEL_HEIGHT);
|
|
||||||
|
|
||||||
__HAL_DCMI_DISABLE_IT(&hdcmi, DCMI_IT_LINE | DCMI_IT_VSYNC);
|
|
||||||
if (HAL_DCMI_Start_DMA(&hdcmi, DCMI_MODE_CONTINUOUS, (uint32_t)camera_buffer , (OV2640_PIXEL_WIDTH*OV2640_PIXEL_HEIGHT)/2))
|
|
||||||
{
|
|
||||||
Error_Handler();
|
|
||||||
}
|
|
||||||
//setup(); //tensorflow init
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user