Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stm32_libraries
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
humanoides
tools
stm32_libraries
Commits
09cf292b
Commit
09cf292b
authored
7 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Renamed some macros for the UART4 serial module.
parent
03a13ccf
No related branches found
No related tags found
1 merge request
!6
Dynamixel manager
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
f4/usart/src/usart4.c
+6
-6
6 additions, 6 deletions
f4/usart/src/usart4.c
with
6 additions
and
6 deletions
f4/usart/src/usart4.c
+
6
−
6
View file @
09cf292b
#include
"usart4.h"
#define USART U
S
ART4
#define USART_ENABLE_CLK __HAL_RCC_U
S
ART4_CLK_ENABLE()
#define USART_IRQn U
S
ART4_IRQn
#define USART_IRQHandler U
S
ART4_IRQHandler
#define USART UART4
#define USART_ENABLE_CLK __HAL_RCC_UART4_CLK_ENABLE()
#define USART_IRQn UART4_IRQn
#define USART_IRQHandler UART4_IRQHandler
#define USART_TX_PIN GPIO_PIN_10
#define USART_TX_GPIO_PORT GPIOC
...
...
@@ -182,8 +182,8 @@ void usart4_init(TComm *comm_dev,UART_InitTypeDef *conf,TUSART_IRQ_Priorities *p
GPIO_InitStructure
.
Pin
=
USART_TX_PIN
;
GPIO_InitStructure
.
Mode
=
GPIO_MODE_AF_PP
;
GPIO_InitStructure
.
Pull
=
GPIO_PULLUP
;
GPIO_InitStructure
.
Speed
=
GPIO_SPEED_
LOW
;
GPIO_InitStructure
.
Alternate
=
GPIO_AF
7
_U
S
ART4
;
GPIO_InitStructure
.
Speed
=
GPIO_SPEED_
FREQ_VERY_HIGH
;
GPIO_InitStructure
.
Alternate
=
GPIO_AF
8
_UART4
;
HAL_GPIO_Init
(
USART_TX_GPIO_PORT
,
&
GPIO_InitStructure
);
GPIO_InitStructure
.
Pin
=
USART_RX_PIN
;
...
...
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