Browse Source

Merge pull request #497 from KurtE/CSI_FIX

Fixes to CSI registers
teensy4-core
Paul Stoffregen 4 years ago
parent
commit
266154b8a2
No account linked to committer's email address
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      teensy4/imxrt.h

+ 7
- 1
teensy4/imxrt.h View File

#define CSI_CSISR_ECC_INT ((uint32_t)(1<<1)) #define CSI_CSISR_ECC_INT ((uint32_t)(1<<1))
#define CSI_CSISR_DRDY ((uint32_t)(1<<0)) #define CSI_CSISR_DRDY ((uint32_t)(1<<0))


#define CSI_CSICR3_CSI_ENABLE ((uint32_t)(1<<31))
#define CSI_CSIFBUF_PARA_DEINTERLACE_STRIDE(n) ((uint32_t)(((n) & 0xffff)<<16))
#define CSI_CSIFBUF_PARA_FBUF_STRIDE(n) ((uint32_t)(((n) & 0xffff)<<0))

#define CSI_CSIIMAG_PARA_IMAGE_WIDTH(n) ((uint32_t)(((n) & 0xffff)<<16))
#define CSI_CSIIMAG_PARA_IMAGE_HEIGHT(n) ((uint32_t)(((n) & 0xffff)<<0))

#define CSI_CSICR18_CSI_ENABLE ((uint32_t)(1<<31))
#define CSI_CSICR18_MASK_OPTION(n) ((uint32_t)(((n) & 0x3)<<18)) #define CSI_CSICR18_MASK_OPTION(n) ((uint32_t)(((n) & 0x3)<<18))
#define CSI_CSICR18_AHB_HPROT(n) ((uint32_t)(((n) & 0xf)<<12)) #define CSI_CSICR18_AHB_HPROT(n) ((uint32_t)(((n) & 0xf)<<12))



Loading…
Cancel
Save