faster baudrate for pkernel
authorBernhard Urban <lewurm@gmx.net>
Mon, 14 Dec 2009 09:08:26 +0000 (10:08 +0100)
committerBernhard Urban <lewurm@gmx.net>
Mon, 14 Dec 2009 09:08:26 +0000 (10:08 +0100)
kernel.py
pkernel/main.c
pkernel/uart.c

index 8bf955b377dd0ec822f430910f666829292d0684..159a570d08e5936d4fc25b9e627d7fb2e796a5a8 100755 (executable)
--- a/kernel.py
+++ b/kernel.py
@@ -5,7 +5,7 @@ from SerialPort_linux import *
 # serial device to communicate with
 DEVICE="/dev/ttyUSB0"
 # baudrate used for communication with pkernel
-KERNEL_BAUDRATE=38400
+KERNEL_BAUDRATE=115200
 
 def recvByte():
        i = tty.read()
index 8852877433a882dc458d29d55851a5aea253f1d2..20334cda7c8d435e042866d25b564e869aa68d76 100644 (file)
@@ -55,8 +55,6 @@ void main(void)
        unsigned short i, size, next;
        unsigned char running = 1, data[BUFSIZE] = {0};
        
-       PORTEN = 0x3; /* enable I/O Ports */
-
        /*Enable LEDs*/
        DDR14 = 0xFF;
        PDR14 = 0xff;
index 3d42718fb04db54f62ec0b2acd5757631fa9a40a..53106a6107ed9c8af522bf06d16687bbeec88c6c 100644 (file)
@@ -3,7 +3,7 @@
 void InitUart4(void)
 {
        // Initialize UART asynchronous mode
-       BGR04 = 416; // 38400 Baud @ 16MHz
+       BGR04 = 138; // 115200 Baud @ 16MHz
        SCR04 = 0x17; // 8N1
        SMR04 = 0x0d; // enable SOT3, Reset, normal mode
        SSR04 = 0x00; // LSB first