-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
104 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
#![allow(non_camel_case_types)] | ||
#![allow(clippy::upper_case_acronyms)] | ||
|
||
use heapless::consts; | ||
use littlefs2::consts; | ||
|
||
// TODO: this needs to be overridable. | ||
// Should we use the "config crate that can have a replacement patched in" idea? | ||
|
||
pub type MAX_APPLICATION_NAME_LENGTH = consts::U256; | ||
pub type MAX_LONG_DATA_LENGTH = consts::U1024; | ||
pub type MAX_MESSAGE_LENGTH = consts::U1024; | ||
pub const MAX_LONG_DATA_LENGTH: usize = 1024; | ||
pub const MAX_MESSAGE_LENGTH: usize = 1024; | ||
pub type MAX_OBJECT_HANDLES = consts::U16; | ||
pub type MAX_LABEL_LENGTH = consts::U256; | ||
pub type MAX_MEDIUM_DATA_LENGTH = consts::U256; | ||
pub const MAX_MEDIUM_DATA_LENGTH: usize = 256; | ||
pub type MAX_PATH_LENGTH = consts::U256; | ||
pub type MAX_KEY_MATERIAL_LENGTH = consts::U128; | ||
pub type MAX_SERIALIZED_KEY_LENGTH = <MAX_KEY_MATERIAL_LENGTH as core::ops::Add<consts::U4>>::Output; | ||
pub const MAX_KEY_MATERIAL_LENGTH: usize = 128; | ||
// must be above + 4 | ||
pub const MAX_SERIALIZED_KEY_LENGTH: usize = 132; | ||
pub type MAX_SERVICE_CLIENTS = consts::U5; | ||
pub type MAX_SHORT_DATA_LENGTH = consts::U128; | ||
pub type MAX_SIGNATURE_LENGTH = consts::U72; | ||
pub type MAX_USER_ATTRIBUTE_LENGTH = consts::U256; | ||
pub const MAX_SHORT_DATA_LENGTH: usize = 128; | ||
pub const MAX_SIGNATURE_LENGTH: usize = 72; | ||
pub const MAX_USER_ATTRIBUTE_LENGTH: usize = 256; | ||
|
||
pub const USER_ATTRIBUTE_NUMBER: u8 = 37; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.