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
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