mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-27 15:31:32 +02:00
Be more careful with "volatile". It still worked, but was not a good example.
- bbl/bbl.c (REG): the cast took the volatile away
This commit is contained in:
parent
1f509de5ad
commit
979a631ef5
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#define GPIO_BASE 0x10010000
|
#define GPIO_BASE 0x10010000
|
||||||
|
|
||||||
#define REG(n) (*(uint32_t *) (mem+(n)-GPIO_BASE))
|
#define REG(n) (*(volatile uint32_t *) (mem+(n)-GPIO_BASE))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The XBurst CPUs use an interesting concept for setting GPIOs: instead of
|
* The XBurst CPUs use an interesting concept for setting GPIOs: instead of
|
||||||
|
Loading…
Reference in New Issue
Block a user