Re: [Qemu-devel] [PATCH v3 3/7] STM32F2xx: Add the ADC device

2016-02-21 Thread Alistair Francis
On Tue, Feb 2, 2016 at 7:17 AM, Peter Maydell wrote: > On 19 January 2016 at 07:23, Alistair Francis wrote: >> Add the STM32F2xx ADC device. This device randomly >> generates values on each read. >> >> This also includes creating a hw/adc directory. >> >> Signed-off-by: Alistair Francis > >> +st

Re: [Qemu-devel] [PATCH v3 3/7] STM32F2xx: Add the ADC device

2016-02-02 Thread Peter Maydell
On 19 January 2016 at 07:23, Alistair Francis wrote: > Add the STM32F2xx ADC device. This device randomly > generates values on each read. > > This also includes creating a hw/adc directory. > > Signed-off-by: Alistair Francis > +static uint32_t stm32f2xx_adc_generate_value(STM32F2XXADCState *s)

[Qemu-devel] [PATCH v3 3/7] STM32F2xx: Add the ADC device

2016-01-18 Thread Alistair Francis
Add the STM32F2xx ADC device. This device randomly generates values on each read. This also includes creating a hw/adc directory. Signed-off-by: Alistair Francis --- V2: - Address Peter C's comments - Create a ADC folder and move the file in there - Move some of the registers into arrays de