Skip to content

Commit

Permalink
cmsis_uart: Use CMSIS UART driver for stm32f103xb
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrossard committed Feb 15, 2023
1 parent 5006a28 commit c30aea6
Show file tree
Hide file tree
Showing 11 changed files with 12,336 additions and 262 deletions.
4 changes: 4 additions & 0 deletions records/hic_hal/stm32f103xb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ common:
- INTERFACE_STM32F103XB
- USE_HAL_DRIVER
- STM32F103xB
- STM32F10X_MD
- DAPLINK_HIC_ID=0x97969908 # DAPLINK_HIC_ID_STM32F103XB
- __packed=__packed # Prevent redefinition of __packed with ARMCC
- DAPLINK_NO_ASSERT_FILENAMES
Expand All @@ -16,11 +17,14 @@ common:
- source/hic_hal/stm32/stm32f103xb/cmsis
- source/hic_hal/stm32/stm32f103xb/STM32F1xx_HAL_Driver
- source/hic_hal/stm32/stm32f103xb/STM32F1xx_HAL_Driver/Inc
- source/hic_hal/stm32/stm32f103xb/RTE_Driver
sources:
hic_hal:
- source/hic_hal/stm32/stm32f103xb
- source/hic_hal/stm32/stm32f103xb/cmsis
- source/hic_hal/stm32/stm32f103xb/STM32F1xx_HAL_Driver/Src
- source/hic_hal/stm32/stm32f103xb/RTE_Driver
- source/hic_hal/cmsis-driver/uart/uart.c

tool_specific:
uvision:
Expand Down
4 changes: 4 additions & 0 deletions source/hic_hal/stm32/stm32f103xb/IO_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,9 @@ COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_STM32F103XB);
#define PIN_MSC_LED GPIO_PIN_9
#define PIN_MSC_LED_Bit 9

#include "Driver_USART.h"
extern ARM_DRIVER_USART Driver_USART2;
#define CMSIS_UART_INSTANCE (Driver_USART2)
#define CMSIS_UART_IRQ (USART2_IRQn)

#endif
Loading

0 comments on commit c30aea6

Please sign in to comment.