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;
40
40
void common_hal_bleio_init (void ) {
41
41
}
42
42
43
- void bleio_user_reset () {
43
+ void bleio_user_reset (void ) {
44
44
// HCI doesn't support the BLE workflow so just do a full reset.
45
45
bleio_reset ();
46
46
}
47
47
48
48
// Turn off BLE on a reset or reload.
49
- void bleio_reset () {
49
+ void bleio_reset (void ) {
50
50
// Create a UUID object for all CCCD's.
51
51
cccd_uuid .base .type = & bleio_uuid_type ;
52
52
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) {
1180
1180
}
1181
1181
1182
1182
// 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 ) {
1184
1184
}
1185
1185
1186
1186
size_t gc_get_max_new_split (void ) {
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ endif
223
223
224
224
DISABLE_WARNINGS = -Wno-cast-align
225
225
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
227
227
228
228
PICO_LDFLAGS = --specs=nosys.specs --specs=nano.specs
229
229
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) {
86
86
self -> digitalinout = MP_OBJ_NULL ;
87
87
}
88
88
89
- void touchin_reset () {
89
+ void touchin_reset (void ) {
90
90
}
91
91
92
92
bool 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) {
58
58
59
59
static int background_prevention_count ;
60
60
61
- void PLACE_IN_ITCM (background_callback_run_all )() {
61
+ void PLACE_IN_ITCM (background_callback_run_all )(void ) {
62
62
port_background_task ();
63
63
if (!background_callback_pending ()) {
64
64
return ;
@@ -89,21 +89,21 @@ void PLACE_IN_ITCM(background_callback_run_all)() {
89
89
CALLBACK_CRITICAL_END ;
90
90
}
91
91
92
- void background_callback_prevent () {
92
+ void background_callback_prevent (void ) {
93
93
CALLBACK_CRITICAL_BEGIN ;
94
94
++ background_prevention_count ;
95
95
CALLBACK_CRITICAL_END ;
96
96
}
97
97
98
- void background_callback_allow () {
98
+ void background_callback_allow (void ) {
99
99
CALLBACK_CRITICAL_BEGIN ;
100
100
-- background_prevention_count ;
101
101
CALLBACK_CRITICAL_END ;
102
102
}
103
103
104
104
105
105
// Filter out queued callbacks if they are allocated on the heap.
106
- void background_callback_reset () {
106
+ void background_callback_reset (void ) {
107
107
background_callback_t * new_head = NULL ;
108
108
background_callback_t * * previous_next = & new_head ;
109
109
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) {
35
35
port_wake_main_task ();
36
36
}
37
37
38
- void autoreload_reset () {
38
+ void autoreload_reset (void ) {
39
39
last_autoreload_trigger = 0 ;
40
40
}
41
41
42
- void autoreload_enable () {
42
+ void autoreload_enable (void ) {
43
43
autoreload_enabled = true;
44
44
last_autoreload_trigger = 0 ;
45
45
}
46
46
47
- void autoreload_disable () {
47
+ void autoreload_disable (void ) {
48
48
autoreload_enabled = false;
49
49
}
50
50
@@ -56,11 +56,11 @@ void autoreload_resume(uint32_t suspend_reason_mask) {
56
56
autoreload_suspended &= ~suspend_reason_mask ;
57
57
}
58
58
59
- inline bool autoreload_is_enabled () {
59
+ inline bool autoreload_is_enabled (void ) {
60
60
return autoreload_enabled ;
61
61
}
62
62
63
- void autoreload_trigger () {
63
+ void autoreload_trigger (void ) {
64
64
if (!autoreload_enabled || autoreload_suspended != 0 ) {
65
65
return ;
66
66
}
@@ -78,7 +78,7 @@ void autoreload_trigger() {
78
78
}
79
79
}
80
80
81
- bool autoreload_ready () {
81
+ bool autoreload_ready (void ) {
82
82
if (last_autoreload_trigger == 0 || autoreload_suspended != 0 ) {
83
83
return false;
84
84
}
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ static uint32_t current_status_color = 0;
112
112
#endif
113
113
114
114
static bool status_led_init_in_progress = false;
115
- void status_led_init () {
115
+ void status_led_init (void ) {
116
116
if (status_led_init_in_progress ) {
117
117
// Avoid recursion.
118
118
return ;
@@ -186,7 +186,7 @@ void status_led_init() {
186
186
status_led_init_in_progress = false;
187
187
}
188
188
189
- void status_led_deinit () {
189
+ void status_led_deinit (void ) {
190
190
#ifdef MICROPY_HW_NEOPIXEL
191
191
// Make sure the pin stays low for the reset period. The pin reset may pull
192
192
// 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) {
92
92
return (ticks << 5 ) | subticks ;
93
93
}
94
94
95
- uint64_t supervisor_ticks_ms64 () {
95
+ uint64_t supervisor_ticks_ms64 (void ) {
96
96
uint64_t result ;
97
97
result = port_get_raw_ticks (NULL );
98
98
result = result * 1000 / 1024 ;
99
99
return result ;
100
100
}
101
101
102
- uint32_t supervisor_ticks_ms32 () {
102
+ uint32_t supervisor_ticks_ms32 (void ) {
103
103
return supervisor_ticks_ms64 ();
104
104
}
105
105
You can’t perform that action at this time.
0 commit comments