thomas haine
/
CIS001_v2_v2
cis001v2
Diff: main.h
- Revision:
- 8:66caa906d24c
- Parent:
- 7:4c77f017b4b8
--- a/main.h Wed Jan 06 13:35:17 2021 +0000 +++ b/main.h Wed Feb 10 16:38:32 2021 +0000 @@ -45,9 +45,21 @@ /* USER CODE BEGIN EC */ const int frame_bsize_8b =640*480*1; //640*480 pixels de 1 byte +const int frame_bsize_QVGA_8b =320*240*1; //320*240 pixels de 1 byte const int frame_bsize_QQVGA_8b =160*120*1; //160*120 pixels de 1 byte -const int frame_bsize_10b =640*480*2; //640*480 pixels de 2 byte -const int frame_bsize_QQVGA_10b =160*120*2; //160*120 pixels de 2 byte +const int frame_bsize_10b =640*240*2; //640*240 pixels de 2 bytes +const int frame_bsize_QVGA_10b =320*240*2; //320*240 pixels de 2 bytes +const int frame_bsize_QQVGA_10b =160*120*2; //160*120 pixels de 2 bytes + +// same value but in word size +const int frame_wsize_8b =frame_bsize_8b/4; //640*480 pixels de 1 byte /4 pour donner la tailler en word +const int frame_wsize_QVGA_8b =frame_bsize_QVGA_8b/4; //320*240 pixels de 1 byte /4 pour donner la tailler en word +const int frame_wsize_QQVGA_8b =frame_bsize_QQVGA_8b/4; //160*120 pixels de 1 byte /4 pour donner la tailler en word +const int frame_wsize_10b =frame_bsize_10b/4; //640*240 pixels de 2 bytes /4 pour donner la tailler en word +const int frame_wsize_QVGA_10b =frame_bsize_QVGA_10b/4; //320*240 pixels de 2 bytes /4 pour donner la tailler en word +const int frame_wsize_QQVGA_10b =frame_bsize_QQVGA_10b/4; //160*120 pixels de 2 bytes /4 pour donner la tailler en word + + /* USER CODE END EC */ @@ -84,6 +96,24 @@ void stop_capture(void); +// IRQ handler for DMA/MDMA +//void HAL_DMA_IRQHandler(DMA_HandleTypeDef* hdma); +void DMA2_Stream1_IRQHandler(void); +//void DMA1_Stream0_IRQHandler(void); +//void DMA1_Stream1_IRQHandler(void); +void HAL_DMA_XferErrorCallback (DMA_HandleTypeDef * hddma); +void HAL_DMA_XferCpltCallback (DMA_HandleTypeDef * hddma); + +// IRQ and callback handler for DCMI +void HAL_DCMI_FrameEventCallback(DCMI_HandleTypeDef *hdcmi); +void HAL_DCMI_VsyncEventCallback(DCMI_HandleTypeDef *hdcmi); +void HAL_DCMI_LineEventCallback (DCMI_HandleTypeDef *hdcmi); +void HAL_DCMI_ErrorCallback (DCMI_HandleTypeDef *hdcmi); +//void HAL_DCMI_IRQHandler (DCMI_HandleTypeDef * hdcmi); + + + + /* USER CODE END EFP */ /* Private defines -----------------------------------------------------------*/