Don't use the extern keyword for functions because it's redundant.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void InitI2cWatchdog(void);
|
||||
extern void RunWatchdog(void);
|
||||
void InitI2cWatchdog(void);
|
||||
void RunWatchdog(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void InitPeripherals(void);
|
||||
extern void InitI2c(void);
|
||||
void InitPeripherals(void);
|
||||
void InitI2c(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void LedPwm_Init(void);
|
||||
void LedPwm_Init(void);
|
||||
void LedPwm_SetBrightness(uint8_t brightnessPercent);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -22,6 +22,6 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void InitTestLed(void);
|
||||
void InitTestLed(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void EEPROM_Init(void);
|
||||
extern status_t EEPROM_LaunchTransfer(eeprom_transfer_t transferType, void (*successCallback));
|
||||
void EEPROM_Init(void);
|
||||
status_t EEPROM_LaunchTransfer(eeprom_transfer_t transferType, void (*successCallback));
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
#ifndef __I2C_WATCHDOG_H__
|
||||
#define __I2C_WATCHDOG_H__
|
||||
|
||||
// Functions:
|
||||
// Variables:
|
||||
|
||||
extern void InitI2cWatchdog();
|
||||
extern uint32_t I2C_WatchdogInnerCounter;
|
||||
extern uint32_t I2C_WatchdogOuterCounter;
|
||||
|
||||
// Functions:
|
||||
|
||||
void InitI2cWatchdog();
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void InitPeripherals();
|
||||
void InitPeripherals();
|
||||
|
||||
#endif
|
||||
|
||||
@@ -90,6 +90,6 @@
|
||||
|
||||
// Variables:
|
||||
|
||||
extern void UpdateActiveUsbReports();
|
||||
void UpdateActiveUsbReports();
|
||||
|
||||
#endif
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void LedPwm_Init();
|
||||
void LedPwm_Init();
|
||||
void LedPwm_SetBrightness(uint8_t brightnessPercent);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void ADC_Init(void);
|
||||
extern uint32_t ADC_Measure(void);
|
||||
void ADC_Init(void);
|
||||
uint32_t ADC_Measure(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -44,6 +44,6 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void InitLedDriver();
|
||||
void InitLedDriver();
|
||||
|
||||
#endif
|
||||
|
||||
@@ -18,6 +18,6 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void InitMergeSensor();
|
||||
void InitMergeSensor();
|
||||
|
||||
#endif
|
||||
|
||||
@@ -18,6 +18,6 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void InitResetButton();
|
||||
void InitResetButton();
|
||||
|
||||
#endif
|
||||
|
||||
@@ -22,6 +22,6 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void InitTestLed();
|
||||
void InitTestLed();
|
||||
|
||||
#endif
|
||||
|
||||
@@ -45,8 +45,8 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void LedSlaveDriver_Init(uint8_t ledDriverId);
|
||||
extern status_t LedSlaveDriver_Update(uint8_t ledDriverId);
|
||||
extern void SetLeds(uint8_t ledBrightness);
|
||||
void LedSlaveDriver_Init(uint8_t ledDriverId);
|
||||
status_t LedSlaveDriver_Update(uint8_t ledDriverId);
|
||||
void SetLeds(uint8_t ledBrightness);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void UhkModuleSlaveDriver_Init(uint8_t uhkModuleId);
|
||||
extern status_t UhkModuleSlaveDriver_Update(uint8_t uhkModuleId);
|
||||
void UhkModuleSlaveDriver_Init(uint8_t uhkModuleId);
|
||||
status_t UhkModuleSlaveDriver_Update(uint8_t uhkModuleId);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void InitSlaveScheduler();
|
||||
extern void SetLeds(uint8_t ledBrightness);
|
||||
void InitSlaveScheduler();
|
||||
void SetLeds(uint8_t ledBrightness);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -32,6 +32,6 @@
|
||||
|
||||
//Functions:
|
||||
|
||||
extern void InitUsb();
|
||||
void InitUsb();
|
||||
|
||||
#endif
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern usb_status_t USB_DeviceGetConfigurationDescriptor(
|
||||
usb_status_t USB_DeviceGetConfigurationDescriptor(
|
||||
usb_device_handle handle, usb_device_get_configuration_descriptor_struct_t *configurationDescriptor);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern usb_status_t USB_DeviceGetDeviceDescriptor(
|
||||
usb_status_t USB_DeviceGetDeviceDescriptor(
|
||||
usb_device_handle handle, usb_device_get_device_descriptor_struct_t *deviceDescriptor);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -12,6 +12,6 @@
|
||||
|
||||
// Variables:
|
||||
|
||||
extern uint8_t UsbGenericHidReportDescriptor[USB_GENERIC_HID_REPORT_DESCRIPTOR_LENGTH];
|
||||
uint8_t UsbGenericHidReportDescriptor[USB_GENERIC_HID_REPORT_DESCRIPTOR_LENGTH];
|
||||
|
||||
#endif
|
||||
|
||||
@@ -11,13 +11,13 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern usb_status_t USB_DeviceGetHidDescriptor(
|
||||
usb_status_t USB_DeviceGetHidDescriptor(
|
||||
usb_device_handle handle, usb_device_get_hid_descriptor_struct_t *hidDescriptor);
|
||||
|
||||
extern usb_status_t USB_DeviceGetHidReportDescriptor(
|
||||
usb_status_t USB_DeviceGetHidReportDescriptor(
|
||||
usb_device_handle handle, usb_device_get_hid_report_descriptor_struct_t *hidReportDescriptor);
|
||||
|
||||
extern usb_status_t USB_DeviceGetHidPhysicalDescriptor(
|
||||
usb_status_t USB_DeviceGetHidPhysicalDescriptor(
|
||||
usb_device_handle handle, usb_device_get_hid_physical_descriptor_struct_t *hidPhysicalDescriptor);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern usb_status_t USB_DeviceGetStringDescriptor(
|
||||
usb_status_t USB_DeviceGetStringDescriptor(
|
||||
usb_device_handle handle, usb_device_get_string_descriptor_struct_t *stringDescriptor);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -36,11 +36,11 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern usb_status_t UsbBasicKeyboardCallback(class_handle_t handle, uint32_t event, void *param);
|
||||
extern usb_status_t UsbBasicKeyboardSetConfiguration(class_handle_t handle, uint8_t configuration);
|
||||
extern usb_status_t UsbBasicKeyboardSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting);
|
||||
usb_status_t UsbBasicKeyboardCallback(class_handle_t handle, uint32_t event, void *param);
|
||||
usb_status_t UsbBasicKeyboardSetConfiguration(class_handle_t handle, uint8_t configuration);
|
||||
usb_status_t UsbBasicKeyboardSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting);
|
||||
|
||||
extern void ResetActiveUsbBasicKeyboardReport();
|
||||
extern void SwitchActiveUsbBasicKeyboardReport();
|
||||
void ResetActiveUsbBasicKeyboardReport();
|
||||
void SwitchActiveUsbBasicKeyboardReport();
|
||||
|
||||
#endif
|
||||
|
||||
@@ -32,9 +32,8 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern usb_status_t UsbGenericHidCallback(class_handle_t handle, uint32_t event, void *param);
|
||||
extern usb_status_t UsbGenericHidSetConfiguration(class_handle_t handle, uint8_t configuration);
|
||||
extern usb_status_t UsbGenericHidSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting);
|
||||
|
||||
usb_status_t UsbGenericHidCallback(class_handle_t handle, uint32_t event, void *param);
|
||||
usb_status_t UsbGenericHidSetConfiguration(class_handle_t handle, uint8_t configuration);
|
||||
usb_status_t UsbGenericHidSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -34,11 +34,11 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern usb_status_t UsbMediaKeyboardCallback(class_handle_t handle, uint32_t event, void *param);
|
||||
extern usb_status_t UsbMediaKeyboardSetConfiguration(class_handle_t handle, uint8_t configuration);
|
||||
extern usb_status_t UsbMediaKeyboardSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting);
|
||||
usb_status_t UsbMediaKeyboardCallback(class_handle_t handle, uint32_t event, void *param);
|
||||
usb_status_t UsbMediaKeyboardSetConfiguration(class_handle_t handle, uint8_t configuration);
|
||||
usb_status_t UsbMediaKeyboardSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting);
|
||||
|
||||
extern void ResetActiveUsbMediaKeyboardReport();
|
||||
extern void SwitchActiveUsbMediaKeyboardReport();
|
||||
void ResetActiveUsbMediaKeyboardReport();
|
||||
void SwitchActiveUsbMediaKeyboardReport();
|
||||
|
||||
#endif
|
||||
|
||||
@@ -35,10 +35,10 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern usb_status_t UsbMouseCallback(class_handle_t handle, uint32_t event, void *param);
|
||||
extern usb_status_t UsbMouseSetConfiguration(class_handle_t handle, uint8_t configuration);
|
||||
extern usb_status_t UsbMouseSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting);
|
||||
usb_status_t UsbMouseCallback(class_handle_t handle, uint32_t event, void *param);
|
||||
usb_status_t UsbMouseSetConfiguration(class_handle_t handle, uint8_t configuration);
|
||||
usb_status_t UsbMouseSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting);
|
||||
|
||||
extern usb_mouse_report_t UsbMouseReport;
|
||||
usb_mouse_report_t UsbMouseReport;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -34,11 +34,11 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern usb_status_t UsbSystemKeyboardCallback(class_handle_t handle, uint32_t event, void *param);
|
||||
extern usb_status_t UsbSystemKeyboardSetConfiguration(class_handle_t handle, uint8_t configuration);
|
||||
extern usb_status_t UsbSystemKeyboardSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting);
|
||||
usb_status_t UsbSystemKeyboardCallback(class_handle_t handle, uint32_t event, void *param);
|
||||
usb_status_t UsbSystemKeyboardSetConfiguration(class_handle_t handle, uint8_t configuration);
|
||||
usb_status_t UsbSystemKeyboardSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting);
|
||||
|
||||
extern void ResetActiveUsbSystemKeyboardReport();
|
||||
extern void SwitchActiveUsbSystemKeyboardReport();
|
||||
void ResetActiveUsbSystemKeyboardReport();
|
||||
void SwitchActiveUsbSystemKeyboardReport();
|
||||
|
||||
#endif
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void UsbProtocolHandler();
|
||||
extern void ApplyConfig(void);
|
||||
void UsbProtocolHandler();
|
||||
void ApplyConfig(void);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user