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

TARGET_MCUXpresso_MCUS: fix lp ticker init function #8827

Merged
merged 1 commit into from
Nov 30, 2018

Conversation

mprse
Copy link
Contributor

@mprse mprse commented Nov 21, 2018

Description

When lp ticker is already initialised, then ticker init function should only disable ticker interrupt. In current implementation NVIC_EnableIRQ(LPTMR0_IRQn); is called incorrectly in this case.
To fix this issue we will call lp_ticker_disable_interrupt(); when lp ticker is initialised.

Pull request type

[X] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

In case when lp ticker is already initialized the ticker interrupt should be disabled.
mprse referenced this pull request Nov 21, 2018
This PR provides implementation of ticker_free() function for the following boards:
ARCH_PRO
EV_COG_AD3029LZ
EV_COG_AD4050LZ
K22F
K64F
K82F
KW24D
KW41Z
LPC546XX
NRF51_DK
NRF52_DK
NUCLEO_F207ZG
NUCLEO_F401RE
NUCLEO_F429ZI
NUCLEO_F746ZG
REALTEK_RTL8195AM
@0xc0170 0xc0170 requested a review from a team November 21, 2018 09:39
@0xc0170 0xc0170 requested review from deepikabhavnani and a team November 21, 2018 09:57
Copy link

@deepikabhavnani deepikabhavnani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 30, 2018

CI started

@mmahadevan108
Copy link
Contributor

Looks fine to me, was this line causing a failure?

@deepikabhavnani
Copy link

Looks fine to me, was this line causing a failure?

No failure was reported, it was discovered while reviewing code for some other issue.

Copy link
Contributor

@mmahadevan108 mmahadevan108 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks fine.

@mbed-ci
Copy link

mbed-ci commented Nov 30, 2018

Test run: SUCCESS

Summary: 4 of 4 test jobs passed
Build number : 1
Build artifacts
Build logs

@cmonr cmonr merged commit 5b9761e into ARMmbed:master Nov 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants