Mark functions of void arguments as such in the left firmware.
This commit is contained in:
@@ -9,14 +9,14 @@
|
|||||||
#include "init_peripherials.h"
|
#include "init_peripherials.h"
|
||||||
|
|
||||||
void SetError(uint8_t error);
|
void SetError(uint8_t error);
|
||||||
void SetGenericError();
|
void SetGenericError(void);
|
||||||
void SetResponseByte(uint8_t response);
|
void SetResponseByte(uint8_t response);
|
||||||
|
|
||||||
void SetError(uint8_t error) {
|
void SetError(uint8_t error) {
|
||||||
BridgeTxBuffer[0] = error;
|
BridgeTxBuffer[0] = error;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetGenericError()
|
void SetGenericError(void)
|
||||||
{
|
{
|
||||||
SetError(PROTOCOL_RESPONSE_GENERIC_ERROR);
|
SetError(PROTOCOL_RESPONSE_GENERIC_ERROR);
|
||||||
}
|
}
|
||||||
@@ -27,7 +27,7 @@ void SetResponseByte(uint8_t response)
|
|||||||
BridgeTxBuffer[1] = response;
|
BridgeTxBuffer[1] = response;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BridgeProtocolHandler()
|
void BridgeProtocolHandler(void)
|
||||||
{
|
{
|
||||||
uint8_t commandId = BridgeRxBuffer[0];
|
uint8_t commandId = BridgeRxBuffer[0];
|
||||||
switch (commandId) {
|
switch (commandId) {
|
||||||
|
|||||||
@@ -21,6 +21,6 @@
|
|||||||
|
|
||||||
// Functions:
|
// Functions:
|
||||||
|
|
||||||
extern void BridgeProtocolHandler();
|
extern void BridgeProtocolHandler(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
|
|
||||||
// Functions:
|
// Functions:
|
||||||
|
|
||||||
void InitClock();
|
void InitClock(void);
|
||||||
|
|
||||||
#endif
|
#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 = {
|
port_pin_config_t pinConfig = {
|
||||||
.pullSelect = kPORT_PullUp,
|
.pullSelect = kPORT_PullUp,
|
||||||
};
|
};
|
||||||
@@ -57,7 +57,7 @@ void InitI2c() {
|
|||||||
I2C_SlaveTransferNonBlocking(I2C_BUS_BASEADDR, &slaveHandle, kI2C_SlaveCompletionEvent);
|
I2C_SlaveTransferNonBlocking(I2C_BUS_BASEADDR, &slaveHandle, kI2C_SlaveCompletionEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void InitLedDriver() {
|
void InitLedDriver(void) {
|
||||||
CLOCK_EnableClock(LED_DRIVER_SDB_CLOCK);
|
CLOCK_EnableClock(LED_DRIVER_SDB_CLOCK);
|
||||||
PORT_SetPinMux(LED_DRIVER_SDB_PORT, LED_DRIVER_SDB_PIN, kPORT_MuxAsGpio);
|
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});
|
GPIO_PinInit(LED_DRIVER_SDB_GPIO, LED_DRIVER_SDB_PIN, &(gpio_pin_config_t){kGPIO_DigitalOutput, 0});
|
||||||
|
|||||||
@@ -10,6 +10,6 @@
|
|||||||
|
|
||||||
// Functions:
|
// Functions:
|
||||||
|
|
||||||
void InitPeripherials();
|
void InitPeripherials(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#include "led_pwm.h"
|
#include "led_pwm.h"
|
||||||
#include "fsl_port.h"
|
#include "fsl_port.h"
|
||||||
|
|
||||||
void LedPwm_Init() {
|
void LedPwm_Init(void) {
|
||||||
CLOCK_EnableClock(LED_PWM_CLOCK);
|
CLOCK_EnableClock(LED_PWM_CLOCK);
|
||||||
PORT_SetPinMux(LED_PWM_PORT, LED_PWM_PIN, kPORT_MuxAlt2);
|
PORT_SetPinMux(LED_PWM_PORT, LED_PWM_PIN, kPORT_MuxAlt2);
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
// Functions:
|
// Functions:
|
||||||
|
|
||||||
extern void LedPwm_Init();
|
extern void LedPwm_Init(void);
|
||||||
void LedPwm_SetBrightness(uint8_t brightnessPercent);
|
void LedPwm_SetBrightness(uint8_t brightnessPercent);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#include "test_led.h"
|
#include "test_led.h"
|
||||||
#include "fsl_port.h"
|
#include "fsl_port.h"
|
||||||
|
|
||||||
extern void InitTestLed()
|
extern void InitTestLed(void)
|
||||||
{
|
{
|
||||||
CLOCK_EnableClock(TEST_LED_CLOCK);
|
CLOCK_EnableClock(TEST_LED_CLOCK);
|
||||||
PORT_SetPinMux(TEST_LED_PORT, TEST_LED_PIN, kPORT_MuxAsGpio);
|
PORT_SetPinMux(TEST_LED_PORT, TEST_LED_PIN, kPORT_MuxAsGpio);
|
||||||
|
|||||||
@@ -22,6 +22,6 @@
|
|||||||
|
|
||||||
// Functions:
|
// Functions:
|
||||||
|
|
||||||
extern void InitTestLed();
|
extern void InitTestLed(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user