AKOS
v1.0.0
Documentation
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1
/*
2
* config.h
3
*
4
* Created on: Jun 26, 2024
5
* Author: giahu
6
*/
11
12
#ifndef CONFIG_H
13
#define CONFIG_H
14
15
#ifdef __cplusplus
16
extern
"C"
17
{
18
#endif
19
#include <stddef.h>
20
#include <stdio.h>
21
#include <stdint.h>
22
23
/* Kernel common config */
24
#define OS_CFG_SYSTICK_CLOCK_HZ ((uint32_t)32000000)
25
#define OS_CFG_HEAP_SIZE ((size_t)2144U)
26
#define OS_CFG_PRIO_MAX (10)
27
#define OS_CFG_DELAY_MAX ((uint32_t)0xffffffffUL)
28
29
/* Task config */
30
#define OS_CFG_TASK_STK_SIZE_MIN ((size_t)17u)
31
#define OS_CFG_TASK_STACK_FILL_BYTE (0x5Au)
32
#define OS_CFG_TASK_MSG_Q_SIZE_NORMAL (8u)
33
34
/* Messages config */
35
#define OS_CFG_MSG_POOL_SIZE (32u)
36
37
/* Timers config */
38
#define OS_CFG_TIMER_POOL_SIZE (8u)
39
#define OS_CFG_TIMER_TASK_PRI (0u)
40
41
/* Log config */
42
#ifndef OS_CFG_USE_LOG
43
#define OS_CFG_USE_LOG (1u)
44
#endif
45
46
#ifndef OS_CFG_USER_PRINT
47
#define OS_CFG_USER_PRINT(...) printf(__VA_ARGS__)
48
#endif
49
50
/* Command line interface config */
51
#ifndef OS_CFG_USE_CLI
52
#define OS_CFG_USE_CLI (0u)
53
#endif
54
55
#ifdef __cplusplus
56
}
57
#endif
58
#endif
/* CONFIG_H */
akos
kernel
config.h
Generated by
1.14.0