Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HAL][KSDK] Use PIT timer for ticker/timeout #502

Merged
merged 1 commit into from
Sep 23, 2014
Merged

[HAL][KSDK] Use PIT timer for ticker/timeout #502

merged 1 commit into from
Sep 23, 2014

Conversation

Sissors
Copy link
Contributor

@Sissors Sissors commented Sep 20, 2014

Previously in the KLXX devices the LPTMR was used for ticker/timeout,
since they only have 2 PIT channels which are required for regular
timer. The KSDK targets have 4 PIT channels, which allows for two 32-bit
timers running at 1 MHz.

Since PIT timers are 32-bit, and LPTMR 16-bit, this both simplifies it
and makes it more efficient. It does cost the remaining 2 PIT channels,
but on the other hand leaves the LPTMR free.

Previously in the KLXX devices the LPTMR was used for ticker/timeout,
since they only have 2 PIT channels which are required for regular
timer. The KSDK targets have 4 PIT channels, which allows for two 32-bit
timers running at 1 MHz.

Since PIT timers are 32-bit, and LPTMR 16-bit, this both simplifies it
and makes it more efficient. It does cost the remaining 2 PIT channels,
but on the other hand leaves the LPTMR free.
@0xc0170
Copy link
Contributor

0xc0170 commented Sep 22, 2014

Thanks !

We will merge this after we fix the latest issue caused by KSDK update :)

0xc0170 added a commit that referenced this pull request Sep 23, 2014
[HAL] Freescale KSDK -  Use PIT timer for ticker/timeout
@0xc0170 0xc0170 merged commit 347b41d into ARMmbed:master Sep 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants