forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kconfig: Add variables for integer constants
Add a Kconfig.constants file that defines variables for different known integer minimum and maximum values. Signed-off-by: Pieter De Gendt <[email protected]>
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Constant variables to be used across Kconfig options | ||
|
||
# Copyright (c) 2024 basalte bv | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
INT8_MIN := -128 | ||
INT16_MIN := -32768 | ||
INT32_MIN := -2147483648 | ||
INT64_MIN := -9223372036854775808 | ||
|
||
INT8_MAX := 127 | ||
INT16_MAX := 32767 | ||
INT32_MAX := 2147483647 | ||
INT64_MAX := 9223372036854775807 | ||
|
||
UINT8_MAX := 255 | ||
UINT16_MAX := 65535 | ||
UINT32_MAX := 4294967295 | ||
UINT64_MAX := 18446744073709551615 |
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