On Mon, 2012-07-23 at 16:36 +0200, roelof 't Hooft wrote:
> extern.c :
> 
> volatile __xdata struct _message *message;
> volatile __xdata uint8_t memoryspace[16 + 4];
> 
> uint16_t externe_init(uint8_t databyte)
> {
>       message = _cast_message &memoryspace[0];
>       ...;
>       message->address = databyte;
>       message->buffer[10] = 0x96;
>       ...;
>       return (uint16_t)&message->address;
> }

I changed the return value from externe_init() to void
because it is not needed due to the external declaration
of the message pointer.

roelof



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to