User Activity

STM32F103C(Bluepill) Tx:#include "stm32f103x6.h"#define USART2CLKEN (0x01UL << 17U)#define SYS_FREQ 72000000#define APB1_CLK 36000000#define UART_BAUDRATE 9600void uart2_write(int ch);void uart2_tx_init(void);int main(void){ uart2_tx_init(); while(1)...
Code://LED//Pin:C//Pin Num:13#define PERIPH_BASE (0x40000000UL)#define APB2_OFFSET (0x00010000UL)#define APB2BASEADD (PERIPH_BASE + APB2_OFFSET)#define GPIOC_OFFSET (0x1000UL)#define GPIOC_BASE (APB2BASEADD+GPIOC_OFFSET)#define AHB_OFFSET (0x18000UL)...