Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 402 Bytes

stm32.md

File metadata and controls

30 lines (20 loc) · 402 Bytes

보드


Nucleo-F103RB

  • 클럭: 64MHz
  • 사용 핀
    • PB10: UART3 / TX
    • PB11: UART3 / RX

코드


main() -> while 전 USER CODE

MX_USART3_UART_Init();

while문

HAL_UART_Receive(&huart3, &data_sign, sizeof(data_sign), 1000);
HAL_UART_Transmit(&huart2, "hello", sizeof("hello"), 1000);
HAL_UART_Transmit(&huart2, data_sign, sizeof(data_sign), 1000);