Hi,
I am a little confused by the following example:
portCHAR myaddress = 0xFF; ReadRegister(myaddress); void ReadRegister(portSHORT address);
The compiler isn't giving me a warning for using a portCHAR(8 bit) as a parameter when portSHORT(16 bit) is used. But even though I expected the compiler to do "something" and assign
0x00FF to address, this was not the case. Inside the function ReadRegister "address" is 0x??FF with ?? being something undeterministic. It is not "auto-casting" to 0x00FF. I am fine with this functionality ... but I don't get it why there is no compiler warning. Any ideas?thanks in advance
Juergen
I am using cpu: MSP430xF1611 gcc: msp430-gcc 3.3.6 gdb: msp430-gdb 5.1.1 OS: linux embedded OS: freeRTOS