Intial commit of the SonyNEWS scan module
- Keyboard output fully working - Not all of the features are implemented yet (input, speaker, or power detection) - There is no plan for mouse support
This commit is contained in:
parent
ac5f6c015d
commit
ea2654b662
9 changed files with 657 additions and 15 deletions
|
@ -74,7 +74,7 @@ inline void scan_setup()
|
|||
// Setup baud rate
|
||||
// 16 MHz / ( 16 * Baud ) = UBRR
|
||||
// Baud <- 3.358 ms per bit, thus 1000 / 3.358 = 297.80
|
||||
// Thus baud = 3357
|
||||
// Thus USBRR = 3357
|
||||
uint16_t baud = 3357; // Max setting of 4095
|
||||
UBRR1H = (uint8_t)(baud >> 8);
|
||||
UBRR1L = (uint8_t)baud;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue