Add bootloader to DeviceInformationService.h

This commit is contained in:
liamcharger 2024-10-21 13:01:46 -04:00 committed by GitHub
parent 35570edafa
commit f3f0fd568d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,6 +6,7 @@
#undef max
#undef min
#include "Version.h"
#include "BootloaderVersion.h"
namespace Pinetime {
namespace Controllers {
@ -24,6 +25,7 @@ namespace Pinetime {
static constexpr uint16_t fwRevisionId {0x2a26};
static constexpr uint16_t hwRevisionId {0x2a27};
static constexpr uint16_t swRevisionId {0x2a28};
static constexpr uint16_t bootloaderVersionId {0x2a2B};
static constexpr const char* manufacturerName = "PINE64";
static constexpr const char* modelNumber = "PineTime";
@ -31,6 +33,7 @@ namespace Pinetime {
static constexpr const char* serialNumber = "0";
static constexpr const char* fwRevision = Version::VersionString();
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};
@ -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 bootloaderVersionUuid {.u {.type = BLE_UUID_TYPE_16}, .value = bootloaderVersionId};
struct ble_gatt_chr_def characteristicDefinition[7];
struct ble_gatt_svc_def serviceDefinition[2];
};