Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Huebler
firmware
Commits
7bd55dca
Commit
7bd55dca
authored
5 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
fix(board): Turn off motor early
parent
c2b23c56
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sdk/Libraries/Boards/card10/Source/board.c
+10
-0
10 additions, 0 deletions
sdk/Libraries/Boards/card10/Source/board.c
sdk/Libraries/CMSIS/Device/Maxim/MAX32665/Source/system_max32665.c
+1
-1
1 addition, 1 deletion
...ries/CMSIS/Device/Maxim/MAX32665/Source/system_max32665.c
with
11 additions
and
1 deletion
sdk/Libraries/Boards/card10/Source/board.c
+
10
−
0
View file @
7bd55dca
...
...
@@ -98,6 +98,16 @@ int Board_Init(void)
{
int
err
;
const
gpio_cfg_t
pins
[]
=
{
{
PORT_0
,
PIN_8
,
GPIO_FUNC_OUT
,
GPIO_PAD_NONE
},
// Motor
{
PORT_0
,
PIN_31
,
GPIO_FUNC_OUT
,
GPIO_PAD_NONE
},
// ECG switch
};
const
unsigned
int
num_pins
=
(
sizeof
(
pins
)
/
sizeof
(
gpio_cfg_t
));
for
(
int
i
=
0
;
i
<
num_pins
;
i
++
)
{
GPIO_OutClr
(
&
pins
[
i
]);
GPIO_Config
(
&
pins
[
i
]);
}
if
((
err
=
Console_Init
())
!=
E_NO_ERROR
)
{
MXC_ASSERT_FAIL
();
return
err
;
...
...
This diff is collapsed.
Click to expand it.
sdk/Libraries/CMSIS/Device/Maxim/MAX32665/Source/system_max32665.c
+
1
−
1
View file @
7bd55dca
...
...
@@ -181,7 +181,7 @@ __weak void SystemInit(void)
MXC_GPIO1
->
vssel
|=
(
1
<<
14
)
|
(
1
<<
15
);
// GPIO for RGB LEDs
#if BOARD_EVKIT
MXC_GPIO1
->
vssel
|=
(
1
<<
8
)
|
(
1
<<
9
)
|
(
1
<<
10
)
|
(
1
<<
11
)
|
(
1
<<
12
);
// TODO: TMP for devboard
MXC_GPIO1
->
vssel
|=
(
1
<<
8
)
|
(
1
<<
9
)
|
(
1
<<
10
)
|
(
1
<<
11
)
|
(
1
<<
12
);
#endif
MXC_GPIO1
->
ps
|=
0xFFFFFFFF
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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