Skip to content

Commit

Permalink
feat: remove HAL_GetTick friendship from SystemTickTimerService (#359)
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Peters <richard.peters@philips.com>
  • Loading branch information
daantimmer and richardapeters committed Aug 7, 2024
1 parent 54942da commit 10e1bd1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 5 additions & 1 deletion hal_st/stm32fxxx/SystemTickTimerService.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include "hal_st/stm32fxxx/SystemTickTimerService.hpp"
#include "infra/timer/TickOnInterruptTimerService.hpp"
#include "infra/timer/Timer.hpp"
#include <chrono>
#include <cstdint>

#include DEVICE_HEADER
#include "hal/interfaces/Gpio.hpp"

extern uint32_t SystemCoreClock;

Expand Down
7 changes: 3 additions & 4 deletions hal_st/stm32fxxx/SystemTickTimerService.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@

#include "hal_st/cortex/InterruptCortex.hpp"
#include "infra/timer/TickOnInterruptTimerService.hpp"
#include "infra/timer/Timer.hpp"
#include "infra/util/InterfaceConnector.hpp"

extern "C" uint32_t HAL_GetTick();
#include <chrono>
#include <cstdint>

namespace hal
{
Expand All @@ -20,8 +21,6 @@ namespace hal
infra::TimePoint Now() const override;

private:
friend uint32_t ::HAL_GetTick();

void Invoke() override;
};
}
Expand Down

0 comments on commit 10e1bd1

Please sign in to comment.