»
(007) GPIO Usage Steps
(008) CubeIDE Implementation of USB Peripherals*
(018) C99 pointer*
(019) C99 With only value assignment*
(022) POSIX pthread multi-threads mutex*
(023) POSIX pthread multi-threads programming*
(027) C99 time and wait*
(028) High-precision calculation with GMP*
(029) Web Service Lib*
(030) International Components for Unicode (ICU)*
(031) Performance of C is higher than C++, because...*
这是非CubeIDE生成的使用GPIO的代码例子,总结自ChatGPT:
1. 使能外设时钟:
RCC_APB2PeriphClockCmd();
2. 初始化GPIO簇以及管脚Pins:
GPIO_Init();
3. 设置管脚的高低电平:
GPIO_SetBit();
GPIO_ResetBit();
ARM开发中的一些常用词汇:
CR 配置寄存器 Configure Register
SR 状态寄存器 Status Register
GPIO 通用型输入输出 General-purpose input/output
APB2 外围设备总线,STM32的标准总线 Advanced Peripheral Bus
PWR 指示灯:电源指示灯 Power
PWM 脉宽调制 Pulse Width Modulation
————www.v-signon.com学习者共勉