Commit Graph

307 Commits

Author SHA1 Message Date
Deokgyu Yang
152712d3ee debian: Fix typo
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I6ab68c20633549bb3f13aab592862377912d4971
2020-04-21 11:37:37 +09:00
Deokgyu Yang
2fa3784651 debian: Add explicit package dependency
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I6c840db8b188148bdce303b7b4ab0110f0d54644
2020-04-21 11:24:39 +09:00
Deokgyu Yang
cac5556425 WiringPi: Bump up version to 3.0
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ia3586cad02d45bc34bf7dc6409c1eae09fe50af6
2020-04-17 16:59:29 +09:00
Deokgyu Yang
6738d3e8e9 newVersion: Remove unused codes
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I50da462320edefe4cf552718d0a457b91142f50b
2020-04-17 16:54:46 +09:00
Deokgyu Yang
9a27ae8fd8 Revert "wiringPi: newVersion: Fix for adding minor-fixed version"
This reverts commit 07cc4620e0.

Change-Id: I9023d16ddfe808fccb74b58981933091e6917c1f
2020-04-17 16:53:58 +09:00
Deokgyu Yang
6d5f5daf09 WiringPi: Bump up version to 2.44-7.0
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: If50894454b6ea118e0ab6699816648c197261869
2020-04-17 16:11:23 +09:00
Deokgyu Yang
3f787a1912 Bring devLib/lcd* back
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ifcc4338c95d185b730e87542a5c053a6906c86cb
2020-03-31 11:35:13 +09:00
Deokgyu Yang
40b5bc139c Add definition _GNU_SOURCE to remove warnings to do with implicit functions
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I02489bde9498c3acb22af381bd4852e5a667c677
2020-03-30 15:07:49 +09:00
Deokgyu Yang
a0bd5eb338 WiringPi: Minor changes
- Fix compile warning
- Remove pwmSetMode function that is not used
- Change the name of changing drive functions
- Aggressively use of WiringPi setupCheck() function
- Move usingGpiomem variable into libodroid structure
- etc...

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I355556975cedc686885f3b91d7f1a4ec02f1e232
2020-03-20 18:19:09 +09:00
Deokgyu Yang
90fb4b9435 WiringPi: Remove unused codes from newVersion script
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Id85bd9d589c4b7e176f594cce6505e72e4765027
2020-03-20 15:08:26 +09:00
Deokgyu Yang
e5a99034ba WiringPi: Android: Apply removes to Android.bp
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I7255c36857185ed18811695ce5ad88dafe5d27ab
2020-03-19 18:22:03 +09:00
Deokgyu Yang
89cf23cbcd WiringPi: Remove files that seem won't be used or already have not been used
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I1189f950d0e51cbc4c569b1e7a1182dc5f8fe762
2020-03-19 17:27:55 +09:00
Deokgyu Yang
b3a297e09b WiringPi: Improve logic of getting board information
Now WiringPi doesn't require editted /proc/cpuinfo if a proper model
name is defined in target board's device tree.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I94b6b9595577546d785f018258746032bf9a9494
2020-03-19 17:27:54 +09:00
Yang Deokgyu
ffeba7f622 ODROID-C4: New support for ODROID-C4
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
Signed-off-by: Luke Go <sangch.go@gmail.com>
Change-Id: I0fd2de97d95bb8bf71cc1975081177571b1e8301
2020-03-19 17:27:53 +09:00
Deokgyu Yang
8c26c89486 WiringPi: Bump up version to 2.44-6.2
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
2020-02-19 14:41:02 +09:00
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