Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
humanoides
tools
stm32_libraries
Commits
c078fa11
Commit
c078fa11
authored
May 05, 2020
by
Sergi Hernandez
Browse files
Updated the implementation of the usart1 module for the L0 family.
parent
0a4a91c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
l0/usart/include/usart1.h
View file @
c078fa11
...
...
@@ -9,6 +9,7 @@
void
usart1_init
(
TComm
*
comm_dev
,
UART_InitTypeDef
*
conf
,
UART_AdvFeatureInitTypeDef
*
adv_conf
,
TUSART_IRQ_Priorities
*
priorities
);
void
usart1_config
(
TComm
*
comm_dev
,
UART_InitTypeDef
*
conf
,
UART_AdvFeatureInitTypeDef
*
adv_conf
);
void
usart1_set_priorities
(
TComm
*
comm_dev
,
TUSART_IRQ_Priorities
*
priorities
);
void
usart1_set_baudrate
(
TComm
*
comm_dev
,
unsigned
int
baudrate
);
/* IRQ functions */
unsigned
char
usart1_send_irq
(
unsigned
char
first_byte
);
unsigned
char
usart1_enable_tx_irq
(
void
);
...
...
l0/usart/src/usart1.c
View file @
c078fa11
...
...
@@ -281,6 +281,12 @@ void usart1_set_priorities(TComm *comm_dev,TUSART_IRQ_Priorities *priorities)
}
}
void
usart1_set_baudrate
(
TComm
*
comm_dev
,
unsigned
int
baudrate
)
{
UartHandle
.
Init
.
BaudRate
=
baudrate
;
HAL_UART_Init
(
&
UartHandle
);
}
/* IRQ functions */
unsigned
char
usart1_send_irq
(
unsigned
char
first_byte
)
{
...
...
Write
Preview
Supports
Markdown
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