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