/* Copyright 2020-2023 Piotr Wilkon This file is part of VP-Digi. VP-Digi is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. VP-Digi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with VP-Digi. If not, see . */ #ifndef SYSTICK_H_ #define SYSTICK_H_ #include #define SYSTICK_FREQUENCY 100 //systick frequency in Hz #define SYSTICK_INTERVAL (1000 / SYSTICK_FREQUENCY) //systick interval in milliseconds /** * @brief Initialize SysTick */ void SysTickInit(void); /** * @brief Get current SysTick counter value * @return Current SysTick counter value */ uint32_t SysTickGet(void); /** * @brief Execute a blocking delay * @param ms Time in milliseconds */ void Delay(uint32_t ms); #endif /* SYSTICK_H_ */