Use BIT macro
Mostly done with the cocci script. macro.h was then added manually.
This commit is contained in:
committed by
Jeremy Soller
parent
9a3ecba010
commit
720af4b2b0
@@ -43,7 +43,7 @@ void gpio_init() {
|
||||
// Enable LPC reset on GPD2
|
||||
GCR = 0x04;
|
||||
// Enable SMBus channel 4
|
||||
GCR15 = (1 << 4);
|
||||
GCR15 = BIT(4);
|
||||
// Set GPF2 and GPF3 to 3.3V
|
||||
GCR20 = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user