Browse Source

[Ymodem]Change macro definition and code format.

armink 10 years ago
parent
commit
987532967f
1 changed files with 5 additions and 3 deletions
  1. 5 3
      components/utilities/ymodem/ymodem.h

+ 5 - 3
components/utilities/ymodem/ymodem.h

@@ -56,7 +56,9 @@ enum rym_code {
 #endif
 #endif
 
 
 /* how many CAN be sent when user active end the session. */
 /* 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
 #define RYM_END_SESSION_SEND_CAN_NUM  0x07
+#endif
 
 
 enum rym_stage {
 enum rym_stage {
     RYM_STAGE_NONE,
     RYM_STAGE_NONE,
@@ -131,8 +133,8 @@ struct rym_ctx
  * @param handshake_timeout the timeout when hand shaking. The unit is in
  * @param handshake_timeout the timeout when hand shaking. The unit is in
  * second.
  * 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
 #endif