Bug fix: check if vm exists
[avr-sim.git] / HardwareFactory.h
blob8ea8a3e8a0fff37655186446ba86c4c0fc22dea2
1 #ifndef AVR_HARDWAREFACTORY_H
2 #define AVR_HARDWAREFACTORY_H
4 namespace avr {
6 class Bus;
7 class Hardware;
8 class HardwareSettings;
10 class HardwareFactory {
11 public:
12 static Hardware *build(const char *name,
13 HardwareSettings & hws, Bus & bus);
15 private:
16 static Hardware *buildEeprom(HardwareSettings & hws, Bus & bus);
17 static Hardware *buildPort(HardwareSettings & hws, Bus & bus);
18 static Hardware *buildTimer8(HardwareSettings & hws, Bus & bus);
19 static Hardware *buildTimer16(HardwareSettings & hws, Bus & bus);
20 static Hardware *buildTimerIrq(HardwareSettings & hws, Bus & bus);
25 #endif /*AVR_HARDWAREFACTORY_H*/