Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
DIOT Monitoring Module
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
DIOT Monitoring Module
Commits
7b688558
Commit
7b688558
authored
May 17, 2022
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bootloader/atmel_start: change i2c addr pins to pullup
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
f993f4c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
atmel_start_config.atstart
bootloader/atmel_start_prj/atmel_start_config.atstart
+6
-3
driver_init.c
bootloader/atmel_start_prj/driver_init.c
+3
-3
No files found.
bootloader/atmel_start_prj/atmel_start_config.atstart
View file @
7b688558
...
...
@@ -575,18 +575,21 @@ pads:
definition: Atmel:SAMD21_Drivers:0.0.1::SAMD21G18A-MF::pad::PA20
mode: Digital input
user_label: ADDR1
configuration: null
configuration:
pad_pull_config: Pull-up
ADDR2:
name: PA21
definition: Atmel:SAMD21_Drivers:0.0.1::SAMD21G18A-MF::pad::PA21
mode: Digital input
user_label: ADDR2
configuration: null
configuration:
pad_pull_config: Pull-up
ADDR0:
name: PB22
definition: Atmel:SAMD21_Drivers:0.0.1::SAMD21G18A-MF::pad::PB22
mode: Digital input
user_label: ADDR0
configuration: null
configuration:
pad_pull_config: Pull-up
toolchain_options: []
static_files: []
bootloader/atmel_start_prj/driver_init.c
View file @
7b688558
...
...
@@ -69,7 +69,7 @@ void system_init(void)
// <GPIO_PULL_OFF"> Off
// <GPIO_PULL_UP"> Pull-up
// <GPIO_PULL_DOWN"> Pull-down
GPIO_PULL_
OFF
);
GPIO_PULL_
UP
);
gpio_set_pin_function
(
ADDR1
,
GPIO_PIN_FUNCTION_OFF
);
...
...
@@ -84,7 +84,7 @@ void system_init(void)
// <GPIO_PULL_OFF"> Off
// <GPIO_PULL_UP"> Pull-up
// <GPIO_PULL_DOWN"> Pull-down
GPIO_PULL_
OFF
);
GPIO_PULL_
UP
);
gpio_set_pin_function
(
ADDR2
,
GPIO_PIN_FUNCTION_OFF
);
...
...
@@ -99,7 +99,7 @@ void system_init(void)
// <GPIO_PULL_OFF"> Off
// <GPIO_PULL_UP"> Pull-up
// <GPIO_PULL_DOWN"> Pull-down
GPIO_PULL_
OFF
);
GPIO_PULL_
UP
);
gpio_set_pin_function
(
ADDR0
,
GPIO_PIN_FUNCTION_OFF
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment