summaryrefslogtreecommitdiff
path: root/skey.c
AgeCommit message (Collapse)Author
2017-12-29have the special keys switch also update KEYSTATE_PHYS. that was likely the ↵reverseknolax
cause of stickymap not working
2017-12-29added an event of rel 0 for the mouse controls, so it doesn't just keep ↵knolax
going until key release
2017-12-29changed MOUSE_DIST back into an intknolax
2017-12-29fixed ld d mismmatch in some of the debug printsknolax
2017-12-29testing revealed that the mouse up and down were reversed, and that ↵knolax
MOUSE_DIST was too high. this changes them.
2017-12-29made DEBUGMODE affect read periods as wellknolax
2017-12-29disabled debug prints for non-debug branchknolax
2017-12-29added DEBUGMODE macro to enable/disable debug prints`knolax
2017-12-29changed all the debug prints to be KERN_DEBUGknolax
2017-12-29added keycode register, this is why the keyevents weren't being read`debugknolax
2017-12-29added more debug prints, it should be printing keycodes now, though i'm ↵knolax
using %d with longs.
2017-12-29Merge branch 'reverse' into debugknolax
2017-12-29forgot to change update PHYS_STATE for every call of processkey, not jsut ↵knolax
when there is a risng or falling edge.
2017-12-29fixed typosknolax
2017-12-29added debug prints, testing this in production at the moment, also increased ↵knolax
the scan period back to 1s.
2017-12-29fixed c90 mixed declaration warnings.knolax
2017-12-29added full functionality to the module. it now sends the correct keypresses ↵knolax
to the input subsystem. As a reminder, i'm using git to upload code to the production system so this code hasn't been tested yet.
2017-12-27undid 88f06d, this was already done in the production code but i forgot to ↵knolax
update it for git.
2017-12-27set pin 4 and 15 to have low values to, this might not actually run.knolax
2017-12-27after switching the position of 4 in column_pins[10] the problem persisted, ↵knolax
i have added lines at the end of init_skey() that explictly set those two pins as input, this is to help debug the issue]
2017-11-14reverted the inverted row pins, the issue was not one of ↵knolax
active_low/active_high, but an incomplete transition to using column pins for input and row pins for output. everything works except for columns 7 and 9(pins 15 and 4) which are always held detected as hgih. testing with the /sysfs interface has shown that pin 4 is electrically sound so it must be an issue with the driver# Please enter the commit message for your changes. Lines starting
2017-12-23fixed typoknolax
2017-12-23fixed typoknolax
2017-12-23fixed testing setupknolax
2017-12-23hopefully fixed setting pins as opposite of what they are, thereby fixing ↵knolax
the issue of the iutput pins not working
2017-12-23making a test, gpio output seems unresponsive at allknolax
2017-12-23switched the output pin states as they might be considered active_low in the ↵knolax
legacy gpio interfacd
2017-12-23fixed typoknolax
2017-12-23changed the function calls to the linux gpio interface to their cansleep ↵knolax
equivalents
2017-12-20added a small sleep between rpin state changesknolax
2017-12-20fixed typoknolax
2017-12-20reversed the roles of the row and column pins to account for an error in the ↵knolax
prototype board.
2017-12-19changed tick rate of update thread for testing purposesHEADmasterknolax
2017-12-13reenabled gpio testingknolax
2017-12-13confirmed that adding the metadata allows X11 to autodetect skey_devknolax
2017-12-13removed __initdata from all the variables because none of them are actually ↵knolax
only used during init
2017-12-13added more metadata to skey_dev, also added __initdata to some variablesknolax
2017-12-08fixed a typo, has it emmit capslock every secondknolax
2017-12-08added code to register a device with input.hknolax
2017-12-08added a counter that printks every second, the previous kernel panics may ↵knolax
have been caused by excessive use of printk.
2017-12-08changed test mode warning to only emit once during the threadknolax
2017-12-08added test mode that doesn't use GPIO so i can test on an Virtual Machine on ↵knolax
my main computer
2017-12-07changed the update function from being timer based to thread based so that ↵knolax
it can sleep. it may be because of the fact that it couldn't sleep that it was causing kenel panics
2017-12-07added functions to explicitly set pins as input or output do to kernel ↵knolax
panics when trying to use gpio_set_value()
2017-12-07added basic keypress scanning functionality to the update functionknolax
2017-12-07initial commitknolax