simulator: Rework dummy simulator code to user timer_irq / serial_irq

Change the simulator to use the generic timer_irq.c and serial_irq.c
code for (dummy) timer and io handling.  This is just to make the code
a better example for other developers (most micro-controllers will use
the timer_irq.c and serial_irq.c code).

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2018-07-11 13:46:07 -04:00
parent 00ea4428a3
commit 5294b3cd2d
6 changed files with 165 additions and 109 deletions

View File

@@ -15,4 +15,12 @@ config SIMULATOR_SELECT
select HAVE_GPIO_SPI
select HAVE_GPIO_HARD_PWM
config CLOCK_FREQ
int
default 20000000
config SERIAL_BAUD
int
default 250000
endif