Drop C-style 'void' argument

This commit is contained in:
Scott Lahteine
2019-09-16 20:31:08 -05:00
parent 7d8c38693f
commit f01f0d1956
174 changed files with 864 additions and 864 deletions

View File

@ -59,7 +59,7 @@
//
// Initialize SPI bus
void spiBegin(void);
void spiBegin();
// Configure SPI for specified SPI speed
void spiInit(uint8_t spiRate);
@ -68,7 +68,7 @@ void spiInit(uint8_t spiRate);
void spiSend(uint8_t b);
// Read single byte from SPI
uint8_t spiRec(void);
uint8_t spiRec();
// Read from SPI into buffer
void spiRead(uint8_t* buf, uint16_t nbyte);

View File

@ -65,7 +65,7 @@ static const UnwindCallbacks UnwCallbacks = {
#endif
};
void backtrace(void) {
void backtrace() {
UnwindFrame btf;
uint32_t sp = 0, lr = 0, pc = 0;
@ -95,6 +95,6 @@ void backtrace(void) {
#else // !__arm__ && !__thumb__
void backtrace(void) {}
void backtrace() {}
#endif

View File

@ -22,4 +22,4 @@
#pragma once
// Perform a backtrace to the serial port
void backtrace(void);
void backtrace();

View File

@ -78,7 +78,7 @@ void UnwInitState(UnwState * const state, /**< Pointer to structure to fill.
}
// Detect if function names are available
static int __attribute__ ((noinline)) has_function_names(void) {
static int __attribute__ ((noinline)) has_function_names() {
uint32_t flag_word = ((uint32_t*)(((uint32_t)(&has_function_names)) & (-4))) [-1];
return ((flag_word & 0xFF000000) == 0xFF000000) ? 1 : 0;
}

View File

@ -23,9 +23,9 @@ extern "C" const UnwTabEntry __exidx_start[];
extern "C" const UnwTabEntry __exidx_end[];
/* This prevents the linking of libgcc unwinder code */
void __aeabi_unwind_cpp_pr0(void) {};
void __aeabi_unwind_cpp_pr1(void) {};
void __aeabi_unwind_cpp_pr2(void) {};
void __aeabi_unwind_cpp_pr0() {};
void __aeabi_unwind_cpp_pr1() {};
void __aeabi_unwind_cpp_pr2() {};
static inline __attribute__((always_inline)) uint32_t prel31_to_addr(const uint32_t *prel31) {
uint32_t offset = (((uint32_t)(*prel31)) << 1) >> 1;
@ -285,7 +285,7 @@ static UnwResult UnwTabExecuteInstructions(const UnwindCallbacks *cb, UnwTabStat
return UNWIND_SUCCESS;
}
static inline __attribute__((always_inline)) uint32_t read_psp(void) {
static inline __attribute__((always_inline)) uint32_t read_psp() {
/* Read the current PSP and return its value as a pointer */
uint32_t psp;

View File

@ -27,7 +27,7 @@ extern "C" const UnwTabEntry __exidx_start[];
extern "C" const UnwTabEntry __exidx_end[];
// Detect if unwind information is present or not
static int HasUnwindTableInfo(void) {
static int HasUnwindTableInfo() {
// > 16 because there are default entries we can't supress
return ((char*)(&__exidx_end) - (char*)(&__exidx_start)) > 16 ? 1 : 0;
}

View File

@ -42,7 +42,7 @@ static uint8_t eeprom_device_address = 0x50;
// Public functions
// ------------------------
static void eeprom_init(void) {
static void eeprom_init() {
static bool eeprom_initialized = false;
if (!eeprom_initialized) {
Wire.begin();