Explicitly add void to the argument list of zero argument functions.

This commit is contained in:
László Monda
2017-09-28 03:03:11 +02:00
parent ecf1ad2468
commit 751810ec4c
36 changed files with 49 additions and 50 deletions

View File

@@ -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);

View File

@@ -44,6 +44,6 @@
// Functions:
void InitLedDriver();
void InitLedDriver(void);
#endif

View File

@@ -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});

View File

@@ -18,6 +18,6 @@
// Functions:
void InitMergeSensor();
void InitMergeSensor(void);
#endif

View File

@@ -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});

View File

@@ -18,6 +18,6 @@
// Functions:
void InitResetButton();
void InitResetButton(void);
#endif

View File

@@ -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);

View File

@@ -22,6 +22,6 @@
// Functions:
void InitTestLed();
void InitTestLed(void);
#endif