@@ -407,6 +407,10 @@ static int _iap_entry(rt_bool_t is_boot)
|
|||||||
ports[i] = rt_device_find(name);
|
ports[i] = rt_device_find(name);
|
||||||
RT_ASSERT(ports[i]);
|
RT_ASSERT(ports[i]);
|
||||||
|
|
||||||
|
struct serial_configure config = RT_SERIAL_CONFIG_DEFAULT;
|
||||||
|
config.baud_rate = BAUD_RATE_460800;
|
||||||
|
rt_device_control(ports[i], RT_DEVICE_CTRL_CONFIG, &config);
|
||||||
|
|
||||||
rt_device_set_rx_indicate(ports[i], port_rx_ind);
|
rt_device_set_rx_indicate(ports[i], port_rx_ind);
|
||||||
rt_device_open(ports[i], RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_INT_RX);
|
rt_device_open(ports[i], RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_INT_RX);
|
||||||
}
|
}
|
||||||
@@ -418,6 +422,11 @@ static int _iap_entry(rt_bool_t is_boot)
|
|||||||
|
|
||||||
odev_rx_ind = ports[0]->rx_indicate;
|
odev_rx_ind = ports[0]->rx_indicate;
|
||||||
rt_device_set_rx_indicate(ports[0], port_rx_ind);
|
rt_device_set_rx_indicate(ports[0], port_rx_ind);
|
||||||
|
|
||||||
|
struct serial_configure config = RT_SERIAL_CONFIG_DEFAULT;
|
||||||
|
config.baud_rate = BAUD_RATE_460800;
|
||||||
|
rt_device_control(ports[0], RT_DEVICE_CTRL_CONFIG, &config);
|
||||||
|
|
||||||
rt_device_open(ports[0], RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_INT_RX);
|
rt_device_open(ports[0], RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_INT_RX);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -197,6 +197,12 @@ void rt_hw_board_init(void)
|
|||||||
rt_hw_usart_init();
|
rt_hw_usart_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
struct serial_configure config = RT_SERIAL_CONFIG_DEFAULT;
|
||||||
|
config.baud_rate = BAUD_RATE_460800;
|
||||||
|
rt_device_t dev = rt_device_find(RT_CONSOLE_DEVICE_NAME);
|
||||||
|
RT_ASSERT(dev);
|
||||||
|
rt_device_control(dev, RT_DEVICE_CTRL_CONFIG, &config);
|
||||||
|
|
||||||
/* Set the shell console output device */
|
/* Set the shell console output device */
|
||||||
#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
|
#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
|
||||||
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
|
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
|
||||||
|
@@ -604,7 +604,7 @@
|
|||||||
|
|
||||||
<Group>
|
<Group>
|
||||||
<GroupName>Drivers</GroupName>
|
<GroupName>Drivers</GroupName>
|
||||||
<tvExp>1</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<cbSel>0</cbSel>
|
<cbSel>0</cbSel>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
@@ -856,7 +856,7 @@
|
|||||||
|
|
||||||
<Group>
|
<Group>
|
||||||
<GroupName>IAP</GroupName>
|
<GroupName>IAP</GroupName>
|
||||||
<tvExp>0</tvExp>
|
<tvExp>1</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<cbSel>0</cbSel>
|
<cbSel>0</cbSel>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
|
Reference in New Issue
Block a user