Mark functions of void arguments as such in the left firmware.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -21,6 +21,6 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void BridgeProtocolHandler();
|
||||
extern void BridgeProtocolHandler(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
void InitClock();
|
||||
void InitClock(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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});
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
void InitPeripherials();
|
||||
void InitPeripherials(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void LedPwm_Init();
|
||||
extern void LedPwm_Init(void);
|
||||
void LedPwm_SetBrightness(uint8_t brightnessPercent);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -22,6 +22,6 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void InitTestLed();
|
||||
extern void InitTestLed(void);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user