beckus / stm32_p103_demos

A suite of demo applications for the Olimex STM32 P103 Development Kit
102 stars 59 forks source link

How to emulate a button press in the `button` demo? #8

Closed exebook closed 3 years ago

exebook commented 4 years ago

I can see LED "blinking" but how to emulate a button press?

lcgamboa commented 4 years ago

Take a look at: https://github.com/beckus/qemu_stm32/blob/96ba2f18bab98240f8af0a88010f31dfecf8322a/hw/arm/stm32_f103c8.c#L79

beckus commented 3 years ago

Thank you for the response @lcgamboa.