File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
ports/nrf/common-hal/memorymap Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -90,13 +90,13 @@ void common_hal_memorymap_addressrange_construct(memorymap_addressrange_obj_t *s
90
90
self -> len = length ;
91
91
}
92
92
93
- uint32_t common_hal_memorymap_addressrange_get_length (const memorymap_addressrange_obj_t * self ) {
93
+ size_t common_hal_memorymap_addressrange_get_length (const memorymap_addressrange_obj_t * self ) {
94
94
return self -> len ;
95
95
}
96
96
97
97
98
98
void common_hal_memorymap_addressrange_set_bytes (const memorymap_addressrange_obj_t * self ,
99
- uint32_t start_index , uint8_t * values , uint32_t len ) {
99
+ size_t start_index , uint8_t * values , size_t len ) {
100
100
uint8_t * address = self -> start_address + start_index ;
101
101
#pragma GCC diagnostic push
102
102
#pragma GCC diagnostic ignored "-Wcast-align"
@@ -115,7 +115,7 @@ void common_hal_memorymap_addressrange_set_bytes(const memorymap_addressrange_ob
115
115
}
116
116
117
117
void common_hal_memorymap_addressrange_get_bytes (const memorymap_addressrange_obj_t * self ,
118
- uint32_t start_index , uint32_t len , uint8_t * values ) {
118
+ size_t start_index , size_t len , uint8_t * values ) {
119
119
uint8_t * address = self -> start_address + start_index ;
120
120
#pragma GCC diagnostic push
121
121
#pragma GCC diagnostic ignored "-Wcast-align"
Original file line number Diff line number Diff line change @@ -438,6 +438,11 @@ mp_int_t mp_obj_int_get_checked(mp_const_obj_t self_in) {
438
438
return MP_OBJ_SMALL_INT_VALUE (self_in );
439
439
}
440
440
441
+ mp_uint_t mp_obj_int_get_uint_checked (mp_const_obj_t self_in ) {
442
+ return MP_OBJ_SMALL_INT_VALUE (self_in );
443
+ }
444
+
445
+
441
446
#endif // MICROPY_LONGINT_IMPL == MICROPY_LONGINT_IMPL_NONE
442
447
443
448
// This dispatcher function is expected to be independent of the implementation of long int
You can’t perform that action at this time.
0 commit comments