河北水利局项目
This commit is contained in:
25
yw/hearttime.c
Normal file
25
yw/hearttime.c
Normal file
@@ -0,0 +1,25 @@
|
||||
#include "stdafx.h"
|
||||
#include "hearttime.h"
|
||||
|
||||
static u8 spacetime = 120;
|
||||
|
||||
u8 hearttime_get()
|
||||
{
|
||||
return spacetime;
|
||||
}
|
||||
|
||||
void hearttime_set(u8 space)
|
||||
{
|
||||
spacetime = space;
|
||||
}
|
||||
|
||||
void hearttime_write()
|
||||
{
|
||||
heart_writefile(&spacetime,sizeof(spacetime));
|
||||
}
|
||||
|
||||
void hearttime_read()
|
||||
{
|
||||
heart_readfile(&spacetime,sizeof(spacetime));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user