summaryrefslogtreecommitdiffstats
path: root/usr.sbin/gpioctl
Commit message (Collapse)AuthorAgeFilesLines
* Fix a crash in gpioctl, the flags list must be null terminated.Luiz Souza2017-07-201-0/+1
| | | | (cherry picked from commit 9b57f5336c3e809f8f29d5ba2a8652619cdd18d0)
* Add initial GPIO PWM support.Luiz Souza2017-07-201-12/+54
| | | | (cherry picked from commit a70ecde4228d0d6f81b0eb8117e102d01a9a36eb)
* MFC r314659,r314676:ngie2017-05-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | r314659: usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible This simplifies make logic/output r314676: Fix build after r314656 Some of the changes I introduced to use .ALLSRC were correct in spirit, but incorrect in reality -- in particular, ../Makefile.inc hadn't been pulled in via bsd.init.mk (via bsd.lib.mk, bsd.prog.mk), so the value of .ALLSRC (evaluated immediately) was empty. .include bsd.init.mk explicitly so we can be certain that the values used as dependencies in the targets are defined when the target recipe has been evaluated. Reminder: thou shalt separate out separate functional changes before committing them. (YUGE) Pointyhat to: ngie In collaboration with: bdrewery
* Fix gcc warnings about possibly uninitialized variables in gpioctl.c.dim2016-03-121-2/+1
| | | | Noticed by: bz
* Make it possible for operations to refer to GPIO pins by namegonzo2016-03-112-42/+127
| | | | | | | | | | - Try to guess what is provided as a pin spec for -t or for get/set operation: number or name. Fails in case of ambiguity. - Add -p and -N switches to force pin specification interpretation: -p forces spec to be pin number, -N forces it to be name Submitted by: Emmanuel Vadot <manu@bidouilliste.com> Differential Revision: https://reviews.freebsd.org/D5201
* Add META_MODE support.sjg2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-274-74/+89
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-191-2/+1
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Merge headsjg2014-04-281-1/+3
| |\ \
| * \ \ Merge head@256284sjg2013-10-132-10/+16
| |\ \ \
| * | | | Updated dependenciessjg2013-03-111-0/+1
| | | | |
| * | | | Updated dependenciessjg2013-02-161-2/+0
| | | | |
| | | | |
| | \ \ \
| *-. \ \ \ Sync from headsjg2012-11-041-1/+1
| |\ \ \ \ \
| * | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| | |/ / / / | |/| | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | Put the new sentence on a new line.loos2015-03-081-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | Found with igor.
* | | | | | Add a new ioctl to allow the setting of GPIO pin names.loos2015-03-082-7/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a gpiobus child is added, use its name to identify the mapped pin names. Make the respective changes to libgpio. Add a new '-n' flag to gpioctl(8) to set the pin name. Differential Revision: https://reviews.freebsd.org/D2002 Reviewed by: rpaulo Requested by: many
* | | | | | Free the buffer returned by gpio_pin_list() after the use.loos2014-12-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: Coverity Scan CID: 1257468
* | | | | | mdoc: sort SEE ALSO.joel2014-12-261-2/+2
| | | | | |
* | | | | | Switch gpioctl(8) to LIBADD.rpaulo2014-12-031-2/+1
| | | | | |
* | | | | | gpioctl: don't print the command line arguments.rpaulo2014-12-021-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 195330 Submitted by: Scott Ellis jumpnowtek at gmail.com MFC after: 3 days
* | | | | | Rewrite parts of gpioctl(8) to use the gpio(3) library.rpaulo2014-12-022-61/+50
| |_|_|_|/ |/| | | |
* | | | | use .Mt to mark up email addresses consistently (part2)bapt2014-06-201-2/+1
| |_|_|/ |/| | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* | | | Adds gpioiic.4 and gpioled.4 man pages. Moves some of the information thatloos2013-11-121-1/+3
| |_|/ |/| | | | | | | | | | | | | | | | | was previously available on gpio.4 to their respectives pages. Add the cross references on gpioctl.8. Approved by: adrian (mentor)
* | | Assume that the -f argument is /dev/gpioc0 if it is not passed.sbruno2013-09-172-9/+13
| | | | | | | | | | | | | | | | | | | | | | | | hrs@ provided this verison of the patch and showed me where all the needed changes were to be made outside of gpioctl.c Approved by: re (hrs) MFC after: 2 weeks
* | | Add gpio(4) man page to attempt to document the current hints based setup ofsbruno2013-09-131-1/+3
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | pin outputs, functions and setup. Add cross reference in gpioctl(8) for people to find. This is by no means complete and really only covers gpioled(4) and the Atheros based systems who expose a few extra hints at boot time. This should be updated by developers who know more about this system than I and viewed as the beginning of documentation, not the end. Reviewed by: adrian Approved by: re (joel) MFC after: 2 weeks
* | More -Wmissing-variable-declarations fixes.ed2012-10-191-1/+1
|/ | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
* Remove trailing whitespace per mdoc lint warningeadler2012-03-291-5/+5
| | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
* Bump the date of the man page to the date of the actual commit.bcr2011-05-251-1/+1
| | | | Noticed by: brix
* Document the device name change from gpioctl to gpioc in thebcr2011-05-251-5/+5
| | | | | | | | man page. PR: docs/157075 Submitted by: brix Reviewed by: gonzo
* Remove the advertising clause from UCB copyrighted files in usr.sbin. Thisjoel2010-12-111-4/+0
| | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
* mdoc: drop even more redundant .Pp callsuqs2010-10-191-1/+0
| | | | | | No change in rendered output, less mandoc lint warnings. Tool provided by: Nobuyuki Koganemaru n-kogane at syd.odn.ne.jp
* Add gpioctl(8). Utility for configuring/accessing GPIO pinsgonzo2010-09-283-0/+453
OpenPOWER on IntegriCloud