#ifndef DVP_H_ #define DVP_H_ #include "ch32v30x.h" #define SENSOR_WIDTH 256 #define SENSOR_HEIGHT 192 #define SENSOR_TOTAL_LINES (SENSOR_HEIGHT + 1) // +1 参数行 #define BYTES_PER_LINE (SENSOR_WIDTH * 2) // 每行512字节 #define ALARM_TEMP_RAW 800 // 80.0℃ (raw/10) extern volatile uint8_t Line_Ready_Flag; extern volatile uint8_t *Ready_Line_Ptr; extern volatile uint32_t current_line_idx; extern volatile uint32_t dvp_frame_count; extern volatile uint32_t dvp_row_irq_cnt; void DVP_Init(void); void DVP_Task(void); extern __attribute__((aligned(4))) uint8_t FrameBuffer[SENSOR_HEIGHT][BYTES_PER_LINE]; extern volatile uint8_t Frame_Ready_Flag; extern volatile uint32_t Ready_Frame_Count; #endif