Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lwc
/
compare
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
726359a5
authored
Jul 10, 2019
by
Sebastian Renner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debugging LED call
parent
84bd336c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
templates/blackpill/Src/main.c
+4
-0
No files found.
templates/blackpill/Src/main.c
View file @
726359a5
...
@@ -80,6 +80,10 @@ static void write_serial(const void *src, unsigned int len) {
...
@@ -80,6 +80,10 @@ static void write_serial(const void *src, unsigned int len) {
for
(
int
i
=
0
;
i
<
len
;
i
++
)
{
for
(
int
i
=
0
;
i
<
len
;
i
++
)
{
while
(
!
LL_USART_IsActiveFlag_TXE
(
USART1
));
while
(
!
LL_USART_IsActiveFlag_TXE
(
USART1
));
LL_USART_TransmitData8
(
USART1
,
buf
[
i
]);
LL_USART_TransmitData8
(
USART1
,
buf
[
i
]);
LL_GPIO_TogglePin
(
GPIOB
,
LL_GPIO_PIN_12
);
LL_GPIO_TogglePin
(
GPIOB
,
LL_GPIO_PIN_12
);
LL_GPIO_TogglePin
(
GPIOB
,
LL_GPIO_PIN_12
);
LL_GPIO_TogglePin
(
GPIOB
,
LL_GPIO_PIN_12
);
}
}
}
}
...
...
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