On Mon, Aug 6, 2018 at 11:01 AM, Steffen Görtz <cont...@steffen-goertz.de> wrote: > This adds a model of the nRF51 GPIO peripheral. > > Reference Manual: http://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.pdf > > The nRF51 series microcontrollers support up to 32 GPIO pins in various > configurations. > The pins can be used as input pins with pull-ups or pull-down. > Furthermore, three different output driver modes per level are > available (disconnected, standard, high-current). > > The GPIO-Peripheral has a mechanism for detecting level changes which is > not featured in this model. > > Signed-off-by: Steffen Görtz <cont...@steffen-goertz.de> > --- > Makefile.objs | 1 + > hw/gpio/Makefile.objs | 1 + > hw/gpio/nrf51_gpio.c | 305 +++++++++++++++++++++++++++++++++++ > hw/gpio/trace-events | 7 + > include/hw/gpio/nrf51_gpio.h | 57 +++++++ > 5 files changed, 371 insertions(+) > create mode 100644 hw/gpio/nrf51_gpio.c > create mode 100644 hw/gpio/trace-events > create mode 100644 include/hw/gpio/nrf51_gpio.h
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>