Misc quad encoder updates

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4426 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2012-02-25 18:01:44 +00:00
parent d91b5c43d1
commit c2128c082a

View File

@ -666,7 +666,7 @@ static int stm32_setup(FAR struct qe_lowerhalf_s *lower)
* configured CLKOUT value (minus one)
*/
stm32_putreg16(priv, STM32_GTIM_PSC_OFFSET, (uint16_t)priv->psc);
stm32_putreg16(priv, STM32_GTIM_PSC_OFFSET, (uint16_t)priv->config->psc);
#if defined(CONFIG_STM32_TIM1_QE) || defined(CONFIG_STM32_TIM8_QE)
if (priv->config->timid == 1 || priv->config->timid == 8)