Mark3 Realtime Kernel
|
Mark3 Port Configuration. More...
Go to the source code of this file.
Macros | |
#define | KERNEL_NUM_PRIORITIES (16) |
#define | KERNEL_TIMERS_THREAD_PRIORITY (KERNEL_NUM_PRIORITIES - 1) |
#define | THREAD_QUANTUM_DEFAULT (4) |
#define | KERNEL_STACK_GUARD_DEFAULT (32) |
#define | PORT_COROUTINE_PRIORITIES (8) |
#define | AVR (1) |
#define | K_WORD uint8_t |
Size of a data word. More... | |
#define | K_ADDR uint16_t |
Size of an address (pointer size) More... | |
#define | K_INT int32_t |
#define | PORT_PRIO_TYPE uint8_t |
Type used for bitmap in the PriorityMap class. More... | |
#define | PORT_PRIO_MAP_WORD_SIZE (1) |
size of PORT_PRIO_TYPE in bytes More... | |
#define | PORT_SYSTEM_FREQ ((uint32_t)16000000) |
CPU Frequency in Hz. More... | |
#define | PORT_TIMER_FREQ ((uint32_t)(PORT_SYSTEM_FREQ / 1000)) |
Fixed timer interrupt frequency. More... | |
#define | PORT_KERNEL_DEFAULT_STACK_SIZE ((K_ADDR)384) |
#define | PORT_KERNEL_TIMERS_THREAD_STACK ((K_ADDR)384) |
#define | PORT_TIMER_COUNT_TYPE uint16_t |
Timer counter type. More... | |
#define | PORT_MIN_TIMER_TICKS (0) |
#define | PORT_OVERLOAD_NEW (1) |
#define | PORT_STACK_GROWS_DOWN (1) |
#define | PORT_USE_HW_CLZ (1) |
Mark3 Port Configuration.
This file is used to configure the kernel for your specific target CPU in order to provide the optimal set of features for a given use case.
!! NOTE: This file must ONLY be included from mark3cfg.h
Definition in file portcfg.h.
#define AVR (1) |
#define K_WORD uint8_t |
Size of a data word.
Define types that map to the CPU Architecture's default data-word and address size.
#define KERNEL_NUM_PRIORITIES (16) |
Define the number of thread priorities that the kernel's scheduler will support. The number of thread priorities is limited only by the memory of the host CPU, as a ThreadList object is statically-allocated for each thread priority.
In practice, systems rarely need more than 32 priority levels, with the most complex having the capacity for 256.
#define KERNEL_TIMERS_THREAD_PRIORITY (KERNEL_NUM_PRIORITIES - 1) |
#define PORT_COROUTINE_PRIORITIES (8) |
#define PORT_KERNEL_DEFAULT_STACK_SIZE ((K_ADDR)384) |
Define the default/minimum size of a thread stack
#define PORT_KERNEL_TIMERS_THREAD_STACK ((K_ADDR)384) |
#define PORT_MIN_TIMER_TICKS (0) |
#define PORT_OVERLOAD_NEW (1) |
#define PORT_PRIO_MAP_WORD_SIZE (1) |
#define PORT_PRIO_TYPE uint8_t |
#define PORT_STACK_GROWS_DOWN (1) |
#define PORT_SYSTEM_FREQ ((uint32_t)16000000) |
#define PORT_TIMER_COUNT_TYPE uint16_t |
#define PORT_TIMER_FREQ ((uint32_t)(PORT_SYSTEM_FREQ / 1000)) |
Fixed timer interrupt frequency.
Set the timer frequency. If running in tickless mode, this is simply the frequency at which the free-running kernel timer increments.
In tick-based mode, this is the frequency at which the fixed-frequency kernel tick interrupt occurs.
#define PORT_USE_HW_CLZ (1) |