в модуле времени добавила функцию получения тиков. в папке variants добавила функции для работы с прерываниями. добавлена рыба библиотеки softserial

This commit is contained in:
klassents committed 2024-09-13 15:35:01 +07:00
1 parent 63217147e5
commit 136fbc78d3
8 files changed
+683 -15

No files matched your search

+5
View File
@@ -39,6 +39,11 @@ void SysTick_Init(void)
HAL_SCR1_Timer_Init(&hscr1_timer); // Ticks are 32 MHz
}
uint64_t SysTick_GetTicks(void)
{
return TICKS_IN_SYSTIMER;
}
// number of microseconds since start of the program
uint32_t micros(void)
{
+6
View File
@@ -30,6 +30,12 @@ extern "C" {
*/
void SysTick_Init(void);
/**
* \brief Returns the number of ticks since the Arduino board began running the current program.
* \return Number of ticks since the program started
*/
uint64_t SysTick_GetTicks(void);
/**
* \brief Returns the number of milliseconds since the Arduino board began running the current program.