Commit Graph

292 Commits

Author SHA1 Message Date
Deokgyu Yang
79b6474ae3 Merge pull request #29 from hhk7734/master
Fix issue where 'wiringPiISR' can't run without sudo
2020-02-17 18:38:46 +09:00
Hyeonki Hong
d3a9aad442 Fix issue where 'wiringPiISR' can't run without sudo
If using gpio command without sudo after changing group of gpio* from
'root' to 'gpio', the command failed. So, deleted the part using
the command.

https://github.com/hhk7734/oduino/issues/7
2020-02-17 18:24:55 +09:00
Yang Deokgyu
c9cf4971b7 WiringPi: Bump up version to 2.44-6.1
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2020-02-14 11:57:30 +09:00
Yang Deokgyu
ae873a291e WiringPi: Make it does not configure /dev/gpiomem during deb package build
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2020-02-14 11:45:21 +09:00
Yang Deokgyu
089a2ea5ae gpio: Add options for readall command in help text
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
Change-Id: I10a582184e46b15c6387b21ce3bd810a1c90d524
2020-01-02 12:27:17 +09:00
Yang Deokgyu
2363e5811b WiringPi: Ignore case when identifying a board
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
Change-Id: Ia9edd472026f45ad9b9b923f652ca27d43d51f19
2020-01-02 12:21:23 +09:00
Yang Deokgyu
51d37029a1 WiringPi: Bump up version to 2.44-6.0
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
Change-Id: Ic8a3e66f58018b965ecbe893f6d318f0e1c9f9f1
2019-12-24 14:11:06 +09:00
Yang Deokgyu
1d462d6600 debian: libwiringpi2: Remove previous built header files after installing
To make sure avoiding conflicts with legacy files.

Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
Change-Id: I6c2ef994ce0b4c76603c89f76091d7cf8cfdca5e
2019-12-24 14:11:06 +09:00
Yang Deokgyu
868f262b5d build: Clean up build script and do uninstall/clean before install
This because to make sure removing legacy files that could occurs
library conflicts.

Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
Change-Id: Id795969241ba925104d374b99b496c799b9ed1df
2019-12-24 14:11:05 +09:00
Yang Deokgyu
8bea63643a wiringPi/Makefile: Remove legacy files when uninstallation
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
Change-Id: Ic126b5d27b92f265151b29d287e2dcce3fcbc815
2019-12-24 14:10:13 +09:00
Yang Deokgyu
0e022544ef WiringPi: Get model name from Device Tree if not able from cpuinfo
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
Change-Id: I0ca6497da3a9b0123b552fe7c245f08915d69a39
2019-12-24 14:10:12 +09:00
Yang Deokgyu
8ec73fe14e wiringPi: Bump up version to 2.44-5.3
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-10-22 16:57:05 +09:00
Yang Deokgyu
3ffc5831d5 wiringPi: Add a udev rules file for meson-gpiomem for ODROID-C/C2 boards
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-10-22 16:57:05 +09:00
Yang Deokgyu
2515484821 wiringPi: Bump up version to 2.44-5.2
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-10-22 16:57:02 +09:00
Yang Deokgyu
639f1b4312 wiringPi: Fix for parsing /proc/cpuinfo on ODROID-C
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-10-22 15:26:50 +09:00
Yang Deokgyu
e7ff9b5810 wiringPi: Bump up version to 2.44-5.1
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-10-22 14:49:22 +09:00
Yang Deokgyu
d26507ba76 wiringPi: Fix for parsing /proc/cpuinfo properly
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-10-22 14:46:55 +09:00
Yang Deokgyu
dfcb6e2e5d wiringPi: Bump up version to 2.44-5.0
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-09-20 15:14:21 +09:00
Yang Deokgyu
01a38bd123 wiringPi: Change readall output width to 79 for compatibility
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-09-20 14:59:55 +09:00
Yang Deokgyu
5106f2a102 wiringPi: Add readall option '--all' and refactor readall.c
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-09-20 12:27:57 +09:00
Yang Deokgyu
57890f889f build: Tune make jobs
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-09-19 15:59:02 +09:00
Yang Deokgyu
2ef868b961 wiringPi: Add udev rules to correct /dev/gpiomem permission
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-09-19 15:58:55 +09:00
Yang Deokgyu
d848750e6a wiringPi: Bump up version to 2.44-4.1
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-09-11 11:45:44 +09:00
Yang Deokgyu
020ff31733 wiringPi: Fix non-root user who has gpiomem cannot use gpio binary properly
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-09-11 11:43:05 +09:00
Yang Deokgyu
89a55d980e wiringPi: Change author information
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-09-11 11:26:22 +09:00
Yang Deokgyu
6c20d2ca3d wiringPi: Fix typo
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-09-11 11:19:03 +09:00
Joshua Yang
9666c1ae78 wiringPi: Bump up version to 2.44-4.0
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-08-14 17:07:49 +09:00
Hyeonki Hong
5f724d4732 Add #ifndef ANDROID to pinMode
The PWM default clock/range settings
  conflict with Android things settings.
2019-08-14 11:54:58 +09:00
Hyeonki Hong
cff00afd39 Add PWM comments for N2 2019-08-14 11:54:58 +09:00
Hyeonki Hong
50e35741d1 Add pullup/down mode to pinMode
ex)
pinMode(pin, INPUT_PULLUP);
pinMode(pin, INPUT_PULLDOWN);
2019-08-14 11:54:58 +09:00
Hyeonki Hong
53b8871ccf Add i2c Block read and write
wiringPiI2CReadBlock:
S Addr Wr [A] reg [A]
           S Addr Rd [A] [buff] A [buff] A ... A [buff] NA P

wiringPiI2CWriteBlock:
S Addr Wr [A] reg [A] buff [A] buff [A] ... [A] buff [A] P
2019-08-14 11:54:49 +09:00
Joshua Yang
8aed8534bc wiringPi: Bump up version to 2.44-3.0
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-08-08 11:05:14 +09:00
Hyeonki Hong
c5a06f5284 Add wiringPiSPISetupInterface
wiringPi did not support device selection.
When adding an SPI device or  SPI CS, a user did not use wiringPiSPI.h.

If using wiringPiSPISetupInterface, a user can select an SPI device.
2019-08-07 18:43:59 +09:00
Joshua Yang
85603cb711 ODROID-N2: Add static keyword to the new PWM functions
To avoid unforeseen collision, add static keyword to the functions.
And did some codes clean-up to fit into the exist code style.

Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-08-07 18:27:36 +09:00
Hyeonki Hong
010207ea64 ODROID-N2: Add new support for hardware PWM
Servo motors are typically controlled 1000 us ~ 2000 us pulse widths.
So default PWM period was set to 2500us.
2019-08-07 18:01:27 +09:00
Luke Go
714fd072a9 wiringPi: Remove global pinPass.
- pinPass value has a possibilit to wrong pinvalue pass.

Signed-off-by: Luke Go <luke.go@hardkernel.com>
2019-08-07 12:29:10 +09:00
Luke Go
4786c27f19 wiringPi: pthread: add mutex lock to avoid null pointer error.
- In some case, ISR callback function pointer can be null pointer untill pthread
  is not killed. So add mutext to avoid this problem and exit it.

Signed-off-by: Luke Go <luke.go@hardkernel.com>
2019-08-07 12:29:10 +09:00
Luke Go
6bb12bc532 android: replace using 'gpio' to direct node touching. 2019-07-31 17:49:35 +09:00
Luke Go
ecb33ea61c android: pthread: replace pthread_cancel.
- android doesn't support pthread_cancel. so use pthread_kill instead
  pthread_cacnel.
2019-07-31 17:49:35 +09:00
Joshua Yang
5344991b75 wiringPi: Bump up version to 2.44-2.0
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-07-26 13:51:24 +09:00
Joshua Yang
cbdb7ef4ca wiringPi: Add wiringPiISRCancel function
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-07-26 13:51:19 +09:00
Luke Go
68a09cb802 android: Make valide to link wiringPi library from vendor. 2019-07-17 16:34:41 +09:00
Joshua Yang
7e9bece6be wiringPi: Bump up version to 2.44-1.1
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-07-17 13:45:50 +09:00
Joshua Yang
07cc4620e0 wiringPi: newVersion: Fix for adding minor-fixed version
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-07-17 13:45:50 +09:00
Joshua Yang
f20892d2d0 wiringPi: People: Add Hardkernel team
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-07-17 13:45:50 +09:00
Joshua Yang
58892f8d06 wiringPi: Add copyright in gpio help messages
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-07-17 13:45:46 +09:00
Dongjin Kim
47abe4c912 ODROID: fix absolute path problem after building
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-07-17 12:17:42 +09:00
Dongjin Kim
2be588e1c2 ODROID: fix to build Debian package without running 'build' script
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-07-17 12:17:42 +09:00
Joshua Yang
96513481f2 wiringPi: Bump up version to 2.44-1
This versioning, 2.44-1, means that it is the first version for ODROID
distribution based on WiringPi 2.44

Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-07-16 18:08:51 +09:00
Joshua Yang
41a423e5d3 wiringPi: Prepare to distribute as debian package
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-07-16 18:08:16 +09:00