Переход в новую организацию
This commit is contained in:
commit
db8bd8c7f3
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue