Commit Graph

328 Commits

Author SHA1 Message Date
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
Joshua Yang
8140e5ad84 ODROID-N2: Remove duplicate includes
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-07-16 10:58:51 +09:00
Luke Go
b14e783422 android: Separate header library. 2019-07-10 18:40:50 +09:00
Luke Go
4999398959 android: change build script from mk to bp. 2019-07-10 18:40:50 +09:00
Joshua Yang
e099141d51 wiringPi: Remove getModeToGpio from wiringpi.h
getModeToGpio() function is a wrapper for wpiPinToGPio() function for ODROID.
It is not used directly, it should be removed from extern-ed functions list.

Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-07-10 17:54:13 +09:00
Joshua Yang
adbdd58500 ODROID-N2: Update pins documents
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-07-09 17:53:13 +09:00
Luke Go
4aeac4034c wiringPi: android: Change module name to avoid conflict. 2019-07-09 17:36:35 +09:00
Luke Go
8cfb574266 wiringPi: android: don't define duplicated definition. 2019-07-09 17:36:35 +09:00
Luke Go
2b0b365974 wiringPi: android: Move .mk files. 2019-07-09 17:36:35 +09:00
joerg65
917d8394b3 Corrections for Odroid C1 to support Android 2019-07-09 17:36:35 +09:00
joerg65
eec2ac0dd4 Corrections for Odroid N2 to support Android 2019-07-09 17:36:35 +09:00
joerg65
d40876a345 Added Android support 2019-07-09 17:36:35 +09:00
Joshua Yang
964b422564 wiringPi: Make doI2Cdetect function works for N2 and tiny logic update
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-07-09 16:00:37 +09:00
Joshua Yang
6e7a6e6e38 wiringPi: Clean warning messages from gcc
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-07-09 15:57:26 +09:00
Luke Go
e0bbe87778 wiringPi: Ignore Unused function amd param. 2019-07-08 18:19:09 +09:00