mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
Tiva: Fix errors in low-level timer support
arch/arm/src/tiva/common/tiva_timerlib.c: * tiva_gptm_configure() and tiva_gptm_release(): Fix error: Was calling tiva_emac_periphrdy() instead of tiva_gptm_periphrdy(). arch/arm/src/tiva/tiva_timer.h: * Fix error in "abcde" description of bit flag defines.
This commit is contained in:
committed by
Gregory Nutt
parent
162e2e1c65
commit
06f693965c
@@ -1747,7 +1747,7 @@ TIMER_HANDLE tiva_gptm_configure(const struct tiva_gptmconfig_s *config)
|
|||||||
|
|
||||||
/* Wait for the reset to complete */
|
/* Wait for the reset to complete */
|
||||||
|
|
||||||
while (!tiva_emac_periphrdy());
|
while (!tiva_gptm_periphrdy());
|
||||||
up_udelay(250);
|
up_udelay(250);
|
||||||
|
|
||||||
/* Select the alternate timer clock source is so requested. The general
|
/* Select the alternate timer clock source is so requested. The general
|
||||||
@@ -1906,7 +1906,7 @@ void tiva_gptm_release(TIMER_HANDLE handle)
|
|||||||
|
|
||||||
/* Wait for the reset to complete */
|
/* Wait for the reset to complete */
|
||||||
|
|
||||||
while (!tiva_emac_periphrdy());
|
while (!tiva_gptm_periphrdy());
|
||||||
up_udelay(250);
|
up_udelay(250);
|
||||||
|
|
||||||
/* Disable power and clocking to the GPTM module */
|
/* Disable power and clocking to the GPTM module */
|
||||||
|
|||||||
@@ -98,8 +98,8 @@
|
|||||||
/* Flags bit definitions in configuration structures. NOTE: not all flags
|
/* Flags bit definitions in configuration structures. NOTE: not all flags
|
||||||
* apply in all timer modes. Applicable modes noted with:
|
* apply in all timer modes. Applicable modes noted with:
|
||||||
*
|
*
|
||||||
* a. 32-bit one shot timer
|
* a. 16-bit one shot timer
|
||||||
* b. 32-bit periodic timer
|
* b. 16-bit periodic timer
|
||||||
* c. 32-bit one shot timer
|
* c. 32-bit one shot timer
|
||||||
* d. 32-bit periodic timer
|
* d. 32-bit periodic timer
|
||||||
* e. 32-bit RTC timer
|
* e. 32-bit RTC timer
|
||||||
|
|||||||
Reference in New Issue
Block a user