nee, muss erst mal auf den neuesten Stand kommen, ich hoffe heute noch testen zu können.
Ich bekomme Deine Version nicht übersetzt:
CC build/fw_pipxtreme/fw_pipxtreme.bin.firmwareinfo.c
/home/jh/workspace/TauLabs/TauLabs-ernieift-picoC_next/build/fw_pipxtreme/fw_pipxtreme.bin.firmwareinfo.c:60:24: error: invalid suffix "xNone" on integer constant
/home/jh/workspace/TauLabs/TauLabs-ernieift-picoC_next/build/fw_pipxtreme/fw_pipxtreme.bin.firmwareinfo.c:61:15: error: 'None' undeclared here (not in a function)
make[1]: *** [/home/jh/workspace/TauLabs/TauLabs-ernieift-picoC_next/build/fw_pipxtreme/fw_pipxtreme.bin.firmwareinfo.o] Fehler 1
make: *** [fw_pipxtreme_tlfw] Fehler 2
jh@linux-cjtf:~/workspace/TauLabs/TauLabs-ernieift-picoC_next>
Das ist die erzeugte Datei fw_pipxtreme.bin.firmwareinfo.c:
#include <stdint.h>
/**
* We have 100 bytes for the whole description.
*
*
* Structure is:
* 4 bytes: header: "TlFw".
* 4 bytes: GIT commit tag (short version of SHA1).
* 4 bytes: Unix timestamp of compile time.
* 2 bytes: target platform. Should follow same rule as BOARD_TYPE and BOARD_REVISION in board define files.
* 26 bytes: commit tag if it is there, otherwise branch name. '-dirty' may be added if needed. Zero-padded.
* 20 bytes: SHA1 sum of the firmware.
* 20 bytes: SHA1 sum of the uavo definitions.
* 20 bytes: free for now.
*
*/
struct __attribute__((packed)) fw_version_info {
uint8_t magic[4];
uint32_t commit_hash_prefix;
uint32_t timestamp;
uint8_t board_type;
uint8_t board_revision;
uint8_t commit_tag_name[26];
uint8_t sha1sum[20];
uint8_t uavosha1[20];
uint8_t pad[20];
};
const struct fw_version_info fw_version_blob __attribute__((used)) __attribute__((__section__(".fw_version_blob"))) = {
.magic = { 'T','l','F','w' },
.commit_hash_prefix = 0xNone,
.timestamp = None,
.board_type = 0x03,
.board_revision = 0x01,
.commit_tag_name = "unreleased",
.sha1sum = { 0xb0,0x04,0x06,0xd0,0x6e,0x6a,0x0f,0x04,0xf5,0xca,0x76,0xaf,0x73,0x73,0xa3,0x33,0x5c,0x93,0xc8,0x1a },
.uavosha1 = { 0x4b,0x85,0x05,0xd9,0x3a,0xaa,0xf7,0x51,0x1f,0x57,0x46,0xf2,0x03,0xea,0x92,0x5f,0x9b,0x2c,0x4a,0x58 },
};
/**
* @}
*/