Переход в новую организацию

This commit is contained in:
cfif 2025-03-11 12:05:56 +03:00
commit db8bd8c7f3
2 changed files with 40 additions and 0 deletions

19
Src/SystemDelayCmsisRtos.c Executable file
View File

@ -0,0 +1,19 @@
//
// Created by xemon on 29.08.22.
//
#include <cmsis_os.h>
#include "SystemDelayInterface.h"
const uint32_t SystemWaitForever = osWaitForever;
void SystemDelayMs(uint32_t ms) {
osDelay(SystemMsToTicks(ms));
}
uint32_t SystemMsToTicks(uint32_t ms) {
return (ms * osKernelGetTickFreq()) / 1000;
}
uint32_t SystemGetMs() {
return (osKernelGetTickCount() * osKernelGetTickFreq()) / 1000;
}

21
modular.json Executable file
View File

@ -0,0 +1,21 @@
{
"dep": [
{
"type": "git",
"provider": "GONEC_BOOT_MODEM",
"repo": "CmsisRtosInterface"
},
{
"type": "git",
"provider": "GONEC_BOOT_MODEM",
"repo": "SystemDelayInterface"
}
],
"cmake": {
"inc_dirs": [
],
"srcs": [
"Src/**.c"
]
}
}