goodixmoc: Fix some big/little endian support issues

Goodix driver is not working fine in BigEndian architectures. This
commit fixes some of these issues.

Related: #236
This commit is contained in:
fengqiangguo
2020-12-16 10:31:46 +08:00
committed by Benjamin Berg
parent 3b83157e9b
commit e0c41c5444
3 changed files with 58 additions and 33 deletions
+2 -2
View File
@@ -89,7 +89,7 @@ typedef struct _gxfp_version_info
uint8_t interface[GX_VERSION_LEN];
uint8_t protocol[GX_VERSION_LEN];
uint8_t flashVersion[GX_VERSION_LEN];
uint8_t reserved[62];
uint8_t reserved[38];
} gxfp_version_info_t, *pgxfp_version_info_t;
@@ -225,7 +225,7 @@ int gx_proto_parse_header (uint8_t *buffer,
int gx_proto_parse_body (uint16_t cmd,
uint8_t *buffer,
uint32_t buffer_len,
uint16_t buffer_len,
pgxfp_cmd_response_t presponse);
int gx_proto_init_sensor_config (pgxfp_sensor_cfg_t pconfig);