<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I just committed a change to all vehicle modules, to change the api for the poll0() and poll1() functions.<div><br></div><div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><font face="Andale Mono">1aaa0a3 Move can bus low level register access to vehicle.c, out of individual vehicle modules</font></div></blockquote></div><div><br></div><div>The new API sets up:</div><div><br></div><div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><font face="Andale Mono">unsigned int can_id; // ID of can message</font></div><div><font face="Andale Mono">unsigned char can_filter; // CAN filter</font></div><div><font face="Andale Mono">unsigned char can_datalength; // The number of valid bytes in the can_databuffer</font></div><div><font face="Andale Mono">unsigned char can_databuffer[8]; // CAN message bytes</font></div></div></blockquote></div><div><br></div><div>prior to the calls to poll0() and poll1(). So, the individual vehicle modules no longer need to (and no longer are able to) access the low-level CAN bus registers in any way.</div><div><br></div><div>I tried to move all the vehicle modules to the new mechanism, but there seemed to be significant differences in the way each module did things. Hopefully the work I did was ok and hasn’t broken anything, but please check your respective modules to make sure they still work.</div><div><br></div><div>Overall, we’ve saved about 500-to-600 bytes of flash doing this.</div><div><br></div><div>I’ve labelled this 2.6.1, as it has the capacity to break things.</div><div><br></div><div>Regards, Mark.</div><div><br></div></body></html>