drv_dcmi.h 614 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2020-07-27 thread-liu the first version
  9. */
  10. #ifndef __DRV_DCMI_H__
  11. #define __DRV_DCMI_H__
  12. #include "board.h"
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. struct rt_dcmi_device
  17. {
  18. struct rt_device parent;
  19. };
  20. extern DMA_HandleTypeDef hdma_dcmi;
  21. extern void rt_hw_dcmi_dma_config(rt_uint32_t dst_addr1, rt_uint32_t dst_addr2, rt_uint32_t len);
  22. extern void DCMI_Start(void);
  23. extern void DCMI_Stop(void);
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif