Files
Cpp-in-Embedded-Systems/Chapter05/gsm_lib/hal/inc/hal.hpp
Amar Mahmutbegovic 19c06fe786 add Chapter05/gsm_lib
2024-05-19 23:48:23 +02:00

21 lines
230 B
C++

#pragma once
#include <cstdint>
#include <stm32f0xx_hal.h>
namespace hal
{
inline void init()
{
HAL_Init();
}
struct time
{
static std::uint32_t get_ms()
{
return HAL_GetTick();
}
};
}; // namespace hal