1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-12-24 05:19:55 +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:
Werner Almesberger 2010-09-02 03:09:16 -03:00
parent 1f509de5ad
commit 979a631ef5

View File

@ -21,7 +21,7 @@
#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