fix linker issues on STM32

This commit is contained in:
Desuuuu 2021-03-23 22:00:34 +01:00
parent a51242e8c5
commit 278b1c0210
No known key found for this signature in database
GPG Key ID: 85943F4B2C2CE0DC
2 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@
| USART_CR1_RXNEIE)
void
USARTx_IRQHandler(void)
t5uid1_USARTx_IRQHandler(void)
{
uint32_t sr = USARTx->SR;
if (sr & (USART_SR_RXNE | USART_SR_ORE))
@ -76,7 +76,7 @@ t5uid1_init(uint32_t baud)
USARTx->BRR = (((div / 16) << USART_BRR_DIV_Mantissa_Pos)
| ((div % 16) << USART_BRR_DIV_Fraction_Pos));
USARTx->CR1 = CR1_FLAGS;
armcm_enable_irq(USARTx_IRQHandler, USARTx_IRQn, 0);
armcm_enable_irq(t5uid1_USARTx_IRQHandler, USARTx_IRQn, 0);
gpio_peripheral(GPIO_Rx, GPIO_FUNCTION(7), 1);
gpio_peripheral(GPIO_Tx, GPIO_FUNCTION(7), 0);

View File

@ -39,7 +39,7 @@
| USART_CR1_RXNEIE)
void
USARTx_IRQHandler(void)
t5uid1_USARTx_IRQHandler(void)
{
uint32_t sr = USARTx->ISR;
if (sr & (USART_ISR_RXNE | USART_ISR_ORE))
@ -70,7 +70,7 @@ t5uid1_init(uint32_t baud)
USARTx->BRR = (((div / 16) << USART_BRR_DIV_MANTISSA_Pos)
| ((div % 16) << USART_BRR_DIV_FRACTION_Pos));
USARTx->CR1 = CR1_FLAGS;
armcm_enable_irq(USARTx_IRQHandler, USARTx_IRQn, 0);
armcm_enable_irq(t5uid1_USARTx_IRQHandler, USARTx_IRQn, 0);
gpio_peripheral(GPIO_Rx, GPIO_FUNCTION(1), 1);
gpio_peripheral(GPIO_Tx, GPIO_FUNCTION(1), 0);