MCUs: update deprecated use of term_from_int32#2241
MCUs: update deprecated use of term_from_int32#2241bettio merged 7 commits intoatomvm:release-0.7from
Conversation
90bf284 to
0bd3c10
Compare
There was a problem hiding this comment.
All values encoded in adc_driver.c with term_from_int28 are 17 bits or less.
0bd3c10 to
793c199
Compare
793c199 to
4bb7414
Compare
|
Know this extends the scope - but the last remaining is below: Remaining
|
064164e to
2dcde17
Compare
2dcde17 to
9d2a026
Compare
|
This should take care of all of the remaining uses of |
Update the use of deprecated `term_from_int32` to `term_from_int11` for encoding gpio pin values. The values will fit in an int4, but the type is uint16_t, so `term_to_int11` is used for correctness. Signed-off-by: Winford <winford@object.stream>
Change all uses of the `term_from_int32` to `term_from_int11`, which is of adequate size to contain all of the encoded terms. Signed-off-by: Winford <winford@object.stream>
Replace use of `term_from_int32` other safe term_from_int* variants. Signed-off-by: Winford <winford@object.stream>
Updates use of deprecated `term_from_int32` to `term_from_int` when encoding the `send_timeout_ms` value. Signed-off-by: Winford <winford@object.stream>
Update the use of `term_from_int32` to encode `port` (`u16_t`) values to the new `term_from_int28`. Signed-off-by: Winford <winford@object.stream>
Update the use of deprecated `term_from_int32` to `term_from_int11` for encoding gpio pin values. The 11-bit value is more than enough to allow for the number of pins available on any ESP32 for many years. Signed-off-by: Winford <winford@object.stream>
Update deprecated `term_from_int32` to use `term_from_int28`. See also: atomvm#1897 Signed-off-by: Winford <winford@object.stream>
9d2a026 to
dcab3cd
Compare
Update all MCU platforms useage of
term_from_int32to safer variants ofterm_from_int*See also: #1897
These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later