Matt Rhys-Roberts wrote: > I'm declaring a couple of SPI function prototypes, see below. Not > wishing to waste too much time testing awkward things, shouldn't the > common variables (sync_mode, bus_mode etc.) be specified more uniquely > for each SPI channel? Function arguments in C are treated exactly the same, including the scoping rules, as automatic (local) variables within the function. So, it's perfectly fine to reuse the same argument names in different functions. -- Dave Tweed -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist