Searched +full:pwm +full:- +full:trigger (Results 1 – 3 of 3) sorted by relevance
15 #include "hw/qdev-clock.h"16 #include "hw/timer/stellaris-gptm.h"21 level = (s->state & s->mask) != 0; in gptm_update_irq()22 qemu_set_irq(s->irq, level); in gptm_update_irq()27 timer_del(s->timer[n]); in gptm_stop()36 tick = s->tick[n]; in gptm_reload()39 if (s->config == 0) { in gptm_reload()40 /* 32-bit CountDown. */ in gptm_reload()42 count = s->load[0] | (s->load[1] << 16); in gptm_reload()43 tick += clock_ticks_to_ns(s->clk, count); in gptm_reload()[all …]
2 * AVR 16-bit timer19 * <http://www.gnu.org/licenses/lgpl-2.1.html>25 * ATmega640/V-1280/V-1281/V-2560/V-2561/V timers 1, 3, 4 and 5 are 16 bit31 * PWM modes, GPIO, output capture pins, input compare pin38 #include "hw/qdev-properties.h"91 /* Timer mode values (not including PWM modes) */97 #define CLKSRC(t16) (t16->crb & T16_CRB_CS)98 #define MODE(t16) (((t16->crb & T16_CRB_WGM23) >> 1) | \99 (t16->cra & T16_CRA_WGM01))100 #define CNT(t16) VAL16(t16->cntl, t16->cnth)[all …]
4 * Copyright (c) 2011-2018 Laurent Vivier5 * Copyright (c) 2018 Mark Cave-Ayland9 * Copyright (c) 2004-2007 Fabrice Bellard12 * some parts from linux-2.6.29, arch/m68k/include/asm/mac_via.h15 * See the COPYING file in the top-level directory.19 #include "system/address-spaces.h"30 #include "hw/qdev-properties.h"31 #include "hw/qdev-properties-system.h"32 #include "system/block-backend.h"77 * state-control line SEL" on all but IIfx[all …]