stm32f4xx_exti.c (d328fef93ae757a0dd65ed786a4086e27952eef3) stm32f4xx_exti.c (e3d0814368d00e7985c31edf5d0cfce45972d4be)
1/*
2 * STM32F4XX EXTI
3 *
4 * Copyright (c) 2014 Alistair Francis <alistair@alistair23.me>
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 154 unchanged lines hidden (view full) ---

163 VMSTATE_END_OF_LIST()
164 }
165};
166
167static void stm32f4xx_exti_class_init(ObjectClass *klass, void *data)
168{
169 DeviceClass *dc = DEVICE_CLASS(klass);
170
1/*
2 * STM32F4XX EXTI
3 *
4 * Copyright (c) 2014 Alistair Francis <alistair@alistair23.me>
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 154 unchanged lines hidden (view full) ---

163 VMSTATE_END_OF_LIST()
164 }
165};
166
167static void stm32f4xx_exti_class_init(ObjectClass *klass, void *data)
168{
169 DeviceClass *dc = DEVICE_CLASS(klass);
170
171 dc->reset = stm32f4xx_exti_reset;
171 device_class_set_legacy_reset(dc, stm32f4xx_exti_reset);
172 dc->vmsd = &vmstate_stm32f4xx_exti;
173}
174
175static const TypeInfo stm32f4xx_exti_info = {
176 .name = TYPE_STM32F4XX_EXTI,
177 .parent = TYPE_SYS_BUS_DEVICE,
178 .instance_size = sizeof(STM32F4xxExtiState),
179 .instance_init = stm32f4xx_exti_init,
180 .class_init = stm32f4xx_exti_class_init,
181};
182
183static void stm32f4xx_exti_register_types(void)
184{
185 type_register_static(&stm32f4xx_exti_info);
186}
187
188type_init(stm32f4xx_exti_register_types)
172 dc->vmsd = &vmstate_stm32f4xx_exti;
173}
174
175static const TypeInfo stm32f4xx_exti_info = {
176 .name = TYPE_STM32F4XX_EXTI,
177 .parent = TYPE_SYS_BUS_DEVICE,
178 .instance_size = sizeof(STM32F4xxExtiState),
179 .instance_init = stm32f4xx_exti_init,
180 .class_init = stm32f4xx_exti_class_init,
181};
182
183static void stm32f4xx_exti_register_types(void)
184{
185 type_register_static(&stm32f4xx_exti_info);
186}
187
188type_init(stm32f4xx_exti_register_types)