Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
k-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈伟灿
k-sdk
Commits
3d890a75
Commit
3d890a75
authored
Jun 28, 2021
by
chen.weican
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改内容】添加.h
【提交人】陈伟灿
parent
0dacf7ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
common/hal/infra_config.h
common/hal/infra_config.h
+5
-0
common/hal/kk_hal.h
common/hal/kk_hal.h
+23
-0
No files found.
common/hal/infra_config.h
0 → 100644
View file @
3d890a75
#ifndef _INFRA_CONFIG_H_
#define _INFRA_CONFIG_H_
#endif
common/hal/kk_hal.h
0 → 100644
View file @
3d890a75
#ifndef __KK_HAL_H__
#define __KK_HAL_H__
#include <stdio.h>
#include <sys/time.h>
#include <time.h>
#include "kk_product.h"
#ifndef _IN_
#define _IN_
#endif
#ifndef _OU_
#define _OU_
#endif
uint64_t
HAL_UptimeMs
(
void
);
time_t
HAL_Uptimes
(
void
);
uint32_t
HAL_Get_IP
(
char
ip_str
[
NETWORK_ADDR_LEN
],
const
char
*
ifname
);
time_t
HAL_GetTime
(
void
);
time_t
HAL_GetTime_s
(
char
*
outStr
);
int
HAL_Snprintf
(
_IN_
char
*
str
,
const
int
len
,
const
char
*
fmt
,
...);
int
HAL_Vsnprintf
(
_IN_
char
*
str
,
_IN_
const
int
len
,
_IN_
const
char
*
format
,
va_list
ap
);
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment