when the am335x run the follow:
/* Configure the DMTimer for Auto-reload and compare mode */
DMTimerModeConfigure(SOC_DMTIMER_5_REGS, DMTIMER_AUTORLD_NOCMP_ENABLE);
/* set pin as input */
DMTimerGPOConfigure(SOC_DMTIMER_5_REGS, DMTIMER_GPO_CFG_1);
/* Configure and enable capture feature of DMTimer */
DMTimerCaptureConfigure(SOC_DMTIMER_5_REGS, DMTIMER_CAPTURE_BOTH, DMTIMER_CAPTURE_SINGLE );
The Auto-reload seting is failed. Why?
PICLKOCP: 100 MHz 。PICLKTIMER 24 MHz。
Write Non-Posted
This mode is functional regardless of the ratio between the OCP interface frequency and the functional
clock frequency. Recommended functional frequency range is freq (timer) >= freq (OCP)/4.
So the register must be Write Posted.
But why the starterware driver use Write Non-Posted?