hzeller/rpi-gpio-dma-demo

YLENGTH will set to the wrong value

expcov opened this issue · 0 comments

YLENGTH will set to the wrong value when the value to be written is larger than 0x0fff

- #define DMA_CB_TXFR_LEN_YLENGTH(y) (((y-1)&0x4fff) << 16)
+ #define DMA_CB_TXFR_LEN_YLENGTH(y) (((y-1)&0x3fff) << 16)