| | |
| | | #include "../common/net.h" |
| | | #include "platform.h" |
| | | #include "../mcu/mcu_if.h" |
| | | #include "../utils/xconvert.h" |
| | | |
| | | using namespace std; |
| | | |
| | |
| | | sem_post(&sem_tx_mgr); |
| | | } |
| | | |
| | | void PlatformTxInit(const uint8_t *phone) |
| | | void PlatformTxInit(void) |
| | | { |
| | | //2019101500000001 |
| | | memcpy(PhoneNumber, phone, PHONE_NUM_SIZE); |
| | | |
| | | /* PhoneNumber[0] = 0x20; |
| | | PhoneNumber[1] = 0x19; |
| | | PhoneNumber[2] = 0x10; |
| | |
| | | pthread_create(&pid, &attr, TxQueueMgrThread, NULL); |
| | | } |
| | | |
| | | void SetPlatformTxPhoneNum(const char *phone) |
| | | { |
| | | ConvertPhoneNum(PhoneNumber, sizeof(PhoneNumber), phone); |
| | | } |
| | | |
| | | void CommonRespend(uint8_t access, uint16_t seq, uint16_t id, uint8_t value) |
| | | { |
| | | uint8_t data[5]; |