File tree Expand file tree Collapse file tree 8 files changed +19
-19
lines changed
devices/ble_hci/common-hal/_bleio Expand file tree Collapse file tree 8 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -40,13 +40,13 @@ bool vm_used_ble;
4040void common_hal_bleio_init (void ) {
4141}
4242
43- void bleio_user_reset () {
43+ void bleio_user_reset (void ) {
4444 // HCI doesn't support the BLE workflow so just do a full reset.
4545 bleio_reset ();
4646}
4747
4848// Turn off BLE on a reset or reload.
49- void bleio_reset () {
49+ void bleio_reset (void ) {
5050 // Create a UUID object for all CCCD's.
5151 cccd_uuid .base .type = & bleio_uuid_type ;
5252 common_hal_bleio_uuid_construct (& cccd_uuid , BLE_UUID_CCCD , NULL );
Original file line number Diff line number Diff line change @@ -1180,7 +1180,7 @@ void gc_collect(void) {
11801180}
11811181
11821182// Ports may provide an implementation of this function if it is needed
1183- MP_WEAK void port_gc_collect () {
1183+ MP_WEAK void port_gc_collect (void ) {
11841184}
11851185
11861186size_t gc_get_max_new_split (void ) {
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ endif
223223
224224DISABLE_WARNINGS = -Wno-cast-align
225225
226- CFLAGS += $(INC ) -Wtype-limits -Wall -Werror -std=gnu11 -fshort-enums $(BASE_CFLAGS ) $(CFLAGS_MOD ) $(COPT ) $(DISABLE_WARNINGS ) -Werror=missing-prototypes
226+ CFLAGS += $(INC ) -Wtype-limits -Wall -Werror -std=gnu11 -fshort-enums $(BASE_CFLAGS ) $(CFLAGS_MOD ) $(COPT ) $(DISABLE_WARNINGS ) -Werror=missing-prototypes -Wold-style-definition
227227
228228PICO_LDFLAGS = --specs=nosys.specs --specs=nano.specs
229229
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ void common_hal_touchio_touchin_deinit(touchio_touchin_obj_t *self) {
8686 self -> digitalinout = MP_OBJ_NULL ;
8787}
8888
89- void touchin_reset () {
89+ void touchin_reset (void ) {
9090}
9191
9292bool common_hal_touchio_touchin_get_value (touchio_touchin_obj_t * self ) {
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ inline bool background_callback_pending(void) {
5858
5959static int background_prevention_count ;
6060
61- void PLACE_IN_ITCM (background_callback_run_all )() {
61+ void PLACE_IN_ITCM (background_callback_run_all )(void ) {
6262 port_background_task ();
6363 if (!background_callback_pending ()) {
6464 return ;
@@ -89,21 +89,21 @@ void PLACE_IN_ITCM(background_callback_run_all)() {
8989 CALLBACK_CRITICAL_END ;
9090}
9191
92- void background_callback_prevent () {
92+ void background_callback_prevent (void ) {
9393 CALLBACK_CRITICAL_BEGIN ;
9494 ++ background_prevention_count ;
9595 CALLBACK_CRITICAL_END ;
9696}
9797
98- void background_callback_allow () {
98+ void background_callback_allow (void ) {
9999 CALLBACK_CRITICAL_BEGIN ;
100100 -- background_prevention_count ;
101101 CALLBACK_CRITICAL_END ;
102102}
103103
104104
105105// Filter out queued callbacks if they are allocated on the heap.
106- void background_callback_reset () {
106+ void background_callback_reset (void ) {
107107 background_callback_t * new_head = NULL ;
108108 background_callback_t * * previous_next = & new_head ;
109109 background_callback_t * new_tail = NULL ;
Original file line number Diff line number Diff line change @@ -35,16 +35,16 @@ void reload_initiate(supervisor_run_reason_t run_reason) {
3535 port_wake_main_task ();
3636}
3737
38- void autoreload_reset () {
38+ void autoreload_reset (void ) {
3939 last_autoreload_trigger = 0 ;
4040}
4141
42- void autoreload_enable () {
42+ void autoreload_enable (void ) {
4343 autoreload_enabled = true;
4444 last_autoreload_trigger = 0 ;
4545}
4646
47- void autoreload_disable () {
47+ void autoreload_disable (void ) {
4848 autoreload_enabled = false;
4949}
5050
@@ -56,11 +56,11 @@ void autoreload_resume(uint32_t suspend_reason_mask) {
5656 autoreload_suspended &= ~suspend_reason_mask ;
5757}
5858
59- inline bool autoreload_is_enabled () {
59+ inline bool autoreload_is_enabled (void ) {
6060 return autoreload_enabled ;
6161}
6262
63- void autoreload_trigger () {
63+ void autoreload_trigger (void ) {
6464 if (!autoreload_enabled || autoreload_suspended != 0 ) {
6565 return ;
6666 }
@@ -78,7 +78,7 @@ void autoreload_trigger() {
7878 }
7979}
8080
81- bool autoreload_ready () {
81+ bool autoreload_ready (void ) {
8282 if (last_autoreload_trigger == 0 || autoreload_suspended != 0 ) {
8383 return false;
8484 }
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ static uint32_t current_status_color = 0;
112112#endif
113113
114114static bool status_led_init_in_progress = false;
115- void status_led_init () {
115+ void status_led_init (void ) {
116116 if (status_led_init_in_progress ) {
117117 // Avoid recursion.
118118 return ;
@@ -186,7 +186,7 @@ void status_led_init() {
186186 status_led_init_in_progress = false;
187187}
188188
189- void status_led_deinit () {
189+ void status_led_deinit (void ) {
190190 #ifdef MICROPY_HW_NEOPIXEL
191191 // Make sure the pin stays low for the reset period. The pin reset may pull
192192 // it up and stop the reset period.
Original file line number Diff line number Diff line change @@ -92,14 +92,14 @@ static uint64_t _get_raw_subticks(void) {
9292 return (ticks << 5 ) | subticks ;
9393}
9494
95- uint64_t supervisor_ticks_ms64 () {
95+ uint64_t supervisor_ticks_ms64 (void ) {
9696 uint64_t result ;
9797 result = port_get_raw_ticks (NULL );
9898 result = result * 1000 / 1024 ;
9999 return result ;
100100}
101101
102- uint32_t supervisor_ticks_ms32 () {
102+ uint32_t supervisor_ticks_ms32 (void ) {
103103 return supervisor_ticks_ms64 ();
104104}
105105
You can’t perform that action at this time.
0 commit comments