Skip to content

Commit

Permalink
WIP9: update screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Portron committed Oct 8, 2024
1 parent fd6132d commit 09c952f
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 11 deletions.
2 changes: 1 addition & 1 deletion include/os_io_seproxyhal.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@

/* Exported variables --------------------------------------------------------*/

/* Exported functions prototypes--------------------------------------------- */
/* Exported functions prototypes--------------------------------------------- */
2 changes: 1 addition & 1 deletion include/seproxyhal_protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,4 +245,4 @@ enum seph_protocol_cmd_general_status_type {

/* Exported variables --------------------------------------------------------*/

/* Exported functions prototypes--------------------------------------------- */
/* Exported functions prototypes--------------------------------------------- */
2 changes: 1 addition & 1 deletion include/syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
#endif // HAVE_BRIGHTNESS_SYSCALL
#define SYSCALL_bagl_hal_draw_bitmap_within_rect_ID 0x0900007c
#define SYSCALL_bagl_hal_draw_rect_ID 0x0500007d
#endif // HAVE_SE_SCREEN
#endif // HAVE_SE_SCREEN

#ifdef HAVE_BLE
#define SYSCALL_os_ux_set_status_ID_IN 0x02000134
Expand Down
8 changes: 6 additions & 2 deletions io/include/os_io_seph_cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ int os_io_seph_cmd_set_ship_mode(void);
#endif // HAVE_SHIP_MODE

#ifdef HAVE_PRINTF
void os_io_seph_cmd_printf(const char *str, unsigned int charcount);
void os_io_seph_cmd_printf(const char *str, uint16_t charcount);
#endif // HAVE_PRINTF

#ifdef HAVE_SE_TOUCH
int os_io_seph_cmd_set_touch_state(uint8_t enable);
#endif // HAVE_SE_TOUCH

#ifdef HAVE_PIEZO_SOUND
int os_io_seph_cmd_piezo_play_tune(tune_index_e tune_index);
#endif // HAVE_PIEZO_SOUND
Expand All @@ -67,7 +71,7 @@ void os_io_seph_cmd_spi_cs(uint8_t select);

#ifdef HAVE_BLE
int os_io_seph_cmd_ble_start_factory_test(void);
int os_io_ble_cmd_enable(unsigned char enable);
int os_io_ble_cmd_enable(uint8_t enable);
int os_io_ble_cmd_clear_bond_db(void);
int os_io_ble_cmd_name_changed(void);
int os_io_ux_cmd_ble_accept_pairing(uint8_t status);
Expand Down
17 changes: 15 additions & 2 deletions io/src/os_io_seph_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ int os_io_seph_cmd_set_ship_mode(void)
#endif // HAVE_SHIP_MODE

#ifdef HAVE_PRINTF
void os_io_seph_cmd_printf(const char *str, unsigned int charcount)
void os_io_seph_cmd_printf(const char *str, uint16_t charcount)
{
unsigned char hdr[3];
hdr[0] = SEPROXYHAL_TAG_PRINTF;
Expand All @@ -190,6 +190,19 @@ void os_io_seph_cmd_printf(const char *str, unsigned int charcount)
}
#endif // HAVE_PRINTF

#ifdef HAVE_SE_TOUCH
int os_io_seph_cmd_set_touch_state(uint8_t enable)
{
uint8_t buffer[4];
buffer[0] = SEPROXYHAL_TAG_SET_TOUCH_STATE;
buffer[1] = 0;
buffer[2] = 1;
buffer[3] = (enable ? 0x00 : 0x01);

return os_io_tx_cmd(OS_IO_PACKET_TYPE_SEPH, buffer, 4, NULL);
}
#endif // HAVE_SE_TOUCH

#ifdef HAVE_PIEZO_SOUND
int os_io_seph_cmd_piezo_play_tune(tune_index_e tune_index)
{
Expand Down Expand Up @@ -260,7 +273,7 @@ int os_io_seph_cmd_ble_start_factory_test(void)
buffer[3] = SEPROXYHAL_TAG_BLE_RADIO_POWER_FACTORY_TEST;
return os_io_tx_cmd(OS_IO_PACKET_TYPE_SEPH, buffer, 4, NULL);
}
int os_io_ble_cmd_enable(unsigned char enable)
int os_io_ble_cmd_enable(uint8_t enable)
{
uint8_t buffer[4];
buffer[0] = SEPROXYHAL_TAG_ITC_CMD;
Expand Down
1 change: 0 additions & 1 deletion lib_bagl/include/bagl_animate.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ typedef struct bagl_anim_s {
};
} bagl_anim_t;


/**
* Initialize a label animation.
*/
Expand Down
1 change: 0 additions & 1 deletion lib_bagl/src/bagl_animate.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,4 +346,3 @@ void bagl_animation_step(bagl_anim_t *anim)
break;
};
}

3 changes: 2 additions & 1 deletion lib_standard_app/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ WEAK int io_recv_command()
}
G_io_tx_buffer[buffer_out_length++] = err >> 8;
G_io_tx_buffer[buffer_out_length++] = err;
status = os_io_tx_cmd(G_rx_packet_type, G_io_tx_buffer, buffer_out_length, 0);
status
= os_io_tx_cmd(G_rx_packet_type, G_io_tx_buffer, buffer_out_length, 0);
if (post_action == OS_IO_APDU_POST_ACTION_EXIT) {
os_sched_exit(-1);
}
Expand Down
2 changes: 1 addition & 1 deletion lib_ux/include/ux_bagl.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ void ux_stack_al_display_next_element(unsigned int stack_slot);
void ux_stack_redisplay(void);

const bagl_element_t *ux_stack_display_element_callback(const bagl_element_t *element);
void ux_stack_display_elements(ux_stack_slot_t *slot);
void ux_stack_display_elements(ux_stack_slot_t *slot);

#ifdef HAVE_UX_LEGACY
// a menu callback is called with a given userid provided within the menu entry to allow for fast
Expand Down

0 comments on commit 09c952f

Please sign in to comment.