File tree Expand file tree Collapse file tree 4 files changed +24
-5
lines changed Expand file tree Collapse file tree 4 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 1
- #[ cfg( target_os = "nanox" ) ]
1
+ #[ cfg( any ( target_os = "nanox" , target_os = "stax" , target_os = "flex" ) ) ]
2
2
use crate :: ble;
3
3
#[ cfg( not( any( target_os = "stax" , target_os = "flex" ) ) ) ]
4
4
use ledger_secure_sdk_sys:: buttons:: { get_button_event, ButtonEvent , ButtonsState } ;
@@ -196,7 +196,7 @@ impl Comm {
196
196
APDU_USB_CCID => {
197
197
ccid:: send ( & self . apdu_buffer [ ..self . tx ] ) ;
198
198
}
199
- #[ cfg( target_os = "nanox" ) ]
199
+ #[ cfg( any ( target_os = "nanox" , target_os = "stax" , target_os = "flex" ) ) ]
200
200
APDU_BLE => {
201
201
ble:: send ( & self . apdu_buffer [ ..self . tx ] ) ;
202
202
}
@@ -387,7 +387,7 @@ impl Comm {
387
387
}
388
388
seph:: Events :: CAPDUEvent => seph:: handle_capdu_event ( & mut self . apdu_buffer , spi_buffer) ,
389
389
390
- #[ cfg( target_os = "nanox" ) ]
390
+ #[ cfg( any ( target_os = "nanox" , target_os = "stax" , target_os = "flex" ) ) ]
391
391
seph:: Events :: BleReceive => ble:: receive ( & mut self . apdu_buffer , spi_buffer) ,
392
392
393
393
seph:: Events :: TickerEvent => {
Original file line number Diff line number Diff line change 7
7
#![ feature( generic_const_exprs) ]
8
8
#![ feature( cfg_version) ]
9
9
10
- #[ cfg( target_os = "nanox" ) ]
10
+ #[ cfg( any ( target_os = "nanox" , target_os = "stax" , target_os = "flex" ) ) ]
11
11
pub mod ble;
12
12
13
13
#[ cfg( feature = "ccid" ) ]
Original file line number Diff line number Diff line change @@ -570,6 +570,12 @@ impl SDKBuilder {
570
570
. to_str ( )
571
571
. unwrap ( ) ,
572
572
)
573
+ . header (
574
+ self . bolos_sdk
575
+ . join ( "lib_blewbxx_impl/include/ledger_ble.h" )
576
+ . to_str ( )
577
+ . unwrap ( ) ,
578
+ )
573
579
}
574
580
_ => ( ) ,
575
581
}
@@ -745,6 +751,19 @@ fn finalize_flex_configuration(command: &mut cc::Build, bolos_sdk: &Path) {
745
751
746
752
command
747
753
. target ( "thumbv8m.main-none-eabi" )
754
+ . file ( bolos_sdk. join ( "src/ledger_protocol.c" ) )
755
+ . file ( bolos_sdk. join ( "lib_blewbxx/core/auto/ble_gap_aci.c" ) )
756
+ . file ( bolos_sdk. join ( "lib_blewbxx/core/auto/ble_gatt_aci.c" ) )
757
+ . file ( bolos_sdk. join ( "lib_blewbxx/core/auto/ble_hal_aci.c" ) )
758
+ . file ( bolos_sdk. join ( "lib_blewbxx/core/auto/ble_hci_le.c" ) )
759
+ . file ( bolos_sdk. join ( "lib_blewbxx/core/auto/ble_l2cap_aci.c" ) )
760
+ . file ( bolos_sdk. join ( "lib_blewbxx/core/template/osal.c" ) )
761
+ . file ( bolos_sdk. join ( "lib_blewbxx_impl/src/ledger_ble.c" ) )
762
+ . include ( bolos_sdk. join ( "lib_blewbxx/include" ) )
763
+ . include ( bolos_sdk. join ( "lib_blewbxx/core" ) )
764
+ . include ( bolos_sdk. join ( "lib_blewbxx/core/auto" ) )
765
+ . include ( bolos_sdk. join ( "lib_blewbxx/core/template" ) )
766
+ . include ( bolos_sdk. join ( "lib_blewbxx_impl/include" ) )
748
767
. include ( bolos_sdk. join ( "target/flex/include/" ) )
749
768
. flag ( "-fropi" )
750
769
. flag ( "-frwpi" )
Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ int c_main(void) {
327
327
328
328
#ifdef HAVE_BLE
329
329
memset (& G_io_asynch_ux_callback , 0 , sizeof (G_io_asynch_ux_callback ));
330
- LEDGER_BLE_init ( );
330
+ BLE_power ( 1 , NULL );
331
331
#endif
332
332
333
333
#if !defined(HAVE_BOLOS ) && defined(HAVE_PENDING_REVIEW_SCREEN )
You can’t perform that action at this time.
0 commit comments