Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
esp lab 4
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Craig Duffy
esp lab 4
Commits
24cb7b83
Commit
24cb7b83
authored
3 years ago
by
Craig Duffy
Browse files
Options
Downloads
Patches
Plain Diff
Update main.c updated __io_putchar()
parent
2af2cb42
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Lab4/Src/main.c
+3
-3
3 additions, 3 deletions
Lab4/Src/main.c
with
3 additions
and
3 deletions
Lab4/Src/main.c
+
3
−
3
View file @
24cb7b83
...
...
@@ -49,7 +49,7 @@ void LED2_Off(void);
void
LED2_DeInit
(
void
);
void
BSP_COM_DeInit
(
UART_HandleTypeDef
*
);
void
LED2_Toggle
(
void
);
int
putchar
(
int
);
int
__io_
putchar
(
int
);
int
main
(
void
)
{
...
...
@@ -94,7 +94,7 @@ int main(void)
{
LED2_On
();
HAL_Delay
(
1000
);
//delay for 1000 milliseconds - namely 1 second
putchar
(
hi
[
i
]);
__io_
putchar
(
hi
[
i
]);
LED2_Off
();
HAL_Delay
(
1000
);
//delay for 1000 milliseconds - namely 1 second
}
...
...
@@ -251,7 +251,7 @@ void LED2_Toggle(void)
HAL_GPIO_TogglePin
(
LED2_GPIO_PORT
,
LED2_PIN
);
}
int
putchar
(
int
ch
)
int
__io_
putchar
(
int
ch
)
{
/* write a character to the serial port and Loop until the end of transmission */
while
(
HAL_OK
!=
HAL_UART_Transmit
(
&
hDiscoUart
,
(
uint8_t
*
)
&
ch
,
1
,
30000
))
...
...
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