Skip to content

Commit

Permalink
Merge pull request 'Heapless memory pool' (#191) from heapless-mem-po…
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed May 22, 2024
2 parents 0b2d4f6 + 832250d commit 5cae0f7
Show file tree
Hide file tree
Showing 12 changed files with 1,183 additions and 229 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Install nextest
uses: taiki-e/install-action@nextest
- run: cargo nextest run --all-features
- run: cargo test --doc
- run: cargo test --doc --all-features

cross-check:
name: Check Cross-Compilation
Expand Down
2 changes: 1 addition & 1 deletion automation/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pipeline {
stage('Test') {
steps {
sh 'cargo nextest r --all-features'
sh 'cargo test --doc'
sh 'cargo test --doc --all-features'
}
}
stage('Check with all features') {
Expand Down
6 changes: 3 additions & 3 deletions satrs-example/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ pub mod pool {
use super::*;
pub fn create_static_pools() -> (StaticMemoryPool, StaticMemoryPool) {
(
StaticMemoryPool::new(StaticPoolConfig::new(
StaticMemoryPool::new(StaticPoolConfig::new_from_subpool_cfg_tuples(
vec![
(30, 32),
(15, 64),
Expand All @@ -193,7 +193,7 @@ pub mod pool {
],
true,
)),
StaticMemoryPool::new(StaticPoolConfig::new(
StaticMemoryPool::new(StaticPoolConfig::new_from_subpool_cfg_tuples(
vec![
(30, 32),
(15, 64),
Expand All @@ -208,7 +208,7 @@ pub mod pool {
}

pub fn create_sched_tc_pool() -> StaticMemoryPool {
StaticMemoryPool::new(StaticPoolConfig::new(
StaticMemoryPool::new(StaticPoolConfig::new_from_subpool_cfg_tuples(
vec![
(30, 32),
(15, 64),
Expand Down
9 changes: 9 additions & 0 deletions satrs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

# [unreleased]

## Changed

- Renamed `StaticPoolConfig::new` to `StaticPoolConfig::new_from_subpool_cfg_tuples`. The new
`new` implementation expects a type struct instead of tuples.

## Added

- `StaticHeaplessMemoryPool` which can be grown with user-provided static buffers.

# [v0.2.1] 2024-05-19

## Changed
Expand Down
Loading

0 comments on commit 5cae0f7

Please sign in to comment.