zzz.h
typedef struct
{
uint8_t ConfigVersion;
uint8_t XOutputMax_L;
uint8_t XOutputMax_H;
uint8_t YOutputMax_L;
uint8_t YOutputMax_H;
uint8_t TouchNumber;
uint8_t ModuleSwitch[2];
uint8_t ShakeCount;
uint8_t Filter;
uint8_t LargeTouch;
uint8_t NoiseReduction;
uint8_t ScreenTouchLvl;
uint8_t ScreenLeaveLvl;
uint8_t LowPowerControl;
uint8_t RefreshRate;
uint8_t xThreshold;
uint8_t yThreshold;
uint8_t xSpeedLimit;
uint8_t ySpeedLimit;
uint8_t Space[2];
uint8_t MiniFilter;
uint8_t StretchR0;
uint8_t StretchR1;
uint8_t StretchR2;
uint8_t StretchRM;
uint8_t DrvGroupAnum;
uint8_t DrvGroupBnum;
uint8_t SensorNum;
uint8_t FreqAfactor;
uint8_t FreqBfactor;
uint8_t PannelBitFreq_L;
uint8_t PannelBitFreq_H;
uint8_t PannelSensorTime_L;
uint8_t PannelSensorTime_H;
uint8_t PannelTxGain;
uint8_t PannelRxGain;
uint8_t PannelDumpShift;
uint8_t DrvFrameControl;
uint8_t ChargingLvlUp;
uint8_t ModuleSwitch3;
uint8_t GestureDis;
uint8_t GestureLongPressTime;
uint8_t XorYSlopeAdjust;
uint8_t GestureControl;
uint8_t GestureSwitch1;
uint8_t GestureSwitch2;
uint8_t GestureRefreshRate;
uint8_t GestureTouchLvl;
uint8_t NewGreenWakeUpLvl;
uint8_t FreqHoppStart;
uint8_t FreqHoppEnd;
uint8_t NoiseDetectTimes;
uint8_t HoppingFlag;
uint8_t HoppingThreshold;
uint8_t NoiseThreshold;
uint8_t NoiseMinThreshold;
uint8_t reserved2;
uint8_t HoppSensorGroup;
uint8_t HoppSeg1Normalize;
uint8_t HoppSeg1Factor;
uint8_t MainClockAdjust;
uint8_t HoppSeg2Normalize;
uint8_t HoppSeg2Factor;
uint8_t reserved3;
uint8_t HoppSeg3Normalize;
uint8_t HoppSeg3Factor;
uint8_t reserved4;
uint8_t HoppSeg4Normalize;
uint8_t HoppSeg4Factor;
uint8_t reserved5;
uint8_t HoppSeg5Normalize;
uint8_t HoppSeg5Factor;
uint8_t reserved6;
uint8_t HoppSeg6Normalize;
uint8_t Key1;
uint8_t Key2;
uint8_t Key3;
uint8_t Key4;
uint8_t KeyArea;
uint8_t KeyTouchLvl;
uint8_t KeyLeaveLvl;
uint8_t KeySens[2];
uint8_t KeyRestrain;
uint8_t KeyRestrainTime;
uint8_t GestureLargeTouch;
uint8_t reserved7[2];
uint8_t HotKnotNoiseMap;
uint8_t LinkThreshold;
uint8_t PxyThreshold;
uint8_t GHotDumpShift;
uint8_t GHotRXGain;
uint8_t FreqGain0;
uint8_t FreqGain1;
uint8_t FreqGain2;
uint8_t FreqGain3;
uint8_t reserved8[9];
uint8_t CombineDis;
uint8_t SplitSet;
uint8_t reserved9[2];
uint8_t SensorCH[14];
uint8_t reserved10[16];
uint8_t DriverCH[26];
uint8_t reserved11[16];
uint8_t ConfigChksum;
uint8_t ConfigFresh;
uint8_t Config0;
uint8_t Config1;
} GT911ConfInfo_TypeDef;
xxx.c
GT911ConfInfo_TypeDef GT911ConfInfo = {
0x5b, 0xbc, 0x02, 0x58, 0x02, 0x0A, 0x3d, 0x00, 0x01, 0x0a, 0x28, 0x0f, 0x5a, // 0x8047 - 0x8053
0x32, 0x03, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x18, 0x1a, // 0x8054 - 0x8060
0x14, 0x87, 0x28, 0x0a, 0x4d, 0x4f, 0xb2, 0x04, 0x00, 0x00, 0x01, 0x40, 0x03, // 0x8061 - 0x806D
0x1d, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32, // 0x806E - 0x807A
0x78, 0x94, 0xd5, 0x02, 0x07, 0x00, 0x00, 0x04, 0xa2, 0x36, 0x00, 0x8e, 0x41, // 0x807B - 0x8087
0x00, 0x80, 0x4d, 0x00, 0x73, 0x5c, 0x00, 0x69, 0x6e, 0x00, 0x69, 0x00, 0x00, // 0x8088 - 0x8094
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x8095 - 0x80A1
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x80A2 - 0x80AD
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x04, 0x06, 0x08, 0x0A, // 0x80AE - 0x80BA
0x0C, 0x0E, 0x10, 0x12, 0x14, 0xff, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, // 0x80BB - 0x80C7
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x26, // 0x80C8 - 0x80D4
0x24, 0x22, 0x21, 0x20, 0x1e, 0x1e, 0x1d, 0x0c, 0x0a, 0x08, 0x06, 0x04, 0x02, // 0x80D5 - 0x80E1
0x00, 0xff, 0xff, 0xff, 0xff, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, // 0x80E2 - 0x80EE
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x80EF - 0x80FB
0x00, 0x00, 0x2D, 0x01,0xff,0xff }; // 0x80FC - 0x8100 */
Выдает предупреждение…
missing braces around initializer [-Wmissing-braces]
Почему ? у меня же линейный массив… ? и как убрать предупреждение?
или только обуть каждую строку в {},
Спасибо