diff --git a/left/src/bridge_protocol_handler.c b/left/src/bridge_protocol_handler.c index 760f7ca..1a906e3 100644 --- a/left/src/bridge_protocol_handler.c +++ b/left/src/bridge_protocol_handler.c @@ -9,14 +9,14 @@ #include "init_peripherials.h" void SetError(uint8_t error); -void SetGenericError(); +void SetGenericError(void); void SetResponseByte(uint8_t response); void SetError(uint8_t error) { BridgeTxBuffer[0] = error; } -void SetGenericError() +void SetGenericError(void) { SetError(PROTOCOL_RESPONSE_GENERIC_ERROR); } @@ -27,7 +27,7 @@ void SetResponseByte(uint8_t response) BridgeTxBuffer[1] = response; } -void BridgeProtocolHandler() +void BridgeProtocolHandler(void) { uint8_t commandId = BridgeRxBuffer[0]; switch (commandId) { diff --git a/left/src/bridge_protocol_handler.h b/left/src/bridge_protocol_handler.h index b1d7ff6..a36bee2 100644 --- a/left/src/bridge_protocol_handler.h +++ b/left/src/bridge_protocol_handler.h @@ -21,6 +21,6 @@ // Functions: - extern void BridgeProtocolHandler(); + extern void BridgeProtocolHandler(void); #endif diff --git a/left/src/init_clock.h b/left/src/init_clock.h index 1b0681f..7e01f88 100644 --- a/left/src/init_clock.h +++ b/left/src/init_clock.h @@ -3,6 +3,6 @@ // Functions: - void InitClock(); + void InitClock(void); #endif diff --git a/left/src/init_peripherials.c b/left/src/init_peripherials.c index ac48953..888fa33 100644 --- a/left/src/init_peripherials.c +++ b/left/src/init_peripherials.c @@ -34,7 +34,7 @@ static void i2cSlaveCallback(I2C_Type *base, i2c_slave_transfer_t *xfer, void *u } } -void InitI2c() { +void InitI2c(void) { port_pin_config_t pinConfig = { .pullSelect = kPORT_PullUp, }; @@ -57,7 +57,7 @@ void InitI2c() { I2C_SlaveTransferNonBlocking(I2C_BUS_BASEADDR, &slaveHandle, kI2C_SlaveCompletionEvent); } -void InitLedDriver() { +void InitLedDriver(void) { CLOCK_EnableClock(LED_DRIVER_SDB_CLOCK); PORT_SetPinMux(LED_DRIVER_SDB_PORT, LED_DRIVER_SDB_PIN, kPORT_MuxAsGpio); GPIO_PinInit(LED_DRIVER_SDB_GPIO, LED_DRIVER_SDB_PIN, &(gpio_pin_config_t){kGPIO_DigitalOutput, 0}); diff --git a/left/src/init_peripherials.h b/left/src/init_peripherials.h index 0f75387..4b9d38c 100644 --- a/left/src/init_peripherials.h +++ b/left/src/init_peripherials.h @@ -10,6 +10,6 @@ // Functions: - void InitPeripherials(); + void InitPeripherials(void); #endif diff --git a/left/src/led_pwm.c b/left/src/led_pwm.c index fa6cdee..9cf3d37 100644 --- a/left/src/led_pwm.c +++ b/left/src/led_pwm.c @@ -1,7 +1,7 @@ #include "led_pwm.h" #include "fsl_port.h" -void LedPwm_Init() { +void LedPwm_Init(void) { CLOCK_EnableClock(LED_PWM_CLOCK); PORT_SetPinMux(LED_PWM_PORT, LED_PWM_PIN, kPORT_MuxAlt2); diff --git a/left/src/led_pwm.h b/left/src/led_pwm.h index 456b5b2..f916495 100644 --- a/left/src/led_pwm.h +++ b/left/src/led_pwm.h @@ -21,7 +21,7 @@ // Functions: - extern void LedPwm_Init(); + extern void LedPwm_Init(void); void LedPwm_SetBrightness(uint8_t brightnessPercent); #endif diff --git a/left/src/test_led.c b/left/src/test_led.c index 449735a..acb24cd 100644 --- a/left/src/test_led.c +++ b/left/src/test_led.c @@ -1,7 +1,7 @@ #include "test_led.h" #include "fsl_port.h" -extern void InitTestLed() +extern void InitTestLed(void) { CLOCK_EnableClock(TEST_LED_CLOCK); PORT_SetPinMux(TEST_LED_PORT, TEST_LED_PIN, kPORT_MuxAsGpio); diff --git a/left/src/test_led.h b/left/src/test_led.h index 2afb597..72b010a 100644 --- a/left/src/test_led.h +++ b/left/src/test_led.h @@ -22,6 +22,6 @@ // Functions: - extern void InitTestLed(); + extern void InitTestLed(void); #endif