Skip to content

Commit 5a1b57c

Browse files
committed
fix silab compile issues
1 parent ecdb5db commit 5a1b57c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ports/silabs/common-hal/_bleio/PacketBuffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void _common_hal_bleio_packet_buffer_construct(
145145
uint32_t *outgoing_buffer1,
146146
uint32_t *outgoing_buffer2,
147147
size_t max_packet_size,
148-
ble_event_handler_t static_handler_entry) {
148+
ble_event_handler_t *static_handler_entry) {
149149

150150
bleio_characteristic_properties_t temp_prop;
151151
self->characteristic = characteristic;

ports/silabs/common-hal/microcontroller/__init__.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ void common_hal_mcu_on_next_reset(mcu_runmode_t runmode) {
6060
}
6161
}
6262

63+
// CHIP_Reset does not return, but is not declared as such in the SDK.
64+
void __attribute__ ((noreturn)) CHIP_Reset(void);
65+
6366
void common_hal_mcu_reset(void) {
6467
filesystem_flush(); // TODO: implement as part of flash improvements
6568
CHIP_Reset();

0 commit comments

Comments
 (0)