»
(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...*
🕹️(001)编码规范
Max Name Length: 31
STM32 C Variable Naming Regulations
*v*: void
*c*: int8_t
*w*: int16_t
*i*: int32_t
*l*: int64_t
*f*: float32
*d*: double float, float64
*u*: unsigned
p*: pointer
*s*: structure
Example:
long double *pdTemperature=(long double *)malloc(sizeof(long double));//double float pointer for temperature
Struct Definition Naming Regulations
Struct*
C++ Class Definition Naming Regulations
Class*
C++ Class Variable Naming Regulations
*cls*
【维也纳工业大学(TU Wien)的编码规范(2012年)】
C++ String Variable Naming Regulations
*str*
【匈牙利命名法】
Constant Variable Naming Regulations
k*
【谷歌C++代码编写规范】
Macro Definition Regulations
All uppercase words and underscores
【谷歌C++代码编写规范】
Examples:
typdef struct{
} StructPressedStatus;
typdef class{
} ClassScreen;
StructPressedStatus sPressedStatus;
ClassScreen clsScreen;
std::string strUsername;
std::string strPassword;
Function Naming Regulations
AR_Module_Function()
Example:
void AR_Lcd_Init(){//Alex Rocket Lcd driver Init Function
}