diff options
Diffstat (limited to 'os/ports')
-rw-r--r-- | os/ports/GCC/ARMCM3/STM32F103/serial_lld.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/os/ports/GCC/ARMCM3/STM32F103/serial_lld.c b/os/ports/GCC/ARMCM3/STM32F103/serial_lld.c index bf06195be..f58f7aad0 100644 --- a/os/ports/GCC/ARMCM3/STM32F103/serial_lld.c +++ b/os/ports/GCC/ARMCM3/STM32F103/serial_lld.c @@ -212,17 +212,17 @@ CH_IRQ_HANDLER(VectorDC) { void sd_lld_init(void) {
#if USE_STM32_USART1
- sdInit(&COM1, NULL, notify1);
+ sdObjectInit(&COM1, NULL, notify1);
GPIOA->CRH = (GPIOA->CRH & 0xFFFFF00F) | 0x000004B0;
#endif
#if USE_STM32_USART2
- sdInit(&COM2, NULL, notify2);
+ sdObjectInit(&COM2, NULL, notify2);
GPIOA->CRL = (GPIOA->CRL & 0xFFFF00FF) | 0x00004B00;
#endif
#if USE_STM32_USART3
- sdInit(&COM3, NULL, notify3);
+ sdObjectInit(&COM3, NULL, notify3);
GPIOB->CRH = (GPIOB->CRH & 0xFFFF00FF) | 0x00004B00;
#endif
}
|