From owner-freebsd-arm@FreeBSD.ORG Thu Aug 21 04:48:59 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 66426ABA for ; Thu, 21 Aug 2014 04:48:59 +0000 (UTC) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 035F633DD for ; Thu, 21 Aug 2014 04:48:58 +0000 (UTC) Received: by mail-wi0-f171.google.com with SMTP id hi2so8071948wib.10 for ; Wed, 20 Aug 2014 21:48:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=HkAH2wv/awPEJSwUrQJld8r+Pt/KOMiJ6AoeOx2jEqo=; b=EA79ruz/xJqKiTfWCl4MNSqR1rRjVIXNBmiH1jnqr51sCR3JXq+ZI8hLmGO2D7eMvf aIhpzlKpPpx+xakK/DNfHUhC2orN541E+k/JmqWHxRIK1gUWgEbPwJ43ULq449mO3LW+ IYYmQmXfSsBzCZT2l2eFGRZhJCB37hY+b/dZiHVatuU2EuQkGLxNA1pXiBQAo0JCi/sn XKewhCQuJMoIT9Z+JN6UWQvYpXd2gju/l1usV+fftNaxWc82y8nwukwVvJoVUfp4CmQF Nurg364r/TzW978pd74Fb61ejLIcZtMwnN2Dx1HoanFToDyUo7Ep2GvlRR2URpcC6ek7 vZeA== MIME-Version: 1.0 X-Received: by 10.180.104.42 with SMTP id gb10mr20087132wib.65.1408596536613; Wed, 20 Aug 2014 21:48:56 -0700 (PDT) Received: by 10.217.125.66 with HTTP; Wed, 20 Aug 2014 21:48:56 -0700 (PDT) Date: Thu, 21 Aug 2014 01:48:56 -0300 Message-ID: Subject: HC-SR04 and FreeBSD From: Evandro Nunes To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2014 04:48:59 -0000 hello, ive got a ultrasonic sensor model HC-SR04 and a beaglebone black as well as a cubieboard2, both running FreeBSD 11 built from crochet and wiki instructions thanks to the help from loos@ I could manage to use a 5v relay with BBB now, how can I read data from HC-SR04 sensor? do we have any library available? or do we have any GPIO utility to do that? btw how can I read values from GPIO pins when they are set to input? thank you all in advance