summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorarmink <[email protected]>2014-09-14 14:44:48 +0800
committerarmink <[email protected]>2014-09-14 14:44:48 +0800
commit987532967ff6261fc6ae6e58c70cc29958215ab6 (patch)
treeb5f7c68541c0d49876543994b1b648ee05f54e2b /components
parent77b214f1bc8cbb9463fda702ac74accf26529684 (diff)
[Ymodem]Change macro definition and code format.
Diffstat (limited to 'components')
-rw-r--r--components/utilities/ymodem/ymodem.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/components/utilities/ymodem/ymodem.h b/components/utilities/ymodem/ymodem.h
index d82e76d936..15d8c93839 100644
--- a/components/utilities/ymodem/ymodem.h
+++ b/components/utilities/ymodem/ymodem.h
@@ -56,7 +56,9 @@ enum rym_code {
#endif
/* how many CAN be sent when user active end the session. */
+#ifndef RYM_END_SESSION_SEND_CAN_NUM
#define RYM_END_SESSION_SEND_CAN_NUM 0x07
+#endif
enum rym_stage {
RYM_STAGE_NONE,
@@ -131,8 +133,8 @@ struct rym_ctx
* @param handshake_timeout the timeout when hand shaking. The unit is in
* second.
*/
-rt_err_t rym_recv_on_device(struct rym_ctx *ctx, rt_device_t dev,
- rt_uint16_t oflag, rym_callback on_begin, rym_callback on_data,
- rym_callback on_end, int handshake_timeout);
+rt_err_t rym_recv_on_device(struct rym_ctx *ctx, rt_device_t dev, rt_uint16_t oflag,
+ rym_callback on_begin, rym_callback on_data, rym_callback on_end,
+ int handshake_timeout);
#endif