mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-16 23:18:24 +08:00
修改了Web后台的部分界面,增加了HAmqtt中的总电量传感器,后台新增mqtt上报频率设置
This commit is contained in:
31
mico-os/platform/RVMDK/thread_safe.c
Normal file
31
mico-os/platform/RVMDK/thread_safe.c
Normal file
@@ -0,0 +1,31 @@
|
||||
/***
|
||||
* File: patch_keil.c
|
||||
* porting iar project to keil, something need to do.
|
||||
*
|
||||
* Created by JerryYu @ Jan 13rd,2015
|
||||
* Ver: 0.1
|
||||
* */
|
||||
#include "common.h"
|
||||
#include "mico_rtos.h"
|
||||
|
||||
#ifndef NO_MICO_RTOS
|
||||
USED int _mutex_initialize(void* mutex)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
USED void _mutex_acquire(void* mutex)
|
||||
{
|
||||
mico_rtos_suspend_all_thread();
|
||||
}
|
||||
|
||||
USED void _mutex_release(void* mutex)
|
||||
{
|
||||
mico_rtos_resume_all_thread();
|
||||
}
|
||||
|
||||
USED void _mutex_free(void* mutex)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user