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:
parent
c42ccfff38
commit
a8ab755f31
10
simulator.h
10
simulator.h
|
|
@ -177,6 +177,16 @@ uint16_t sim_tick_counter(void);
|
||||||
uint64_t sim_runtime_ns(void); ///< Simulated run-time in nanoseconds
|
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
|
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"
|
#define DIO0_PIN "proof of life"
|
||||||
|
|
||||||
#endif /* _SIMULATOR_H */
|
#endif /* _SIMULATOR_H */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue