| | |
| | | |
| | | #include "define_all.h" |
| | | #include "system_general_para.h" |
| | | |
| | | #define UC_SEND_NORMAL(__DATA__,__SIZE__) UARTx_SendData_Normal(UP_COMM_UARTX,__DATA__,__SIZE__) |
| | | |
| | | |
| | | |
| | | #define UC_RANDOM_CREATED (rand() % 100) << 8 | (rand() % 100) //Ëæ»úÂë¹¹Ôì |
| | | |
| | | //#define UC_TABLE_ID_LENGTH SIZEOF_OF(UC_PROTOCOL_HEAD_T,table_id) //ÐÒéÊý¾Ý±íID³¤¶È |
| | |
| | | typedef struct |
| | | { |
| | | /*ÕâÑùÅÅÐòÊÇΪÁË×Ö½Ú¶ÔÆë£¬buffÊý¾ÝÒª4µÄ±¶ÊýÅäºÏ__attribute__ ((aligned (4)))ʹÓÃ*/ |
| | | UC_RECV_DATA_UNION_T uc_recv_buf_union; |
| | | uint16_t uc_recv_length; |
| | | UC_RECV_DATA_UNION_T uc_recv_buf_union; |
| | | FlagStatus uc_recv_flag; |
| | | } UC_RECV_PARA_T; |
| | | |
| | |
| | | // extern UC_PROTOCOL_HEAD_T uc_protocol_head_g; |
| | | |
| | | |
| | | |
| | | void up_comm_uart_enable(void); |
| | | void upperComPro(void); |
| | | #endif |