blob: c7fcd805e4ffdc72880b47b8b4c64d1a0e341ebf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#include <fwk_thread.h>
#include <fwk_assert.h>
#include <fwk_macros.h>
#include <fwk_math.h>
#include <fwk_mm.h>
#include <fwk_module.h>
#include <fwk_module_idx.h>
#include <fwk_notification.h>
#include <fwk_status.h>
#include <fwk_id.h>
#include <mod_clock.h>
#include <mod_hello.h>
#include <mod_log.h>
#include <fwk_log.h>
struct mod_hello_module_config *test_config;
struct mod_log_api *log_api;
static int hello_init(fwk_id_t module_id, unsigned int element_count,
const void *config)
{
test_config = (struct mod_hello_module_config *) config;
return FWK_SUCCESS;
}
int hello_start(fwk_id_t id)
{
FWK_LOG_INFO("[HELLO] hello_start\n");
return FWK_SUCCESS;
}
static int hello_bind(fwk_id_t id, unsigned int round)
{
return FWK_SUCCESS;
}
const struct fwk_module module_hello = {
.name = "HELLO",
.type = FWK_MODULE_TYPE_DRIVER,
.init = hello_init,
.bind = hello_bind,
.start = hello_start,
};
|