1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-25 20:04:03 +02:00
This commit is contained in:
Xiangfu 2012-06-05 09:59:47 +08:00
parent fc85c030a9
commit 3717f0cf18
2 changed files with 5 additions and 5 deletions

View File

@ -71,7 +71,7 @@ void config_hand()
memcpy(&Hand, (unsigned char *)Bulk_out_buf, sizeof(struct hand)); memcpy(&Hand, (unsigned char *)Bulk_out_buf, sizeof(struct hand));
} }
int GET_CUP_INFO_Handle() int GET_CPU_INFO_Handle()
{ {
dprintf("\n GET_CPU_INFO:\t"); dprintf("\n GET_CPU_INFO:\t");
serial_put_hex(Hand.fw_args.cpu_id); serial_put_hex(Hand.fw_args.cpu_id);
@ -282,9 +282,9 @@ int SDRAM_OPS_Handle(u8 *buf)
return ERR_OK; return ERR_OK;
} }
void Borad_Init() void Board_Init()
{ {
dprintf("\n Borad_init! "); dprintf("\n Board_init! ");
serial_put_hex(Hand.fw_args.cpu_id); serial_put_hex(Hand.fw_args.cpu_id);
switch (Hand.fw_args.cpu_id) switch (Hand.fw_args.cpu_id)
{ {
@ -342,7 +342,7 @@ int CONFIGRATION_Handle(u8 *buf)
; ;
} }
Borad_Init(); Board_Init();
return ERR_OK; return ERR_OK;
} }

View File

@ -384,7 +384,7 @@ void usbHandleVendorReq(u8 *buf)
USB_DeviceRequest *dreq = (USB_DeviceRequest *)buf; USB_DeviceRequest *dreq = (USB_DeviceRequest *)buf;
switch (dreq->bRequest) { switch (dreq->bRequest) {
case VR_GET_CPU_INFO: case VR_GET_CPU_INFO:
ret_state = GET_CUP_INFO_Handle(); ret_state = GET_CPU_INFO_Handle();
break; break;
case VR_SET_DATA_ADDRESS: case VR_SET_DATA_ADDRESS:
ret_state = SET_DATA_ADDERSS_Handle(buf); ret_state = SET_DATA_ADDERSS_Handle(buf);