I am working on raspberry pi.and writing code for Keypad in linux. I have defined a macro
#define ALL_COL_HIGH ((GPIO_SET(COL1) | GOIO_SET(COL2) | GPIO_SET(COL3) | GPIO__SET(COL4)))
Whenever i am using ALL_COL_HIGH
getting error: lvalue required as left operand of assignment, and set function definition is
#define GPIO_SET(g) *(gpio.addr + 7) |= (1<<(g))