nrf: Properly use (void) instead of () for function definitions.

This commit is contained in:
Damien George 2018-07-19 10:30:07 +10:00
parent 55632af70a
commit 9addc38af4
6 changed files with 6 additions and 6 deletions

View File

@ -146,7 +146,7 @@ STATIC void async_stop(void) {
wakeup_event = true;
}
STATIC void wait_for_event() {
STATIC void wait_for_event(void) {
while (!wakeup_event) {
// allow CTRL-C to stop the animation
if (MP_STATE_VM(mp_pending_exception) != MP_OBJ_NULL) {

View File

@ -39,7 +39,7 @@ STATIC inline uint32_t rotate_left(uint32_t value, uint32_t shift) {
STATIC volatile flash_state_t flash_operation_state = FLASH_STATE_BUSY;
STATIC void operation_init() {
STATIC void operation_init(void) {
flash_operation_state = FLASH_STATE_BUSY;
}

View File

@ -43,7 +43,7 @@
typedef void (*callback_ptr)(void);
typedef int32_t (*ticker_callback_ptr)(void);
void ticker_init0();
void ticker_init0(void);
void ticker_start(void);
void ticker_stop(void);
int clear_ticker_callback(uint32_t index);

View File

@ -63,7 +63,7 @@ STATIC const machine_timer_obj_t machine_timer_obj[] = {
#endif
};
void timer_init0() {
void timer_init0(void) {
for (int i = 0; i < MP_ARRAY_SIZE(machine_timer_obj); i++) {
nrfx_timer_uninit(&machine_timer_obj[i].p_instance);
}

View File

@ -79,7 +79,7 @@ uint32_t machine_rng_generate_random_word(void) {
return generate_hw_random();
}
static inline int rand30() {
static inline int rand30(void) {
uint32_t val = machine_rng_generate_random_word();
return (val & 0x3fffffff); // binary mask b00111111111111111111111111111111
}

View File

@ -589,7 +589,7 @@ STATIC mp_obj_t uos_mbfs_ilistdir_it_iternext(mp_obj_t self_in) {
return MP_OBJ_STOP_ITERATION;
}
STATIC mp_obj_t uos_mbfs_ilistdir() {
STATIC mp_obj_t uos_mbfs_ilistdir(void) {
uos_mbfs_ilistdir_it_t *iter = m_new_obj(uos_mbfs_ilistdir_it_t);
iter->base.type = &mp_type_polymorph_iter;
iter->iternext = uos_mbfs_ilistdir_it_iternext;