forked from len0rd/rockbox
A more complete serial port setup
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3829 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ef8217d228
commit
f6811b008e
1 changed files with 4 additions and 1 deletions
|
|
@ -42,7 +42,10 @@ static void screen_dump(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void serial_setup (void)
|
void serial_setup (void)
|
||||||
{
|
{
|
||||||
|
/* Set PB10 function to serial Rx */
|
||||||
|
PBCR1 = (PBCR1 & 0xffcf) | 0x0020;
|
||||||
|
|
||||||
SMR1 = 0x00;
|
SMR1 = 0x00;
|
||||||
SCR1 = 0;
|
SCR1 = 0;
|
||||||
BRR1 = (FREQ/(32*9600))-1;
|
BRR1 = (FREQ/(32*9600))-1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue