mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
i.MX6: Fix a bit setting in the timer configuration
This commit is contained in:
@@ -165,7 +165,7 @@ void up_timer_initialize(void)
|
|||||||
|
|
||||||
/* Disable GPT by setting EN=0 in GPT_CR register */
|
/* Disable GPT by setting EN=0 in GPT_CR register */
|
||||||
|
|
||||||
cr = getreg32(IMX_GPT_CR);
|
cr = getreg32(IMX_GPT_CR);
|
||||||
cr &= ~GPT_CR_EN;
|
cr &= ~GPT_CR_EN;
|
||||||
putreg32(cr, IMX_GPT_CR);
|
putreg32(cr, IMX_GPT_CR);
|
||||||
|
|
||||||
@@ -221,7 +221,7 @@ void up_timer_initialize(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
cr &= ~GPT_CR_FFR;
|
cr &= ~GPT_CR_FFR;
|
||||||
putreg32(cr | GPT_CR_SWR, IMX_GPT_CR);
|
putreg32(cr, IMX_GPT_CR);
|
||||||
|
|
||||||
/* Set ENMOD=1 in GPT_CR register, to bring GPT counter to 0x00000000. If
|
/* Set ENMOD=1 in GPT_CR register, to bring GPT counter to 0x00000000. If
|
||||||
* the ENMOD bit is 1, then the Main Counter and Prescaler Counter values
|
* the ENMOD bit is 1, then the Main Counter and Prescaler Counter values
|
||||||
|
|||||||
@@ -53,7 +53,10 @@ With this change, the NSH serial console works:
|
|||||||
NuttShell (NSH)
|
NuttShell (NSH)
|
||||||
nsh>
|
nsh>
|
||||||
|
|
||||||
But there are still no timer interrupts.
|
But there are still no timer interrupts. LEDs do not appear to be working.
|
||||||
|
|
||||||
|
2016-05-17: Timer interrupts now work. This turned out to be just a minor
|
||||||
|
bit setting error in the timer configuration.
|
||||||
|
|
||||||
Platform Features
|
Platform Features
|
||||||
=================
|
=================
|
||||||
|
|||||||
Reference in New Issue
Block a user