Compare commits
No commits in common. "4ea322e2f53834ea34aa2c3c1fbfa86bcaa9da3d" and "9bed136cd5a3d460bae447f497cf9233ab0ee23a" have entirely different histories.
4ea322e2f5
...
9bed136cd5
@ -7,5 +7,3 @@ INCLUDEPATH += /usr/avr/include
|
|||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
main.c
|
main.c
|
||||||
|
|
||||||
DEFINES += __AVR_ATmega8__
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
#define DELAY_ROW_SWITCH() _delay_ms(1) //_delay_us(1)
|
#define DELAY_ROW_SWITCH() _delay_ms(1) //_delay_us(1)
|
||||||
|
|
||||||
#define BAUDRATE 9600
|
#define BAUDRATE 9600
|
||||||
|
#define UBRR 51 // (F_CPU / BAUDRATE) / 32
|
||||||
|
|
||||||
/* Keycode from include/linux/input.h */
|
/* Keycode from include/linux/input.h */
|
||||||
#define KEY_RESERVED 0
|
#define KEY_RESERVED 0
|
||||||
@ -258,8 +259,8 @@ int main()
|
|||||||
MATRIX_Y1(PORT) &= ~MASK_Y1; /* Pull row low when selected */
|
MATRIX_Y1(PORT) &= ~MASK_Y1; /* Pull row low when selected */
|
||||||
MATRIX_Y2(PORT) &= ~MASK_Y2; /* Pull row low when selected */
|
MATRIX_Y2(PORT) &= ~MASK_Y2; /* Pull row low when selected */
|
||||||
UCSRB = (1 << TXEN);
|
UCSRB = (1 << TXEN);
|
||||||
UBRRH = ((((F_CPU / BAUDRATE) / 16) - 1) >> 8);
|
UBRRH = (UBRR >> 8) & 0xFF;
|
||||||
UBRRL = (((F_CPU / BAUDRATE) / 16) - 1);
|
UBRRL = UBRR & 0xFF;
|
||||||
|
|
||||||
fn_active = 0;
|
fn_active = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user