László Monda
|
98f7d512de
|
Extract CurrentTime and remove Timer_{Get,Set}CurrentTime()
|
2018-10-04 20:38:36 +02:00 |
|
Kristian Sloth Lauszus
|
5bd479ab8e
|
Fixed unused variable
This was due to a merge conflict in c69f664e85
|
2018-07-01 00:04:26 +02:00 |
|
Kristian Sloth Lauszus
|
c69f664e85
|
Merge branch 'master' into dev
# Conflicts:
# right/src/timer.c
# right/src/timer.h
# right/src/usb_report_updater.c
|
2018-06-30 22:27:52 +02:00 |
|
Eric Tang
|
02bbeb7177
|
Fix the formatting in timer.c
|
2018-06-26 22:13:13 -07:00 |
|
Eric Tang
|
04f4053bde
|
Add a delay function
|
2018-06-26 18:37:49 -07:00 |
|
Kristian Sloth Lauszus
|
9a8b1ef8b9
|
The PIT timer is counting downward, so we need to subtract the count from the period value
|
2018-06-22 21:50:14 +02:00 |
|
Kristian Sloth Lauszus
|
d449123fab
|
Fix PIT timer period and added functions for getting the current time in microseconds
|
2018-06-22 17:39:22 +02:00 |
|
Kristian Sloth Lauszus
|
6e2eca7829
|
Changed CurrentTime to a static variable and added function for getting the current time instead
Global variables are really bad practice and should be avoided
|
2018-03-11 17:59:23 +01:00 |
|
Kristian Sloth Lauszus
|
0b100feb32
|
Global variables shared between an interrupt and the main code should be volatile
See: https://www.embedded.com/electronics-blogs/beginner-s-corner/4023801/Introduction-to-the-Volatile-Keyword
|
2018-03-11 02:37:59 +01:00 |
|
László Monda
|
2eb25ce05c
|
Make UpdateUsbReports() not exit prematurely even if a previously active USB interface is not polled anymore by the host. Tweak the Timer API to not set the current time automatically.
|
2017-12-07 03:24:53 +01:00 |
|
László Monda
|
712b87182a
|
Double timer interval that wasn't right for an unknown reason. Adjust mouse kinetic values accordingly. Reprioritize interrupts to make mouse pointer movement as smooth as possible.
|
2017-11-28 18:52:39 +01:00 |
|
László Monda
|
ae4d60882f
|
Use interrupt based keyboard matrix scanning for the right keyboard half. Get rid of INTERRUPT_KEY_SCANNER
|
2017-11-13 02:18:55 +01:00 |
|
László Monda
|
332f2a69fa
|
Set up the timer properly and introduce CurrentTime.
|
2017-11-12 17:33:23 +01:00 |
|
László Monda
|
a91f945591
|
Add timer.[ch]
|
2017-11-12 04:48:06 +01:00 |
|