BlueNinja BSP  0.5
Cerevo BlueNinja(CDP-TZ01B) Board Support Packageリファレンスマニュアル
TZ01_system.h
[詳解]
1 
8 /*
9 Copyright 2015 Cerevo Inc.
10 
11 Licensed under the Apache License, Version 2.0 (the "License");
12 you may not use this file except in compliance with the License.
13 You may obtain a copy of the License at
14 
15  http://www.apache.org/licenses/LICENSE-2.0
16 
17 Unless required by applicable law or agreed to in writing, software
18 distributed under the License is distributed on an "AS IS" BASIS,
19 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 See the License for the specific language governing permissions and
21 limitations under the License.
22 */
23 
24 #ifndef _TZ01_SYSTEM_H_
25 #define _TZ01_SYSTEM_H_
26 
27 #include <stdint.h>
28 #include <stdbool.h>
29 #include "TZ01_system_conf.h"
30 
35 typedef enum {
40 
48 bool TZ01_system_init(void);
49 
57 
58 
59 
60 
65 typedef struct {
66  bool is_active;
67  uint32_t timeout;
69 
74 typedef struct {
77 
85 bool TZ01_system_tick_clear(void);
86 
96 bool TZ01_system_tick_start(TZ01_SYSTEM_TICK_NO tim_no, uint32_t ms_timeout);
97 
107 
117 
127 
128 
129 #endif /* _TZ01_SYSTEM_H_ */
TZ01_system_RUNEVT TZ01_system_run(void)
Running system library.
Definition: TZ01_system.c:256
bool TZ01_system_tick_stop(TZ01_SYSTEM_TICK_NO tim_no)
Stop tick timer.
Definition: TZ01_system.c:159
bool TZ01_system_tick_is_active(TZ01_SYSTEM_TICK_NO tim_no)
Get tick timer activity.
Definition: TZ01_system.c:171
Tick timer information.
Definition: TZ01_system.h:65
Definition: TZ01_system.h:38
Tick timer.
Definition: TZ01_system.h:74
Definition: TZ01_system.h:37
bool TZ01_system_tick_clear(void)
Clear tick timer.
Definition: TZ01_system.c:127
bool TZ01_system_tick_start(TZ01_SYSTEM_TICK_NO tim_no, uint32_t ms_timeout)
Start tick timer.
Definition: TZ01_system.c:140
Definition: TZ01_system.h:36
Cerevo CDP-TZ01B system configuration.
bool TZ01_system_tick_check_timeout(TZ01_SYSTEM_TICK_NO tim_no)
Check tick timer timeout.
Definition: TZ01_system.c:180
TZ01_SYSTEM_TICK_NO
Definition: tz01_system_conf.h:36
Definition: tz01_system_conf.h:44
bool is_active
Definition: TZ01_system.h:66
bool TZ01_system_init(void)
Initialize system library.
Definition: TZ01_system.c:204
uint32_t timeout
Definition: TZ01_system.h:67
TZ01_system_RUNEVT
Definition: TZ01_system.h:35