synthetos / Motate

A high-performance multi-architecture bare-metal embedded framework that is easy to learn and easy to use.
49 stars 38 forks source link

sams70-port: Cleanup ServiceCall code #12

Closed giseburt closed 4 years ago

giseburt commented 4 years ago

Three parts:

  1. Change MotateServiceCall.h from #ifdefs for various processors to have common code with an #include <ProcessorServiceCall.h> in the middle
  2. Motate::ServiceCall is no longer a templated class, the single template parameter is no longer needed
  3. Update Motate::SPIBus and Motate::TWIBus (both classes that use Motate::ServiceCall) to no longer take a service call number parameter

Note that this changes the signatures of Motate::SPIBus and Motate::TWIBus!!