Re: [PATCH] bccmd - add ability to read ADC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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.

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux