mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-28 06:04:19 +01:00
Go easy on the alarm irq frequency.
This won't slow down uploads as long as the sender uploads fast enought.
This commit is contained in:
parent
b899ab76f8
commit
9086957f72
4
gecko.c
4
gecko.c
@ -286,7 +286,6 @@ void gecko_timer(void) {
|
||||
_gecko_receive_left = 4;
|
||||
_gecko_receive_buffer = (u8 *) 0x0; // yarly
|
||||
|
||||
irq_set_alarm(1, 0);
|
||||
_gecko_cmd_start_time = read32(HW_TIMER);
|
||||
|
||||
break;
|
||||
@ -297,7 +296,6 @@ void gecko_timer(void) {
|
||||
_gecko_receive_left = 4;
|
||||
_gecko_receive_buffer = (u8 *) 0x10100000;
|
||||
|
||||
irq_set_alarm(1, 0);
|
||||
_gecko_cmd_start_time = read32(HW_TIMER);
|
||||
|
||||
break;
|
||||
@ -361,8 +359,6 @@ void gecko_timer(void) {
|
||||
cleanup:
|
||||
gecko_flush();
|
||||
|
||||
irq_set_alarm(20, 0);
|
||||
|
||||
_gecko_cmd = 0;
|
||||
_gecko_cmd_start_time = 0;
|
||||
_gecko_state = GECKO_STATE_NONE;
|
||||
|
Loading…
Reference in New Issue
Block a user