I need to clear a bit (PCAP_PR which is bit 27 in the PS Device Configuration Control register DEVCFG CTRL, address 0xF8007000)
I am writing the following code for it
#include <stdio.h>
#include <stdlib.h>
#include "platform.h"
#include "xdevcfg_hw.h"
int main()
{
init_platform();
XDCFG_CTRL_PCAP_PR_MASK &= ~(1<<27);
cleanup_platform();
return 0;
}
This gives me an while in SDK :
lvalue required as left operand of assignmentt
Firstly, is the code correct for achieving the required? If not, how can I correct it?
Also, why do I get this error? (This works fine on gcc)
Thanks