ex

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Committer:
TMBOY
Date:
Tue Jul 18 16:54:45 2017 +0800
Revision:
47:9e361da97763
?

Who changed what in which revision?

UserRevisionLine numberNew contents of line
TMBOY 47:9e361da97763 1 #pragma once
TMBOY 47:9e361da97763 2 #include <stdint.h>
TMBOY 47:9e361da97763 3
TMBOY 47:9e361da97763 4 #define MAX_NAME_LENGTH 64
TMBOY 47:9e361da97763 5 #define MAX_VERSION_LENGTH 24
TMBOY 47:9e361da97763 6 #define MAX_APPID_LENGTH 16
TMBOY 47:9e361da97763 7
TMBOY 47:9e361da97763 8 typedef struct
TMBOY 47:9e361da97763 9 {
TMBOY 47:9e361da97763 10 char name[MAX_NAME_LENGTH + 1];
TMBOY 47:9e361da97763 11 char developer[MAX_NAME_LENGTH + 1];
TMBOY 47:9e361da97763 12 char version[MAX_VERSION_LENGTH + 1];
TMBOY 47:9e361da97763 13 char staged_version[MAX_VERSION_LENGTH + 1];
TMBOY 47:9e361da97763 14 }os_info_t;
TMBOY 47:9e361da97763 15
TMBOY 47:9e361da97763 16 typedef struct
TMBOY 47:9e361da97763 17 {
TMBOY 47:9e361da97763 18 char id[MAX_APPID_LENGTH + 1];
TMBOY 47:9e361da97763 19 char name[MAX_NAME_LENGTH + 1];
TMBOY 47:9e361da97763 20 char developer[MAX_NAME_LENGTH + 1];
TMBOY 47:9e361da97763 21 char version[MAX_VERSION_LENGTH + 1];
TMBOY 47:9e361da97763 22 char staged_version[MAX_VERSION_LENGTH + 1];
TMBOY 47:9e361da97763 23 char os_version[MAX_VERSION_LENGTH + 1];
TMBOY 47:9e361da97763 24 }app_info_t;