File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ pub fn mcu_32_bytes(out: &mut [u8; 32]) {
17
17
unsafe { bitbox02_sys:: random_32_bytes_mcu ( out. as_mut_ptr ( ) ) }
18
18
}
19
19
20
- #[ cfg( target_arch = "x86_64" ) ]
20
+ #[ cfg( not ( target_arch = "arm" ) ) ]
21
21
pub fn mcu_32_bytes ( out : & mut [ u8 ; 32 ] ) {
22
22
extern "C" {
23
23
fn rand ( ) -> util:: c_types:: c_int ;
Original file line number Diff line number Diff line change @@ -27,16 +27,22 @@ pub type c_int = i32;
27
27
28
28
#[ cfg( target_arch = "x86_64" ) ]
29
29
pub type c_uint = u64 ;
30
+ #[ cfg( target_arch = "aarch64" ) ]
31
+ pub type c_uint = u64 ;
30
32
#[ cfg( target_arch = "arm" ) ]
31
33
pub type c_uint = u32 ;
32
34
33
35
#[ cfg( target_arch = "x86_64" ) ]
34
36
pub type c_long = i64 ;
37
+ #[ cfg( target_arch = "aarch64" ) ]
38
+ pub type c_long = i64 ;
35
39
#[ cfg( target_arch = "arm" ) ]
36
40
pub type c_long = i32 ;
37
41
38
42
#[ cfg( target_arch = "x86_64" ) ]
39
43
pub type c_ulong = u64 ;
44
+ #[ cfg( target_arch = "aarch64" ) ]
45
+ pub type c_ulong = u64 ;
40
46
#[ cfg( target_arch = "arm" ) ]
41
47
pub type c_ulong = u32 ;
42
48
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ static ATCA_STATUS _lock_slot(securechip_slot_t slot)
220
220
static ATCA_STATUS _factory_setup (void )
221
221
{
222
222
if (_interface_functions == NULL ) {
223
- return SC_ERR_IFS ;
223
+ return ( ATCA_STATUS ) SC_ERR_IFS ;
224
224
}
225
225
bool is_config_locked = false;
226
226
ATCA_STATUS result = atcab_is_locked (LOCK_ZONE_CONFIG , & is_config_locked );
You can’t perform that action at this time.
0 commit comments