ADD my candidate applications
Some checks failed
Build test application / build-cli-v1 (debug, DISCO_H747I, tests-bike-computer-bike-system) (push) Failing after 2s
Build test application / build-cli-v1 (debug, DISCO_H747I, tests-bike-computer-sensor-device) (push) Failing after 3s
Build test application / build-cli-v1 (debug, DISCO_H747I, tests-bike-computer-speedometer) (push) Failing after 3s
Some checks failed
Build test application / build-cli-v1 (debug, DISCO_H747I, tests-bike-computer-bike-system) (push) Failing after 2s
Build test application / build-cli-v1 (debug, DISCO_H747I, tests-bike-computer-sensor-device) (push) Failing after 3s
Build test application / build-cli-v1 (debug, DISCO_H747I, tests-bike-computer-speedometer) (push) Failing after 3s
This commit is contained in:
24
my_candidate_applications.h
Normal file
24
my_candidate_applications.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include "update-client/candidate_applications.hpp"
|
||||
|
||||
namespace bike_computer {
|
||||
class MyCandidateApplications : public update_client::CandidateApplications {
|
||||
public:
|
||||
MyCandidateApplications(
|
||||
BlockDevice &blockDevice,
|
||||
mbed::bd_addr_t storageAddr,
|
||||
mbed::bd_size_t storageSize,
|
||||
uint32_t headerSize,
|
||||
uint32_t nSlots
|
||||
);
|
||||
virtual uint32_t getSlotForCandidate() override;
|
||||
};
|
||||
}
|
||||
|
||||
update_client::CandidateApplications *createCandidateApplications(
|
||||
BlockDevice &blockDevice,
|
||||
mbed::bd_addr_t storageAddr,
|
||||
mbed::bd_size_t storageSize,
|
||||
uint32_t headerSize,
|
||||
uint32_t nSlots
|
||||
);
|
||||
Reference in New Issue
Block a user