Revision 1e5f7648 os/core/src/aos_iostream.c
os/core/src/aos_iostream.c | ||
---|---|---|
120 | 120 |
/** |
121 | 121 |
* @brief Implementation of the BaseAsynchronousChannel ctl() method. |
122 | 122 |
*/ |
123 |
static msg_t _channelctl(void *instance, unsigned int operation, void *arg) { |
|
124 |
(void) instance; |
|
125 |
|
|
126 |
switch (operation) { |
|
127 |
case CHN_CTL_NOP: |
|
128 |
osalDbgCheck(arg == NULL); |
|
129 |
break; |
|
130 |
case CHN_CTL_INVALID: |
|
131 |
osalDbgAssert(false, "invalid CTL operation"); |
|
132 |
break; |
|
133 |
default: |
|
134 |
break; |
|
123 |
static msg_t _channelctl(void *instance, unsigned int operation, void *arg) |
|
124 |
{ |
|
125 |
if (((AosIOChannel*)instance)->flags & AOS_IOCHANNEL_OUTPUT_ENABLE) { |
|
126 |
return chnControl(((AosIOChannel*)instance)->asyncchannel, operation, arg)); |
|
127 |
} else { |
|
128 |
return MSG_OK; |
|
135 | 129 |
} |
136 |
return MSG_OK; |
|
137 | 130 |
} |
138 | 131 |
|
139 | 132 |
/** |
Also available in: Unified diff