Commit Graph

29 Commits

Author SHA1 Message Date
Drahoslav
b1c90c6087 Fix pwmMem and some pwm Regs 2017-11-20 09:29:43 +01:00
Drahoslav
7445bb69a5 Implement pwm methods 2017-11-19 17:23:48 +01:00
Drahoslav
cc678981b0 Mmap pwm memmory 2017-11-17 09:37:18 +01:00
Drahoslav
4a31f2cfa6 Add Pwm mode for pins 2017-11-17 03:03:19 +01:00
Drahoslav
c0dfd7a7e3 fixup! Use mash filter if it makes sense 2017-11-16 13:52:24 +01:00
Drahoslav
7e21224c69 Do not change mash while busy 2017-11-16 01:47:08 +01:00
Drahoslav
ec703e92e8 Use /mem/dev primarily - it is needed for clock settings to work 2017-11-16 01:28:34 +01:00
Drahoslav
95bb91625f Use mash filter if it makes sense 2017-11-16 01:14:01 +01:00
Drahoslav
fd0764b709 Fix bad indexing of clk rigisters 2017-11-16 01:12:13 +01:00
Drahoslav Bednář
8208ca5f0d
fix memMap base attr
How could it even work before?
2017-11-15 17:48:18 +01:00
Drahoslav
0122f1902d Fix divf computation 2017-11-15 11:26:49 +01:00
Drahoslav
9b13a0969b Change clock public api 2017-11-14 23:16:39 +01:00
Drahoslav
cdcd97f287 go fmt 2017-11-14 22:33:04 +01:00
Drahoslav
b604d03178 Minor fixes 2017-11-14 22:25:26 +01:00
Drahoslav
b7b1bd8b81 Do minor renaming 2017-11-14 22:16:15 +01:00
Drahoslav
aae3fc6504 Implement setClock - using clock manager registers 2017-11-14 22:04:03 +01:00
Drahoslav
12feac8555 Add pin mode Clock 2017-11-14 17:52:05 +01:00
Drahoslav
3e0491354c Do minor refactoring 2017-11-14 17:06:00 +01:00
Artem Sheremet
f2af793fd7 Use /dev/gpiomem (with offset=0), if available
/dev/gpiomem is a map of GPIO-related memory region.
No longer need root for user GPIO access, but without relaxing
permissions on /dev/mem.

See https://github.com/raspberrypi/linux/pull/1112/files
2015-12-07 13:31:10 +01:00
Adam Kramer
07b12a1539 Removing a debugging statement 2015-03-07 19:01:39 -08:00
Adam Kramer
10a90652fd Fixed the comment for getGPIOBase() 2015-03-07 18:54:44 -08:00
Adam Kramer
733fee47fc Fixing a bug (oops) 2015-03-07 18:53:00 -08:00
Adam Kramer
cf3a8b7ed1 Using a better method of base address detection. 2015-03-07 18:45:00 -08:00
Adam Kramer
acd8baadbf Support the new IO port range for raspberry pi 2. 2015-03-07 17:57:06 -08:00
Kris Budde
8492756a0e Always unlock mutex. Just to be sure. 2014-08-23 14:43:15 +02:00
Stian Eikeland
1d8a97a9f8 Fix some comments 2014-01-07 23:15:25 +01:00
Stian Eikeland
e934c432f9 Added support for PullUp / PullDown / PullOff 2013-07-30 19:25:43 +02:00
Stian Eikeland
ce23315e88 Package name: rpio 2013-07-30 16:12:13 +02:00
Stian Eikeland
cc2855b1d8 Basic functionality working
Added support for:
- pin mode
- write
- read
2013-07-30 16:06:02 +02:00