From: simon@mungewell.org
To: linux-bluetooth@vger.kernel.org, "Marcel Holtmann" <marcel@holtmann.org>
Subject: Re: [PATCH] bccmd - add ability to read ADC
Date: Wed, 17 Jun 2015 11:16:21 -0400 [thread overview]
Message-ID: <15a4d3c6ac84009c192c73e3e2e88066.squirrel@mungewell.org> (raw)
In-Reply-To: <20150617124842.GA17715@t440s.P-661HNU-F1>
> And the patch doesn't actually compile:
>
> tools/bccmd.c:1068:2: error: implicit declaration of function âusleepâ
> [-Werror=implicit-function-declaration]
> usleep(50000);
Huh, builds on Xubuntu 14.10...
--
simon@LinuxBuild:~/bluez-git$ make
make --no-print-directory all-am
CC tools/bccmd.o
CCLD tools/bccmd
simon@LinuxBuild:~/bluez-git$ grep ADC tools/bccmd.c
// Request an ADC read from a particular mux'ed input
err = transport_write(transport, CSR_VARID_ADC, array, 2);
err = transport_read(transport, CSR_VARID_ADC_RES, array, 8);
printf("ADC value from Mux 0x%02x : 0x%04x (%s)\n", mux, value,
{ "adc", cmd_adc, "<mux>", "Read ADC value of
<mux> input" },
--
Anyhow, will fix and re-submit. Thanks,
Simon.
prev parent reply other threads:[~2015-06-17 15:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-27 15:32 [Patch] bccmd - add ability to read ADC simon
2015-06-06 5:49 ` Marcel Holtmann
2015-06-08 18:04 ` [PATCH] " Simon Wood
2015-06-17 12:48 ` Johan Hedberg
2015-06-17 15:16 ` simon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15a4d3c6ac84009c192c73e3e2e88066.squirrel@mungewell.org \
--to=simon@mungewell.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.