Integer types u_int32_t and uint32_t
Hello. Why STM32CubeIDE suggesting me to autocomplete u (unsigned type) as a u_int32_t if it doesn't built? However uint32_t works well. What is the difference using u_intXX_t and uintXX_t?
Hello. Why STM32CubeIDE suggesting me to autocomplete u (unsigned type) as a u_int32_t if it doesn't built? However uint32_t works well. What is the difference using u_intXX_t and uintXX_t?
Hello @wickeLine228
The types u_intXX_t and uintXX_t are both used to represent unsigned integers of a specific size. However, uintXX_t is from the C standard library and u_intXX_t is not part of the standard C library, and its definition varies depending on the platform and compiler being used.
The STM32CubeIDE is based on the C standard library, which is why uint32_t works well. The u_int32_t might not be recognized because it's not included in the standard library used by STM32CubeIDE.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.