Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more configuration options #234

Merged
merged 3 commits into from
Aug 11, 2023
Merged

Add more configuration options #234

merged 3 commits into from
Aug 11, 2023

Conversation

bjoernQ
Copy link
Contributor

@bjoernQ bjoernQ commented Aug 10, 2023

This adds an option to configure

  • Country Code
  • MTU
  • HEAP-SIZE
  • internal scheduler's tick rate

Probably seems odd we keep the big-heap feature for now. It is to not immediately and unnecessarily break esp-mbedtls and depending code

#[cfg(all(coex, not(feature = "big-heap")))]
const HEAP_SIZE: usize = 64 * 1024;
const DEFAULT_HEAP_SIZE: usize = 64 * 1024;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coex check seems redundant on this one and above (one is coex & big heap, other is !coex & big_heap, both with the same value), in case you want to simplify :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true - most probably I will remove the big-heap feature and only have two defaults which somehow work everywhere ... we don't need to find the one best value (which doesn't exist for every one and every situation) anymore since it's now configurable

@bjoernQ bjoernQ marked this pull request as ready for review August 10, 2023 15:56
Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@bjoernQ bjoernQ merged commit 87687c8 into main Aug 11, 2023
12 checks passed
@bjoernQ bjoernQ deleted the feature/more-configs branch August 11, 2023 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants