-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samv7/adc: fix handling of ANIOC_TRIGGER ioctl
ADC peripheral can be configured also for PWM trigger, so the ifdef should depend only on CONFIG_SAMV7_AFEC_SWTRIG. Also handle the situation when ANIOC_TRIGGER is called and the peripheral is not configured for SW trigger (but the other one may be, so config option is set). Trigger values saved to the private structure are also changed to enums for better code clarity. Signed-off-by: Michal Lenc <[email protected]>
- Loading branch information
1 parent
2c4fe28
commit 758b3ba
Showing
1 changed file
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters