I am working on a project translating some Arduino code of a RFM Hopper Transmissor to C, but there are few concepts that I don't fully understand like the DDRB and DDRD.
For example, I call these two methods:
InputSDIO();
OutputSDIO();
which are declared in another file with these lines:
#define InputSDIO() (DDRB &= (~_SDIO))
#define OutputSDIO() (DDRB |= (_SDIO))
and it gives me the following error
error: expression is not assignable
Furthermore, I also get the same error from this call,
RX_ANTOut();
which is defined in another file with the following line:
#define RX_ANTOut() (DDRD |= (RX_ANT))
As I said, the code comes from an Arduino project of a transmissor. If you need any more info or if my question could be more detailed feel free to ask.