Commit Graph

198 Commits

Author SHA1 Message Date
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
Luke Go
2ee8a0d922 wiringPi: Apply unused attribute.
To avoid error message, apply "__attribute__((unused))" to unsupported
functions and unused parameters.
2019-07-08 16:35:26 +09:00
Joshua Yang
070ba21ecb ODROID-C1: Fix bracket error
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
2019-07-08 16:23:24 +09:00
Joshua Yang
95e58b56a5 ODROID-COMMON: Edit _analogRead to work with physical analog channel numbering 2019-07-04 15:10:59 +09:00
Hyeonki Hong
efe03af17b whitespace 2019-07-04 15:05:40 +09:00
Hyeonki Hong
93d6587e5b remove dublicate code 2019-07-04 15:05:40 +09:00
Hyeonki Hong
4a8be24c0f Add bracket due to -Wmisleading-indentation 2019-07-04 15:05:40 +09:00
Hyeonki Hong
8fb0f2f61f bugfix: softPwm/Tone use pin defined by a user, not GPIO 2019-07-04 15:05:34 +09:00
Joshua Yang
23f3f5a4e2 ODROID-COMMON: Arrange to use /dev/mem if the user grants sudo permission 2019-06-27 15:53:11 +09:00
joshua-yang
4b08e7ff71 wiringPi: Refactor source codes including fixes for collisions that'd occur
Replace WiringPi header files to the ODROID specific files
 - Note: To avoid unforeseen errors when working with Python Wrapper.
   Python Wrapper doesn't recognize the ODROID specific header files and
   its introduced functions, declarations. So just thought that fixing
   Python Wrapper is much more complicated than replacing the header files
   and it seems more suitable for the later updates.
Fix messaging implicit declaration of core functions
Fix collisions of functions/declarations by header files
 - Note: In each ODROID sources, the prefix '_' have to be added to the
   core functions in order to avoid the collisions that non-static function
   follows static function. This is because of importing "wiringPi.h" header
   file that has extern core functions which names the same as listed in
   each ODROID source code file. So the core functions that exported from
   here must have that prefix, and only to be assigned its pointer to the
   "libodroid" structure.

Change-Id: Ia927c7946cfb6ca6ce3a02530936325e1acb0620
2019-02-25 16:10:39 +09:00
joshua-yang
1f53a9c5b9 Update .gitignore and apply
Change-Id: I0060f1859f2ab423dea22937db36199c7c92cc73
2019-02-25 16:10:34 +09:00
joshua-yang
eea9557809 wiringPi: Fix wiringPiISR for working with a pin that is bigger than 255
Change-Id: I1927e6bcef6102e91af8241f728097bc616f7db0
2019-01-11 16:55:25 +09:00
joshua-yang
9ffe33a185 ODROID-N1: Implement get pin MUX mode
Because of the update for getting pin MUX, PUPD, DS status, its readall
command on N1 always shows all the alternative mode as ALT1. So it is
the partly update for that but won't update for support of the other new
functions.

Change-Id: If5e2c4894c4513d3b5c164b4918086022c2a3703
2019-01-10 15:45:47 +09:00
joshua-yang
ae9a8e9ced wiringPi: Prevent showing -1 value for readall command
Change-Id: I32393427eaba8439fe86dcca7f212165b9339779
2019-01-10 14:59:48 +09:00
joshua-yang
96152ee6bc ODROID-XU3/4: Implement get pin MUX, PU/PD mode, get/set drive strength
Change-Id: I57586fcf2d1ebf4e6e938e67c8af0c194b22c3ea
2019-01-10 14:59:48 +09:00
joshua-yang
258ea143b2 ODROID-C2: Implement get pin MUX, PU/PD mode
Change-Id: I74ef2e650e5e5e88ef3bfe1a53be1a7877bc7020
2019-01-10 14:59:48 +09:00
joshua-yang
298d3f4c58 ODROID-C1: Implement get pin MUX, PU/PD mode
Change-Id: I65f7be92205a1808c6b2f9bb86fc3a468ca819b5
2019-01-10 14:59:48 +09:00
joshua-yang
efd0df390c ODROID-N2: Remove logic for check I2C module loaded
Change-Id: I94bf3f5f40c4674c8a7d08b14f87833165d4a173
2019-01-10 14:59:48 +09:00
joshua-yang
827072123b ODROID-N2: Implement get pin MUX, PU/PD mode, get/set drive strength
Change-Id: I75099b4e2919860f7190ef9cdcd841b1d38844a7
2019-01-10 14:59:48 +09:00
joshua-yang
3384341906 ODROID-N2: Change ADC node files
Change-Id: I32468207ed147020d174c2018677124cb0f7bf84
2019-01-04 18:19:57 +09:00
joshua-yang
55c66369da ODROID-N2: Change SPI device file
Change-Id: Ic9dd082cdebd8d77399e57e3ea9f5b37bf8cdf38
2019-01-04 18:19:20 +09:00
Kevin Kim
69b5bede45 ODROID-N2:ODROID-N2 board wiringPi support.
Change-Id: I119c85723700739ff04e0f4144bc96ef854a5188
2018-12-19 13:39:01 +09:00
Joshua Yang
c3752077c6 wiringPi: Refactor source codes
Change-Id: Id121bfc6cb211b78b7ade56d235d43bdf11fc690
2018-11-29 18:11:16 +09:00
Joshua Yang
175d1f6af0 ODROID C1/C2: Optimize I2C check code
Change-Id: I13d4273b8eeee055bde280cd1a25ba6e82b38f28
2018-09-04 11:24:49 +09:00
Joshua Yang
eb609f870b ODROID C1: Enable I2C pins when the I2C module isn't loaded
Change-Id: I1b581fc1335b59bcb8565d96490d9c6fccada9ae
2018-05-10 17:15:44 +09:00
Joshua Yang
efb5151bb1 ODROID C2: Enable I2C pins when the I2C module isn't loaded
Change-Id: Ic96b92e5f697f2b7b2059969332c4f4835a77aa5
2018-05-10 13:52:42 +09:00
Joshua Yang
c5a3877737 wiringPi: Define a symbol for aml_i2c
Change-Id: Ic2b2495d153babce0c8cd9ff33927533fe92e3b0
2018-05-10 13:50:42 +09:00
Joshua Yang
66663ae72a wiringPi: Move moduleLoaded function to export
Change-Id: Ie74b852ebdd596bb3dfd7ec6ec37c7f050948195
2018-05-10 13:43:52 +09:00
Joshua Yang
180614e619 wiringPi: Enable 'gpio i2cdetect' command
Change-Id: I7c2e13e9bb4b6ba9147f2bf16bf94468902b3b98
2018-02-27 15:36:51 +09:00
Joshua Yang
f8b154ba75 wiringPi: Update the help for load/unload option
Change-Id: I162ed996bb34bff29d760dc4df4bb36fb6a541bf
2018-02-23 16:01:13 +09:00
Joshua Yang
37027fb9c8 wiringPi: Remove unused SPI/I2C load/unload code
Change-Id: I14666fbcb5551560257cc705c4779feeece3cde0
2018-02-23 15:45:18 +09:00