C51 COMPILER V9.60.7.0 LT89XX_CFG 08/17/2024 22:06:33 PAGE 1 C51 COMPILER V9.60.7.0, COMPILATION OF MODULE LT89XX_CFG OBJECT MODULE PLACED IN .\Objects\lt89xx_cfg.obj COMPILER INVOKED BY: d:\Keil\C51\BIN\C51.EXE Src\lt89xx_cfg.c OMF2 OPTIMIZE(8,SPEED) BROWSE INCDIR(.\Src;.\Task;.\Task\c -pu_port\S92F8003A;.\Task\cfg;.\Task\pt_thread;.\SC92F8003_Lib\Inc) DEBUG CODE LISTINCLUDE SYMBOLS PRINT(.\Listings\lt89x -x_cfg.lst) PREPRINT(.\Listings\lt89xx_cfg.i) OBJECT(.\Objects\lt89xx_cfg.obj) line level source 1 #include "LT89xx_cfg.h" 1 =1 #ifndef _LT89XX_CFG_H_ 2 =1 #define _LT89XX_CFG_H_ 3 =1 4 =1 #include "stdint.h" 1 =2 #ifndef _STD_INT_H_ 2 =2 #define _STD_INT_H_ 3 =2 typedef signed long int32_t; 4 =2 typedef unsigned long uint32_t; 5 =2 typedef signed char int8_t; 6 =2 typedef unsigned char uint8_t; 7 =2 typedef signed int int16_t; 8 =2 typedef unsigned int uint16_t; 9 =2 #endif 5 =1 #include "al_helper.h" 1 =2 /* 2 =2 * al_helper.h 3 =2 * 4 =2 * Created on: 2023-4-20 5 =2 * Author: xukaiming 6 =2 */ 7 =2 8 =2 #ifndef _AL_HELPER_H_ 9 =2 #define _AL_HELPER_H_ 10 =2 11 =2 #include "stdint.h" 1 =3 #ifndef _STD_INT_H_ =3 #define _STD_INT_H_ =3 typedef signed long int32_t; =3 typedef unsigned long uint32_t; =3 typedef signed char int8_t; =3 typedef unsigned char uint8_t; =3 typedef signed int int16_t; =3 typedef unsigned int uint16_t; =3 #endif 12 =2 13 =2 #ifdef __cplusplus =2 extern "C" { =2 #endif 16 =2 17 =2 //#define AL_STATIC static 18 =2 #define AL_STATIC 19 =2 #define AL_INLINE inline 20 =2 21 =2 #define TASK_WITH_PT 1 22 =2 #define TASK_WITH_NAME 0 23 =2 24 =2 #define XDATA xdata 25 =2 #define IDATA idata 26 =2 #define CONST code 27 =2 //#define CONST xdata 28 =2 29 =2 C51 COMPILER V9.60.7.0 LT89XX_CFG 08/17/2024 22:06:33 PAGE 2 30 =2 #ifndef UNUSED 31 =2 #define UNUSED(x) (void)(x) 32 =2 #endif 33 =2 34 =2 enum 35 =2 { 36 =2 false = 0, 37 =2 true =!false 38 =2 }; 39 =2 40 =2 #ifdef __cplusplus =2 } =2 #endif 43 =2 44 =2 #endif 45 =2 6 =1 #include "LT89xx_def.h" 1 =2 #ifndef _LT89XX_DEF_H_ 2 =2 #define _LT89XX_DEF_H_ 3 =2 #include "stdint.h" 1 =3 #ifndef _STD_INT_H_ =3 #define _STD_INT_H_ =3 typedef signed long int32_t; =3 typedef unsigned long uint32_t; =3 typedef signed char int8_t; =3 typedef unsigned char uint8_t; =3 typedef signed int int16_t; =3 typedef unsigned int uint16_t; =3 #endif 4 =2 5 =2 6 =2 7 =2 //************************************* 8 =2 //变量与函数声明部分 不建议修改 9 =2 #define LT89xx_6dBm 0x4800 10 =2 #define LT89xx_2dBm 0X1840 11 =2 #define LT89xx_1_7dBm 0X18C0 12 =2 #define LT89xx_1dBm 0X1940 13 =2 #define LT89xx_n0_3dBm 0X19C0 14 =2 #define LT89xx_n1_4dBm 0X1A40 15 =2 #define LT89xx_n2_2dBm 0X1AC0 16 =2 #define LT89xx_n3dBm 0X1B40 17 =2 #define LT89xx_n4dBm 0X1BC0 18 =2 #define LT89xx_n6_5dBm 0X1C40 19 =2 #define LT89xx_n7_3dBm 0X1CC0 20 =2 #define LT89xx_n8_2dBm 0X1D40 21 =2 #define LT89xx_n9_5dBm 0X1DC0 22 =2 #define LT89xx_n10_7dBm 0X1E40 23 =2 #define LT89xx_n12_2dBm 0X1EC0 24 =2 #define LT89xx_n14_2dBm 0X1F40 25 =2 #define LT89xx_n17dBm 0X1FC0 26 =2 27 =2 28 =2 #define REG07_W_R_EN 0x07 29 =2 30 =2 #define REG36_SYNC_WORD_15_00 0x24 31 =2 #define REG37_SYNC_WORD_31_16 0x25 32 =2 #define REG38_SYNC_WORD_47_32 0x26 33 =2 #define REG39_SYNC_WORD_63_48 0x27 34 =2 35 =2 #define REG52_W_R_PTR 0x34 36 =2 C51 COMPILER V9.60.7.0 LT89XX_CFG 08/17/2024 22:06:33 PAGE 3 37 =2 #define REG50_TXRX_FIFO 0x32 38 =2 39 =2 40 =2 typedef struct 41 =2 { 42 =2 uint8_t RegAddr; 43 =2 uint16_t RegValue; 44 =2 }LT89XX_CFG; 45 =2 46 =2 typedef struct 47 =2 { 48 =2 uint16_t Sync_Word_15_00; 49 =2 uint16_t Sync_Word_63_48; 50 =2 }Sync_Word; 51 =2 52 =2 typedef struct 53 =2 { 54 =2 Sync_Word SyncWord; 55 =2 uint16_t Freq; 56 =2 }LT89XX_Sync_Word_Channel; 57 =2 58 =2 59 =2 #endif 7 =1 8 =1 #define PKT_READ_REG 0 //PKT readtype 0= use hardware 1=read register 9 =1 #define EN_REG_FEED 0 // 10 =1 11 =1 #define GPIO_PKT GPIO1 12 =1 #define PIN_PKT GPIO_PIN_6 13 =1 14 =1 #define GPIO_RST_RF GPIO2 15 =1 #define PIN_RST_RF GPIO_PIN_3 16 =1 17 =1 #define RF_POWER LT89xx_6dBm 18 =1 19 =1 20 =1 #define REG_PLL_STATE 0x03 21 =1 #define REG_RSSI 0x06 22 =1 #define REG_EN_OSC 0x0A 23 =1 24 =1 25 =1 #define REG_INIT_SIZE 27 26 =1 27 =1 28 =1 extern CONST LT89XX_CFG LT89xx_cfg[REG_INIT_SIZE]; 29 =1 extern IDATA LT89XX_CFG LT89xx_cfg_default[REG_INIT_SIZE]; 30 =1 extern IDATA uint8_t id[REG_INIT_SIZE]; 31 =1 32 =1 33 =1 #endif 2 //CONST uint8_t SyncWord_Value[]=SyncWord; 3 CONST LT89XX_CFG LT89xx_cfg[REG_INIT_SIZE] = 4 { 5 {0x00,0x6FE0}, 6 {0x01,0x5681}, 7 {0x02,0x6617}, 8 9 {0x04,0x9CC9}, 10 {0x05,0x6637}, 11 12 {0x07,0x004C}, //{7, 0x00, 0x30}, //channel freq and Start/Stop Tx,Rx 13 {0x08,0x6C90}, C51 COMPILER V9.60.7.0 LT89XX_CFG 08/17/2024 22:06:33 PAGE 4 14 //{0x09,0x4800}, //set power 15 {0x09,RF_POWER}, //set power 16 17 //{0X0A,0x7FFD}, //{10, 0x7F, 0xFD}, - 18 19 {0x0B,0x0008}, //RSSI on 20 21 //{0x0C, 0x0000}, //C 22 23 {0x0D,0x48BD}, 24 {0x16,0x00FF}, 25 //{0x17,0x8005}, //{23, 0x80, 0x05}, //17 26 {0x18,0x0067}, 27 28 //{0x19,0x1659}, //{25, 0x16, 0x59}, //19 29 //{0x20,0x19E0}, //{26, 0x19, 0xE0}, //20 30 31 {0x1A,0x19E0}, 32 {0x1B,0x1301}, //1Mbps 33 34 //{0x1C,0x1800}, //{28, 0x18, 0x00}, //1C 35 36 {0x20,0x4800}, 37 {0x21,0x3FC7}, 38 {0x22,0x2000}, 39 {0x23,0x0300}, 40 {0x24,0x7236}, //{36, 0x03, 0x80},//同步字配置 41 42 //{0x25,0x068C}, //{37, 0x06, 0x8C}, //25 43 //{0x26,0x5A5A}, //{38, 0x5A, 0x5A}, //26 44 45 {0x27,0x1809}, //{39, 0x5A, 0x5A},//同步字配置 46 {0x28,0x4402}, //{39, 0x5A, 0x5A}, 47 {0x29,0xB000}, //{41, 0xB0, 0x00}, 48 {0x2A,0xFDB0}, //{42, 0xFD, 0xB0}, 49 50 //baudrate 1M 51 {0x2C,0x0101}, //{44, 0x01, 0x00}, 52 {0x2D,0x0152}, //{45, 0x01, 0x52}, 53 54 }; 55 56 #if EN_REG_FEED IDATA LT89XX_CFG LT89xx_cfg_default[REG_INIT_SIZE]; IDATA uint8_t id[REG_INIT_SIZE]; #endif 60 C51 COMPILER V9.60.7.0 LT89XX_CFG 08/17/2024 22:06:33 PAGE 5 ASSEMBLY LISTING OF GENERATED OBJECT CODE C51 COMPILER V9.60.7.0 LT89XX_CFG 08/17/2024 22:06:33 PAGE 6 NAME CLASS MSPACE TYPE OFFSET SIZE ==== ===== ====== ==== ====== ==== uint16_t . . . . . . . . . . . . . . . TYPEDEF ----- U_INT ----- 2 int32_t. . . . . . . . . . . . . . . . TYPEDEF ----- LONG ----- 4 int16_t. . . . . . . . . . . . . . . . TYPEDEF ----- INT ----- 2 false. . . . . . . . . . . . . . . . . E_CONST ----- U_CHAR ----- 1 LT89xx_cfg . . . . . . . . . . . . . . PUBLIC CODE ARRAY 0000H 81 Sync_Word. . . . . . . . . . . . . . . TYPEDEF ----- STRUCT ----- 4 Sync_Word_15_00. . . . . . . . . . . MEMBER ----- U_INT 0000H 2 Sync_Word_63_48. . . . . . . . . . . MEMBER ----- U_INT 0002H 2 true . . . . . . . . . . . . . . . . . E_CONST ----- U_CHAR ----- 1 uint8_t. . . . . . . . . . . . . . . . TYPEDEF ----- U_CHAR ----- 1 int8_t . . . . . . . . . . . . . . . . TYPEDEF ----- CHAR ----- 1 LT89XX_Sync_Word_Channel . . . . . . . TYPEDEF ----- STRUCT ----- 6 SyncWord . . . . . . . . . . . . . . MEMBER ----- STRUCT 0000H 4 Freq . . . . . . . . . . . . . . . . MEMBER ----- U_INT 0004H 2 LT89XX_CFG . . . . . . . . . . . . . . TYPEDEF ----- STRUCT ----- 3 RegAddr. . . . . . . . . . . . . . . MEMBER ----- U_CHAR 0000H 1 RegValue . . . . . . . . . . . . . . MEMBER ----- U_INT 0001H 2 uint32_t . . . . . . . . . . . . . . . TYPEDEF ----- U_LONG ----- 4 MODULE INFORMATION: STATIC OVERLAYABLE CODE SIZE = ---- ---- CONSTANT SIZE = 81 ---- XDATA SIZE = ---- ---- PDATA SIZE = ---- ---- DATA SIZE = ---- ---- IDATA SIZE = ---- ---- BIT SIZE = ---- ---- EDATA SIZE = ---- ---- HDATA SIZE = ---- ---- XDATA CONST SIZE = ---- ---- FAR CONST SIZE = ---- ---- END OF MODULE INFORMATION. C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)