[Cortex] Correct operator precedence in BitBand address computation

This commit is contained in:
BuFran 2013-07-22 18:29:24 +02:00 committed by Piotr Esden-Tempski
parent e19270b3bf
commit 7a78c7e535

View File

@ -54,10 +54,10 @@
/* Generic bit-band I/O accessor functions */
#define BBIO_SRAM(addr, bit) \
MMIO8(((addr) & 0x0FFFFF) * 32 | 0x22000000 + (bit) * 4)
MMIO8(((addr) & 0x0FFFFF) * 32 + 0x22000000 + (bit) * 4)
#define BBIO_PERIPH(addr, bit) \
MMIO8(((addr) & 0x0FFFFF) * 32 | 0x42000000 + (bit) * 4)
MMIO8(((addr) & 0x0FFFFF) * 32 + 0x42000000 + (bit) * 4)
/* Generic bit definition */
#define BIT0 (1<<0)