Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DIOT Monitoring Module
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
DIOT Monitoring Module
Commits
6740eff3
Commit
6740eff3
authored
3 years ago
by
Christos Gentsos
Browse files
Options
Downloads
Patches
Plain Diff
Main: enable PA10 adc input pin (ADC_PPERIPH) in the RTSB variant
parent
2c260cde
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main_fw/atmel_start_prj/atmel_start_pins.h
+3
-0
3 additions, 0 deletions
main_fw/atmel_start_prj/atmel_start_pins.h
main_fw/atmel_start_prj/driver_init.c
+7
-0
7 additions, 0 deletions
main_fw/atmel_start_prj/driver_init.c
with
10 additions
and
0 deletions
main_fw/atmel_start_prj/atmel_start_pins.h
+
3
−
0
View file @
6740eff3
...
...
@@ -28,6 +28,9 @@
#define PA07 GPIO(GPIO_PORTA, 7)
#define PA08 GPIO(GPIO_PORTA, 8)
#define PA09 GPIO(GPIO_PORTA, 9)
#ifdef MMRTSB
#define PA10 GPIO(GPIO_PORTA, 10)
#endif
#define PA13 GPIO(GPIO_PORTA, 13)
#define PA16 GPIO(GPIO_PORTA, 16)
#define PA17 GPIO(GPIO_PORTA, 17)
...
...
This diff is collapsed.
Click to expand it.
main_fw/atmel_start_prj/driver_init.c
+
7
−
0
View file @
6740eff3
...
...
@@ -99,6 +99,13 @@ void ADC_0_init(void)
gpio_set_pin_direction
(
PB03
,
GPIO_DIRECTION_OFF
);
gpio_set_pin_function
(
PB03
,
PINMUX_PB03B_ADC_AIN11
);
#ifdef MMRTSB
// Disable digital pin circuitry
gpio_set_pin_direction
(
PA10
,
GPIO_DIRECTION_OFF
);
gpio_set_pin_function
(
PA10
,
PINMUX_PA10B_ADC_AIN18
);
#endif
}
void
EXTERNAL_IRQ_0_init
(
void
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment