format code style with astyle in bsp/simulator
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2535 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
2e1de690f2
commit
1b274d996f
@ -37,7 +37,8 @@ static rt_err_t rt_serial_init (rt_device_t dev)
|
|||||||
return RT_EOK;
|
return RT_EOK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static rt_err_t rt_serial_open(rt_device_t dev, rt_uint16_t oflag){
|
static rt_err_t rt_serial_open(rt_device_t dev, rt_uint16_t oflag)
|
||||||
|
{
|
||||||
#if _DEBUG_SERIAL==1
|
#if _DEBUG_SERIAL==1
|
||||||
printf("in rt_serial_open()\n");
|
printf("in rt_serial_open()\n");
|
||||||
#endif
|
#endif
|
||||||
@ -114,7 +115,8 @@ static rt_err_t rt_serial_control (rt_device_t dev, rt_uint8_t cmd, void *args)
|
|||||||
{
|
{
|
||||||
RT_ASSERT(dev != RT_NULL);
|
RT_ASSERT(dev != RT_NULL);
|
||||||
|
|
||||||
switch (cmd){
|
switch (cmd)
|
||||||
|
{
|
||||||
case RT_DEVICE_CTRL_SUSPEND:
|
case RT_DEVICE_CTRL_SUSPEND:
|
||||||
/* suspend device */
|
/* suspend device */
|
||||||
dev->flag |= RT_DEVICE_FLAG_SUSPENDED;
|
dev->flag |= RT_DEVICE_FLAG_SUSPENDED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user