# 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()
unsigned short i, size, next;
unsigned char running = 1, data[BUFSIZE] = {0};
- PORTEN = 0x3; /* enable I/O Ports */
-
/*Enable LEDs*/
DDR14 = 0xFF;
PDR14 = 0xff;
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