Explicitly add void to the argument list of zero argument functions.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "peripherals/led_driver.h"
|
||||
#include "i2c_addresses.h"
|
||||
|
||||
void InitLedDriver()
|
||||
void InitLedDriver(void)
|
||||
{
|
||||
CLOCK_EnableClock(LED_DRIVER_SDB_CLOCK);
|
||||
PORT_SetPinMux(LED_DRIVER_SDB_PORT, LED_DRIVER_SDB_PIN, kPORT_MuxAsGpio);
|
||||
|
||||
@@ -44,6 +44,6 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
void InitLedDriver();
|
||||
void InitLedDriver(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "merge_sensor.h"
|
||||
#include "fsl_port.h"
|
||||
|
||||
void InitMergeSensor() {
|
||||
void InitMergeSensor(void) {
|
||||
CLOCK_EnableClock(MERGE_SENSOR_CLOCK);
|
||||
PORT_SetPinConfig(MERGE_SENSOR_PORT, MERGE_SENSOR_PIN,
|
||||
&(port_pin_config_t){.pullSelect=kPORT_PullUp, .mux=kPORT_MuxAsGpio});
|
||||
|
||||
@@ -18,6 +18,6 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
void InitMergeSensor();
|
||||
void InitMergeSensor(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "reset_button.h"
|
||||
#include "fsl_port.h"
|
||||
|
||||
void InitResetButton() {
|
||||
void InitResetButton(void) {
|
||||
CLOCK_EnableClock(RESET_BUTTON_CLOCK);
|
||||
PORT_SetPinConfig(RESET_BUTTON_PORT, RESET_BUTTON_PIN,
|
||||
&(port_pin_config_t){.pullSelect=kPORT_PullUp, .mux=kPORT_MuxAsGpio});
|
||||
|
||||
@@ -18,6 +18,6 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
void InitResetButton();
|
||||
void InitResetButton(void);
|
||||
|
||||
#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_GPIO_PORT, TEST_LED_GPIO_PIN, kPORT_MuxAsGpio);
|
||||
|
||||
@@ -22,6 +22,6 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
void InitTestLed();
|
||||
void InitTestLed(void);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user