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)8192U)
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
/* Shell config */
42
#ifndef OS_CFG_USE_SHELL
43
#define OS_CFG_USE_SHELL (1u)
44
#define OS_CFG_SHELL_PROMPT_NAME "akos:~$ "
45
#endif
46
47
#define OS_CFG_USE_RUNTIME_STATS (1u)
48
49
#define OS_CFG_SHELL_TASK_PRI (1u)
50
#define OS_CFG_SHELL_TASK_MSG_Q_SIZE (8u)
51
#define OS_CFG_SHELL_TASK_STK_SIZE (192u)
52
#define OS_CFG_SHELL_RX_BUFFER_SIZE (128u)
53
#define OS_CFG_SHELL_LINE_BUFFER_SIZE (64u)
54
#define OS_CFG_SHELL_MAX_ARGS (8u)
55
56
/* Log config */
57
#ifndef OS_CFG_USE_LOG
58
#define OS_CFG_USE_LOG (1u)
59
#endif
60
61
#ifndef OS_CFG_USER_PRINT
62
#define OS_CFG_USER_PRINT(...) printf(__VA_ARGS__)
63
#endif
64
65
/* Command line interface config */
66
#ifndef OS_CFG_USE_CLI
67
#define OS_CFG_USE_CLI (0u)
68
#endif
69
70
#ifdef __cplusplus
71
}
72
#endif
73
#endif
/* CONFIG_H */
akos
kernel
config.h
Generated by
1.14.0