• global variables not initializing to declared values
    Maybe I have some setting wrong in my project. At the beginning of my main source file, I include a header that declares several variables as externs. Then I declare and initialize them after the #include...
  • global variables not initializing to declared values
    Maybe I have some setting wrong in my project. At the beginning of my main source file, I include a header that declares several variables as externs. Then I declare and initialize them after the #include...
  • Warning when declaring variable: 'Variable not used'
    I'm trying to initialize I2C peripherals on my STM32 Discovery board and this is the function I've created to do so - void I2C2_Initialize(void) { NVIC_InitTypeDef NVIC_InitStructure; I2C_InitTypeDef...
  • Warning when declaring variable: 'Variable not used'
    I'm trying to initialize I2C peripherals on my STM32 Discovery board and this is the function I've created to do so - void I2C2_Initialize(void) { NVIC_InitTypeDef NVIC_InitStructure; I2C_InitTypeDef...
  • Declaration of global variables in one header file
    Hello everyone, I'm trying to split the C source code of one file into nearly 10 different. It does not work properly due to global variables declared in one header file but used in more than one C...