mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
arm: Instantiate NRF51 general purpose I/O
Instantiates GPIO peripheral model Signed-off-by: Steffen Görtz <contrib@steffen-goertz.de> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20190103091119.9367-7-stefanha@redhat.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
805f61bbb3
commit
bb42c4cb2a
2 changed files with 18 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
|||
#include "hw/arm/armv7m.h"
|
||||
#include "hw/char/nrf51_uart.h"
|
||||
#include "hw/misc/nrf51_rng.h"
|
||||
#include "hw/gpio/nrf51_gpio.h"
|
||||
|
||||
#define TYPE_NRF51_SOC "nrf51-soc"
|
||||
#define NRF51_SOC(obj) \
|
||||
|
@ -28,6 +29,7 @@ typedef struct NRF51State {
|
|||
|
||||
NRF51UARTState uart;
|
||||
NRF51RNGState rng;
|
||||
NRF51GPIOState gpio;
|
||||
|
||||
MemoryRegion iomem;
|
||||
MemoryRegion sram;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue