Skip to content
Commit 6a64bf6b authored by Bryan Zhu's avatar Bryan Zhu Committed by Carles Cufí
Browse files

drivers: counter: counter_ambiq_timer: Enable interrupt in set_alarm



Alarm interrupt is disabled in cancel_alarm, we should re-enable it
in set_alarm, at meanwhile, should reset the compare register in
cancel_alarm to avoid the contention condition in
cancel_alarm & set_alarm in short time.
This change fixes the test case failure at
zephyr\tests\drivers\counter\counter_basic_api.

Signed-off-by: default avatarBryan Zhu <bzhu@ambiq.com>
parent c8d22cf1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment