simulator.h: provide a minimalistic SPI fake.

This mostly means: there is no SPI simulator, so don't build
support for it. This was found by running the new regression tests.
This commit is contained in:
Markus Hitter 2015-07-13 13:53:35 +02:00
parent c42ccfff38
commit a8ab755f31
1 changed files with 10 additions and 0 deletions

View File

@ -177,6 +177,16 @@ uint16_t sim_tick_counter(void);
uint64_t sim_runtime_ns(void); ///< Simulated run-time in nanoseconds
void sim_time_warp(void); ///< skip ahead to next timer interrupt, when time_scale==0
/** SPI subsystem.
So far there isn't really one. Disable SD and fake the remaining
neccessary bits.
*/
#undef SD_CARD_SELECT_PIN
#undef SD
#define loop_until_bit_is_set(SPSR, SPIF)
uint8_t SPCR, SPDR, SPSR;
#define DIO0_PIN "proof of life"
#endif /* _SIMULATOR_H */