如何使OMAP3530timer寄存器讀寫致能?
忘了要讀寫timer前,要先有個讀寫知能的動作,
各位弟兄,100分,懇請告知
[解决办法]
FCLK_DECL(_fclk_GPT3, 0, CM_CLKEN_GPT3, cm_offset(CM_FCLKEN_xxx));
FCLK_DECL(_fclk_GPT4, 0, CM_CLKEN_GPT4, cm_offset(CM_FCLKEN_xxx));
FCLK_DECL(_fclk_GPT5, 0, CM_CLKEN_GPT5, cm_offset(CM_FCLKEN_xxx));
ICLK_DECL(_iclk_GPT3, 0, CM_CLKEN_GPT3, cm_offset(CM_ICLKEN_xxx));
ICLK_DECL(_iclk_GPT4, 0, CM_CLKEN_GPT4, cm_offset(CM_ICLKEN_xxx));
ICLK_DECL(_iclk_GPT5, 0, CM_CLKEN_GPT5, cm_offset(CM_ICLKEN_xxx));
AUTOIDLE_DECL(_autoIdle_GPT3, FALSE, CM_CLKEN_GPT3, cm_offset(CM_AUTOIDLE_xxx));
AUTOIDLE_DECL(_autoIdle_GPT4, FALSE, CM_CLKEN_GPT4, cm_offset(CM_AUTOIDLE_xxx));
AUTOIDLE_DECL(_autoIdle_GPT5, FALSE, CM_CLKEN_GPT5, cm_offset(CM_AUTOIDLE_xxx));
这里6.0里搜到的,我就没具体细看了,你自己也可以找一下,看是否有用
[解决办法]
6.0有现成的GPIO驱动和应用可以参考