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
45
46
//! Bern RTOS kernel configuration.
//!
//! This is the default kernel config. To apply your own config clone the this
//! crate into your project and apply a cargo path to override the default
//! config:
//! ```toml
//! # `Cargo.toml`
//! [patch.crates-io]
//! bern-conf = { path = "conf" }
//! ```
//!
//! [Example Configuration](../src/bern_conf/conf.rs.html#18-44)

#![no_std]

use bern_conf_type::*;

pub const CONF: Conf = Conf {
    task: Task {
        pool_size: 8,
        priorities: 8,
    },
    event: Event {
        pool_size: 32,
    },
    memory: Memory {
        flash: MemorySection {
            start_address: 0x0800_0000,
            size: Size::S512K,
        },
        sram: MemorySection {
            start_address: 0x2000_0000,
            size: Size::S128K,
        },
        peripheral: MemorySection {
            start_address: 0x4000_0000,
            size: Size::S512M,
        },
        shared: MemorySection {
            // will be ignored, start of shared section is read via linker
            // symbol
            start_address: 0x2001FC00,
            size: Size::S1K,
        }
    },
};