• __attribute__((bitband)) address miscalculation?
    Hello, I'm using Keil MDK 3.80a on STM32 and trying to use the bitband attribute to access individual bits in a 32bit register. typedef struct { uint32_t a0: 1; uint32_t b0: 1; uint32_t c0...
  • Fast bitband access Cortex M3
    Hi every one ! I normal use macro : #define x_bit(var,bit) *(__IO uint32_t *)(SRAM_BB_BASE|(((uint32_t)&(var)-SRAM_BASE)<< 5)| ((bit) << 2)) to calculate address of bit in variable.I'm using STM32f103...
  • --bitband compiler switch fails (very strange!!!)
    Look at this (Controller: STM32F407I, uVision 4.23, Armcc 4.1.0.894): struct __attribute__((bitband)){ unsigned int Bit1:1; unsigned int Bit2:1; }Bits __attribute__((at(0x20000100))); int main...
  • Check that command line options are present (--bitband)
    Is it possible to generate a compile error, when a special command line option is NOT defined? (e. g. I would create an error, if somebody tries to compile my ARM Cortex M4 code without the setting ...
  • Bitband: Macro to get bit number from bit mask???
    Hi, another crazy wish: Anybody possibly has an idea how to get the bit number from the predefined bitmask? STM32F4xx.h has very nicely predefined all bitmasks for the peripheral bits, e. g...