aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/usart.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmaple/usart.c')
-rw-r--r--libmaple/usart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmaple/usart.c b/libmaple/usart.c
index 53a6150..296a1fb 100644
--- a/libmaple/usart.c
+++ b/libmaple/usart.c
@@ -93,7 +93,7 @@ void usart_init(uint8 usart_num, uint32 baud) {
port = usart_dev_table[usart_num].base;
rcc_clk_enable(usart_dev_table[usart_num].rcc_dev_num);
- nvic_enable_interrupt(usart_dev_table[usart_num].nvic_dev_num);
+ nvic_irq_enable(usart_dev_table[usart_num].nvic_dev_num);
/* usart1 is mad fast */
clk_speed = (usart_num == USART1) ? 72000000UL : 36000000UL;