Contiki-NG
Toggle main menu visibility
Loading...
Searching...
No Matches
platform.c
1
/*
2
* Copyright (c) 2026, RISE Research Institutes of Sweden AB
3
* All rights reserved.
4
*
5
* SPDX-License-Identifier: BSD-3-Clause
6
*/
7
8
#include "contiki.h"
9
#include "
sys/process.h
"
10
#include "
sys/etimer.h
"
11
#include "sys/clock.h"
12
#include "sys/int-master.h"
13
14
void
15
platform_init_stage_one
(
void
)
16
{
17
}
18
19
void
20
platform_init_stage_two
(
void
)
21
{
22
}
23
24
void
25
platform_init_stage_three
(
void
)
26
{
27
}
28
29
void
30
platform_main_loop
(
void
)
31
{
32
while
(1) {
33
process_run
();
34
etimer_request_poll
();
35
}
36
}
37
38
void
39
platform_idle
(
void
)
40
{
41
}
etimer.h
Event timer header file.
platform_init_stage_three
void platform_init_stage_three()
Final stage of platform driver initialisation.
Definition
platform.c:165
platform_init_stage_one
void platform_init_stage_one(void)
Basic (Stage 1) platform driver initialisation.
Definition
platform.c:113
platform_idle
void platform_idle()
The platform's idle/sleep function.
Definition
platform.c:181
platform_init_stage_two
void platform_init_stage_two()
Stage 2 of platform driver initialisation.
Definition
platform.c:122
etimer_request_poll
void etimer_request_poll(void)
Make the event timer aware that the clock has changed.
Definition
etimer.c:145
platform_main_loop
void platform_main_loop()
The platform's main loop, if provided.
Definition
platform.c:124
process_run
process_num_events_t process_run(void)
Run the system once - call poll handlers and process one event.
Definition
process.c:305
process.h
Header file for the Contiki process interface.
arch
platform
nrf-vpr
platform.c
Generated on
for Contiki-NG by
1.17.0