mbox series

[0/5] hw/avr: Start using the Clock API

Message ID 20200814163924.11662-1-f4bug@amsat.org
Headers show
Series hw/avr: Start using the Clock API | expand

Message

Philippe Mathieu-Daudé Aug. 14, 2020, 4:39 p.m. UTC
In this series we slowly start to use the recently added
Clock API in the AVR ATmega MCU.

As the Clock Control Unit is not yet modelled, we simply
connect the XTAL sink to the UART and Timer sources.

Philippe Mathieu-Daudé (5):
  hw/avr/atmega: Introduce the I/O clock
  hw/timer/avr_timer16: Use the Clock API
  hw/char/avr_usart: Restrict register definitions to source
  hw/char/avr_usart: Use the Clock API
  hw/char/avr_usart: Trace baudrate changes

 hw/avr/atmega.h                |  2 ++
 include/hw/char/avr_usart.h    | 32 ++---------------------
 include/hw/timer/avr_timer16.h |  3 ++-
 hw/avr/atmega.c                |  8 ++++--
 hw/char/avr_usart.c            | 46 ++++++++++++++++++++++++++++++++++
 hw/timer/avr_timer16.c         | 12 +++------
 hw/char/trace-events           |  3 +++
 7 files changed, 65 insertions(+), 41 deletions(-)