Commit Graph

30 Commits

Author SHA1 Message Date
c36d1495cd ODROID-C5: readall: fix pin name
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I73553adfbe39f81b65d8d92ad83b42ab0007f408
2025-08-28 10:29:51 +09:00
5d169c71ac ODROID-C5: readall: fix pin name
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I6f7c39567e56e5558ab7cd16c2efe21bb29dc21f
(cherry picked from commit 45e673d119e53605ca973ced49332d1a47131f06)
2025-05-14 14:04:37 +09:00
02877a9493 ODROID-C5: updates according to board revision REV 1.0 20250313
Change-Id: I1f91f06f5c6ccad767c6219fcbb190206fd571fe
2025-04-30 15:07:04 +09:00
b99cbc570b ODROID-C5: Add odroid-c5 wiring-pi support
- Rev. 20250106
- Warning: Use only GPIO functions.

Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I02623a284c047c6b5e485d28c9714ed8e65025df
2025-04-30 15:06:54 +09:00
Steve Jeong
47402619ff ODROID-M2: New support for ODROID-M2
Signed-off-by: Steve Jeong <steve@how2flow.net>
Change-Id: I379018ae50e6c2c43f0e53d9bc5986a2090d7818
2024-07-08 12:13:00 +09:00
Steve Jeong
329b9d7e23 ODROID-M1S: New support for ODROID-M1S
Signed-off-by: Steve Jeong <steve@how2flow.net>
Change-Id: Ib134094f7a35298b1274a60fbfc56a07a14ed965
2023-11-07 12:02:33 +09:00
Steve Jeong
f78d982959 ODROID-M1: New support for ODROID-M1
Change-Id: I8691f53540d566d00945fe3c7b6fb2f5f317cc1f
Signed-off-by: Steve Jeong <jkhpro1003@gmail.com>
2022-01-20 06:30:20 +00:00
Deokgyu Yang
e94695fd94 WiringPi: Add support for Odroid-HC4
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: If64c712eef681a2a9aa4b7828d95b612a1de91db
2020-11-17 18:23:20 +09:00
Deokgyu Yang
2c7e86b898 WiringPi: Bring back all of the stuffs I removed to do with peripherals
Imported from the official WiringPi repository, version 2.60.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I82dc00ab9f038f9bc4c6a9c4ca3affe5a5d33ae1
2020-04-28 11:02:36 +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
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
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
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
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
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
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
Gordon Henderson
e8da87fbac Added a fix to include -lcrypt for people who can't do it themselves.
Added gpio readall support for the Pi 0W.
2017-03-01 11:55:19 +00:00
Gordon Henderson
e687f3f2c6 Pushing to 2.39 as I have have not done the last one rightly... 2017-01-24 12:13:39 +00:00
Gordon Henderson
b1dfc186ef A new version of wiringPi. Added in more stuff and fixed it up
for kernels 4.8 onwards.

Some very old stuff might break.

Additional fixes for the ISR code and some tweaks here and
there. I've removed the checks for some operations that might
fail when using the gpiomem interface - which is now the default
way of doing things - if your program segfaults, then you
may need to use sudo on it.
2016-12-12 14:19:55 +00:00
Gordon Henderson
b0a60c3302 Many changes - tidying up the extensions interfaces.
Updating the GPIO command - new command - allreadall
ScrollPhat code
max31855 code (tested with adafruit breakout board)
more tests
updated rht03 code

Raspberry Pi v3 support.
2016-02-29 06:57:38 +00:00
Gordon Henderson
143b383b8d Added support for the Pimoroni scrollPhat
Added support for the ADS1115 16-bit ADC
Updated the gpio readall command to correctly with with the Compute Module
and fixed a resulting bug in wiringPi...
2016-01-28 19:20:31 +00:00
Gordon Henderson
31a8a2cdb8 gpio readall didn't work on the Zero. This fixed that little goof 2015-12-02 15:13:01 +00:00
Gordon Henderson
eb1fc2c920 Updates to the build process
Moved the extensions into wiringPi from gpio and made it more general purpose
more so that RTB and anything else can dymanically add devices
into wiringPi.
Changes to GPIO to updates for the SPI and I2C module loads
Added gpio unload for SPI and I2C.

Added a new way to setup SPI - by passing the mode in.

Support for the new Pi2 thing too
2015-01-30 18:14:49 +00:00
Gordon Henderson
0a9fdeb29d Minor changes to the PiGlow code - got the orange & yellow the right way
round at last..

Updated for the 0x0012 board revision on the new A+
2014-11-10 10:55:23 +00:00
Gordon Henderson
df45388f64 Fixed a bug in the gpio readall command on model B's (caused by a side-effect
of changing it for the B+)

Aded a gpio command: usbp hi/low - to change the usb power
2014-07-17 22:23:57 +01:00
Gordon Henderson
dca8a19fb8 Updated mostly to the gpio readall command to support the Raspberry Pi B+ 2014-07-14 08:39:38 +01:00
Gordon Henderson
6fba403b2f Updates for the Raspnerry Pi Compute Module - changes to the gpio program
to produce a nicer 'readall' output too.

It also understands new pins 53,54,55 and 56 in wiringPiSetupPhys()
mode to represent the pins on the P5 connector on the Rev 2 Pi's

Changes to pinMode() to allow new modes SOFT_PWM and SOFT_TONE.
2014-06-24 19:23:31 +01:00
Gordon Henderson
8c8578a26b Reverted gpio readall to older version - new version is gpio nreadall
fixed the max5322 code.
2013-07-23 09:19:34 +01:00
Gordon Henderson
02a3bd8d8f Readall command in gpio changed. 2013-06-27 21:57:09 +01:00