tflite_micro_person_detection_init
This commit is contained in:
38
board/NUCLEO_STM32L496ZG/BSP/Hardware/Inc/sccb.h
Normal file
38
board/NUCLEO_STM32L496ZG/BSP/Hardware/Inc/sccb.h
Normal file
@@ -0,0 +1,38 @@
|
||||
#ifndef __SCCB_H
|
||||
#define __SCCB_H
|
||||
#include "sys.h"
|
||||
#include "gpio.h"
|
||||
|
||||
//IO<49><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
#define SCCB_SDA_IN() {GPIOB->MODER&=~(3<<(5*2));GPIOB->MODER|=0<<5*2;} //PD7 <20><><EFBFBD><EFBFBD>
|
||||
#define SCCB_SDA_OUT() {GPIOB->MODER&=~(3<<(5*2));GPIOB->MODER|=1<<5*2;} //PD7 <20><><EFBFBD><EFBFBD>
|
||||
#define SCCB_ID 0X60 //OV2640<34><30>ID
|
||||
|
||||
//IO<49><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
#define SCCB_SDA_IN() {GPIOB->MODER&=~(3<<(5*2));GPIOB->MODER|=0<<5*2;} //PD7 <20><><EFBFBD><EFBFBD>
|
||||
#define SCCB_SDA_OUT() {GPIOB->MODER&=~(3<<(5*2));GPIOB->MODER|=1<<5*2;} //PD7 <20><><EFBFBD><EFBFBD>
|
||||
|
||||
#define SCCB_ID 0X60 //OV2640<34><30>ID
|
||||
|
||||
void SCCB_Init(void);
|
||||
void SCCB_Start(void);
|
||||
void SCCB_Stop(void);
|
||||
void SCCB_No_Ack(void);
|
||||
uint8_t SCCB_WR_Byte(uint8_t dat);
|
||||
uint8_t SCCB_RD_Byte(void);
|
||||
uint8_t SCCB_WR_Reg(uint8_t reg,uint8_t data);
|
||||
uint8_t SCCB_RD_Reg(uint8_t reg);
|
||||
|
||||
void SCCB_SCL(uint8_t sccb_scl);
|
||||
void SCCB_SDA(uint8_t sccb_sda);
|
||||
uint8_t SCCB_READ_SDA(void);
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user