From: Nicolas D. <Ba...@us...> - 2011-03-30 00:11:48
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "krobot". The branch, master has been updated via 3a221d16b0169ed682375c20c9db8e823395abd7 (commit) from 242d6620b5cf7a384b73f928d48d36b4417645b2 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 3a221d16b0169ed682375c20c9db8e823395abd7 Author: Nicolas Dandrimont <Nic...@cr...> Date: Wed Mar 30 02:07:07 2011 +0200 [USB_CAN/Firmware] Explicitly set serial baudrate ----------------------------------------------------------------------- Changes: diff --git a/elec/boards/USB_CAN/Firmware/usb_can/main.c b/elec/boards/USB_CAN/Firmware/usb_can/main.c index 40de93d..646b9d9 100644 --- a/elec/boards/USB_CAN/Firmware/usb_can/main.c +++ b/elec/boards/USB_CAN/Firmware/usb_can/main.c @@ -41,6 +41,7 @@ #include "usb_can.h" #define MAX_CMD_SIZE 64 +#define SERIAL_BAUDRATE 1000000 PROC_DEFINE_STACK(stack_ser_recv, KERN_MINSTACKSIZE * 4); PROC_DEFINE_STACK(stack_can_recv, KERN_MINSTACKSIZE * 4); @@ -82,6 +83,7 @@ static void init(void) /* Initialize Serial driver */ ser_init(&ser, SER_UART3); + ser_setbaudrate(&ser, SERIAL_BAUDRATE); /* Initialize USB-CAN logic */ usb_can_init(&usbcan, CAND1, &ser); hooks/post-receive -- krobot |