I get the following error:
Illegal types for operands: 'unary *'
From the following C code:
unsigned int Add(unsigned int Aoperand, unsigned int Asize)
{
SET_PKA_PKCP_REG_A(Aoperand, Asize); //error points here
}
where:
#define PKA_CONTROL_REG_ADDR 0x01006000
#define PKA_PKCP_FUNCTION_REG_ADDRESS ((unsigned int)(PKA_CONTROL_REG_ADDR + 0x8C))
#define PKA_PKCP_REG_A_ADDRESS ((volatile unsigned int)(PKA_CONTROL_REG_ADDR + 0x80))
#define PKA_RAM_ADDR 0x01004000
#define PKA_RAM_BYTE_OFFSET(v_addr) ((UINT32)(v_addr) - PKA_RAM_ADDR)
#define SET_PKA_PKCP_REG_A(v_addr, dw_len) *PKA_PKCP_REG_A_ADDRESS = ( ((dw_len) << 16) | PKA_RAM_BYTE_OFFSET(v_addr) )
(I think I included all necessary parts, but if anyone sees that I'm missing something, please respond so.)
Illegal types for operands: 'unary *'
From the following C code:
unsigned int Add(unsigned int Aoperand, unsigned int Asize)
{
SET_PKA_PKCP_REG_A(Aoperand, Asize); //error points here
}
where:
#define PKA_CONTROL_REG_ADDR 0x01006000
#define PKA_PKCP_FUNCTION_REG_ADDRESS ((unsigned int)(PKA_CONTROL_REG_ADDR + 0x8C))
#define PKA_PKCP_REG_A_ADDRESS ((volatile unsigned int)(PKA_CONTROL_REG_ADDR + 0x80))
#define PKA_RAM_ADDR 0x01004000
#define PKA_RAM_BYTE_OFFSET(v_addr) ((UINT32)(v_addr) - PKA_RAM_ADDR)
#define SET_PKA_PKCP_REG_A(v_addr, dw_len) *PKA_PKCP_REG_A_ADDRESS = ( ((dw_len) << 16) | PKA_RAM_BYTE_OFFSET(v_addr) )
(I think I included all necessary parts, but if anyone sees that I'm missing something, please respond so.)