summaryrefslogtreecommitdiff
path: root/firmware/test/i2c/main.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-05-06 22:16:31 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-05-06 22:16:31 +0000
commit5993f56007172ebce70e62697770655e7645304b (patch)
tree5ada5b9fe28e0bf2dbe16633a93ebf7c7a8e08dd /firmware/test/i2c/main.c
parentba396f0ed2b2f247868fd602dddba32f8df43dfd (diff)
Minor commenting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@485 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/test/i2c/main.c')
-rw-r--r--firmware/test/i2c/main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/firmware/test/i2c/main.c b/firmware/test/i2c/main.c
index 9010af2d59..7df80d5ecd 100644
--- a/firmware/test/i2c/main.c
+++ b/firmware/test/i2c/main.c
@@ -68,15 +68,16 @@ bool dma_on;
void setup_sci0(void)
{
- PBCR1 = (PBCR1 & 0xccff) | 0x1200;
+ /* PB15 is I/O, PB14 is IRQ6, PB12 is SCK0 */
+ PBCR1 = (PBCR1 & 0x0cff) | 0x1200;
- /* set PB12 to output */
+ /* Set PB12 to output */
PBIOR |= 0x1000;
/* Disable serial port */
SCR0 = 0x00;
- /* Syncronous, 8N1, no prescale */
+ /* Synchronous, no prescale */
SMR0 = 0x80;
/* Set baudrate 1Mbit/s */
@@ -225,7 +226,7 @@ int main(void)
dma_on = TRUE;
- /* Enable Tx (only!) */
+ /* Enable Tx & TXIE */
SCR0 |= 0xa0;
CHCR3 |= 1;