From owner-freebsd-arm@FreeBSD.ORG Mon May 25 22:14:13 2015 Return-Path: Delivered-To: freeBSD-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 24DDB999 for ; Mon, 25 May 2015 22:14:13 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-yh0-x232.google.com (mail-yh0-x232.google.com [IPv6:2607:f8b0:4002:c01::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D8A48CE0 for ; Mon, 25 May 2015 22:14:12 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: by yhda23 with SMTP id a23so25721885yhd.2 for ; Mon, 25 May 2015 15:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=d3cOZf/LuTOS7k/FFbzsm0VXaNfFlLg1fSJRUyT1YHQ=; b=rpP54L6fW9SRPzhwncL+A+0Mw4mQ/4uumNU7IqjRbuOhkRYkGrxdSAh0LitkCh4824 aEp8JjuCR1xwf10DMXMhOC2E3S4PzWDEhOaYnpGtV0PB3W5+jb0cB8u3qL+C5pvppDBm RETwNl3iCEww/hCj8lQzBrK40Ra73P/do3h62Ouqoa//1HXRgt8LPmwLL28s0Dv64MNZ tFqIQ9P2ncCL7mCc5Dl+gom45A0EFhrjPxj0TvKS6rL2nKccSooefvrF6bgnbibOfbnV 2MvuS+VdCDYGuwNG7KPECK+QVANP+LGyNs7HMy0siSBbl/WIOSZzXyKXgpuYpAoYTp3M ShCA== MIME-Version: 1.0 X-Received: by 10.170.208.82 with SMTP id z79mr5936478yke.106.1432592051982; Mon, 25 May 2015 15:14:11 -0700 (PDT) Received: by 10.13.202.197 with HTTP; Mon, 25 May 2015 15:14:11 -0700 (PDT) In-Reply-To: <1FD1336E-D99F-4114-AD33-FBA1DF844E93@cs.huji.ac.il> References: <1FD1336E-D99F-4114-AD33-FBA1DF844E93@cs.huji.ac.il> Date: Mon, 25 May 2015 19:14:11 -0300 Message-ID: Subject: Re: pwm for raspberry pi? From: Luiz Otavio O Souza To: Daniel Braniss Cc: freebsd-arm Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 May 2015 22:14:13 -0000 On 25 May 2015 at 07:52, Daniel Braniss wrote: > Hi, > Now that I=E2=80=99m rapping up my spi/rfid driver (available on demand := -), > I would like to use the pwm interface to power on/off a lock, but > have no idea how to go around it, so any clues would be mostly welcomed. > > cheers, > danny The PWM module is quite simple and has only two outputs, they can be used only with recent 40 GPIO pins header (RPi-B+ or RPi2), in the older models only one output was wired. The bcm2835 peripherals datasheet describes the PWM module registers. Luiz