mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-10-22 15:11:51 +02:00
Add bootloader to DeviceInformationService.h
This commit is contained in:
parent
35570edafa
commit
f3f0fd568d
|
@ -6,6 +6,7 @@
|
||||||
#undef max
|
#undef max
|
||||||
#undef min
|
#undef min
|
||||||
#include "Version.h"
|
#include "Version.h"
|
||||||
|
#include "BootloaderVersion.h"
|
||||||
|
|
||||||
namespace Pinetime {
|
namespace Pinetime {
|
||||||
namespace Controllers {
|
namespace Controllers {
|
||||||
|
@ -24,6 +25,7 @@ namespace Pinetime {
|
||||||
static constexpr uint16_t fwRevisionId {0x2a26};
|
static constexpr uint16_t fwRevisionId {0x2a26};
|
||||||
static constexpr uint16_t hwRevisionId {0x2a27};
|
static constexpr uint16_t hwRevisionId {0x2a27};
|
||||||
static constexpr uint16_t swRevisionId {0x2a28};
|
static constexpr uint16_t swRevisionId {0x2a28};
|
||||||
|
static constexpr uint16_t bootloaderVersionId {0x2a2B};
|
||||||
|
|
||||||
static constexpr const char* manufacturerName = "PINE64";
|
static constexpr const char* manufacturerName = "PINE64";
|
||||||
static constexpr const char* modelNumber = "PineTime";
|
static constexpr const char* modelNumber = "PineTime";
|
||||||
|
@ -31,6 +33,7 @@ namespace Pinetime {
|
||||||
static constexpr const char* serialNumber = "0";
|
static constexpr const char* serialNumber = "0";
|
||||||
static constexpr const char* fwRevision = Version::VersionString();
|
static constexpr const char* fwRevision = Version::VersionString();
|
||||||
static constexpr const char* swRevision = "InfiniTime";
|
static constexpr const char* swRevision = "InfiniTime";
|
||||||
|
static constexpr const char* bootloaderVersion = BootloaderVersion::VersionString();
|
||||||
|
|
||||||
static constexpr ble_uuid16_t deviceInfoUuid {.u {.type = BLE_UUID_TYPE_16}, .value = deviceInfoId};
|
static constexpr ble_uuid16_t deviceInfoUuid {.u {.type = BLE_UUID_TYPE_16}, .value = deviceInfoId};
|
||||||
|
|
||||||
|
@ -46,6 +49,8 @@ namespace Pinetime {
|
||||||
|
|
||||||
static constexpr ble_uuid16_t swRevisionUuid {.u {.type = BLE_UUID_TYPE_16}, .value = swRevisionId};
|
static constexpr ble_uuid16_t swRevisionUuid {.u {.type = BLE_UUID_TYPE_16}, .value = swRevisionId};
|
||||||
|
|
||||||
|
static constexpr ble_uuid16_t bootloaderVersionUuid {.u {.type = BLE_UUID_TYPE_16}, .value = bootloaderVersionId};
|
||||||
|
|
||||||
struct ble_gatt_chr_def characteristicDefinition[7];
|
struct ble_gatt_chr_def characteristicDefinition[7];
|
||||||
struct ble_gatt_svc_def serviceDefinition[2];
|
struct ble_gatt_svc_def serviceDefinition[2];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue