similarity index 92%
rename from include/hw/timer/avr_timer16.h
rename to include/hw/timer/atmel_timer16.h
@@ -1,5 +1,5 @@
/*
- * AVR 16 bit timer
+ * Atmel AVR 16 bit timer
*
* Copyright (c) 2018 University of Kent
* Author: Ed Robbins
@@ -25,8 +25,8 @@
* On ATmega640/V-1280/V-1281/V-2560/V-2561/V timers 1, 3, 4 and 5 are 16 bit
*/
-#ifndef AVR_TIMER16_H
-#define AVR_TIMER16_H
+#ifndef HW_TIMER_ATMEL_TIMER16_H
+#define HW_TIMER_ATMEL_TIMER16_H
#include "hw/sysbus.h"
#include "qemu/timer.h"
@@ -40,7 +40,7 @@ enum NextInterrupt {
CAPT
};
-#define TYPE_AVR_TIMER16 "avr-timer16"
+#define TYPE_AVR_TIMER16 "atmel-timer16"
#define AVR_TIMER16(obj) \
OBJECT_CHECK(AVRTimer16State, (obj), TYPE_AVR_TIMER16)
@@ -91,4 +91,4 @@ typedef struct AVRTimer16State {
enum NextInterrupt next_interrupt;
} AVRTimer16State;
-#endif /* AVR_TIMER16_H */
+#endif /* HW_TIMER_ATMEL_TIMER16_H */
@@ -45,7 +45,7 @@
#include "exec/address-spaces.h"
#include "include/hw/sysbus.h"
#include "include/hw/char/atmel_usart.h"
-#include "include/hw/timer/avr_timer16.h"
+#include "include/hw/timer/atmel_timer16.h"
#include "include/hw/misc/avr_mask.h"
#include "elf.h"
#include "hw/misc/unimp.h"
similarity index 99%
rename from hw/timer/avr_timer16.c
rename to hw/timer/atmel_timer16.c
@@ -1,5 +1,5 @@
/*
- * AVR 16 bit timer
+ * Atmel AVR 16 bit timer
*
* Copyright (c) 2018 University of Kent
* Author: Ed Robbins
@@ -32,7 +32,7 @@
*/
#include "qemu/osdep.h"
-#include "hw/timer/avr_timer16.h"
+#include "hw/timer/atmel_timer16.h"
#include "qemu/log.h"
#include "hw/irq.h"
#include "hw/qdev-properties.h"
@@ -898,8 +898,8 @@ S: Maintained
F: hw/avr/
F: hw/char/atmel_usart.c
F: include/hw/char/atmel_usart.h
-F: hw/timer/avr_timer16.c
-F: include/hw/timer/avr_timer16.h
+F: hw/timer/atmel_timer16.c
+F: include/hw/timer/atmel_timer16.h
F: hw/misc/avr_mask.c
F: include/hw/misc/avr_mask.h
F: tests/acceptance/machine_avr6.py
@@ -1,6 +1,6 @@
config AVR_SAMPLE
bool
- select AVR_TIMER16
+ select ATMEL_TIMER16
select ATMEL_USART
select AVR_MASK
select UNIMP
@@ -36,5 +36,5 @@ config CMSDK_APB_DUALTIMER
bool
select PTIMER
-config AVR_TIMER16
+config ATMEL_TIMER16
bool
@@ -36,4 +36,4 @@ common-obj-$(CONFIG_CMSDK_APB_DUALTIMER) += cmsdk-apb-dualtimer.o
common-obj-$(CONFIG_MSF2) += mss-timer.o
common-obj-$(CONFIG_RASPI) += bcm2835_systmr.o
-obj-$(CONFIG_AVR_TIMER16) += avr_timer16.o
+obj-$(CONFIG_ATMEL_TIMER16) += atmel_timer16.o
AVR is the architecture, Atmel the manufacturer. Suggested-by: Aleksandar Markovic <aleksandar.m.mail@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> --- !squash --- include/hw/timer/{avr_timer16.h => atmel_timer16.h} | 10 +++++----- hw/avr/sample.c | 2 +- hw/timer/{avr_timer16.c => atmel_timer16.c} | 4 ++-- MAINTAINERS | 4 ++-- hw/avr/Kconfig | 2 +- hw/timer/Kconfig | 2 +- hw/timer/Makefile.objs | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) rename include/hw/timer/{avr_timer16.h => atmel_timer16.h} (92%) rename hw/timer/{avr_timer16.c => atmel_timer16.c} (99%)