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

@@ -103,7 +103,7 @@ public:
// ISR for Rx
void store_rxd_char();
// ISR for Tx (UDRE vector)
void tx_udr_empty_irq(void);
void tx_udr_empty_irq();
inline volatile bool is_rx_overrun() {
return dgus_rx_overrun;
@@ -1013,7 +1013,7 @@ FORCE_INLINE void DGUSSerial::store_rxd_char() {
}
// (called with TX irqs disabled)
FORCE_INLINE void DGUSSerial::tx_udr_empty_irq(void) {
FORCE_INLINE void DGUSSerial::tx_udr_empty_irq() {
// Read positions
uint8_t t = tx_buffer.tail;
const uint8_t h = tx_buffer.head;
@@ -1039,7 +1039,7 @@ FORCE_INLINE void DGUSSerial::tx_udr_empty_irq(void) {
if (h == t) CBI(DGUS_UCSRxB, UDRIEx);
}
r_ring_buffer_pos_t DGUSSerial::available(void) {
r_ring_buffer_pos_t DGUSSerial::available() {
const r_ring_buffer_pos_t h = atomic_read_rx_head(), t = rx_buffer.tail;
return (r_ring_buffer_pos_t) (DGUS_RX_BUFFER_SIZE + h - t) & (DGUS_RX_BUFFER_SIZE - 1);
}

View File

@@ -29,11 +29,11 @@
using namespace FTDI;
using namespace FTDI::SPI;
void CLCD::enable(void) {
void CLCD::enable() {
mem_write_8(REG::PCLK, Pclk);
}
void CLCD::disable(void) {
void CLCD::disable() {
mem_write_8(REG::PCLK, 0x00);
}
@@ -45,7 +45,7 @@ uint8_t CLCD::get_brightness() {
return mem_read_8(REG::PWM_DUTY);
}
void CLCD::turn_on_backlight(void) {
void CLCD::turn_on_backlight() {
mem_write_8(REG::PWM_DUTY, 128);
}
@@ -1052,7 +1052,7 @@ void CLCD::CommandFifo::str(progmem_str data) {
/******************* LCD INITIALIZATION ************************/
void CLCD::init(void) {
void CLCD::init() {
spi_init(); // Set Up I/O Lines for SPI and FT800/810 Control
ftdi_reset(); // Power down/up the FT8xx with the apropriate delays

View File

@@ -124,12 +124,12 @@ class CLCD {
class CommandFifo;
class FontMetrics;
static void init(void);
static void default_touch_transform(void);
static void default_display_orientation(void);
static void turn_on_backlight(void);
static void enable(void);
static void disable(void);
static void init();
static void default_touch_transform();
static void default_display_orientation();
static void turn_on_backlight();
static void enable();
static void disable();
static void set_brightness (uint8_t brightness);
static uint8_t get_brightness();
static void host_cmd (unsigned char host_command, unsigned char byte2);
@@ -179,7 +179,7 @@ class CLCD::CommandFifo {
static uint32_t command_write_ptr;
template <class T> bool _write_unaligned(T data, uint16_t len);
#endif
void start(void);
void start();
public:
template <class T> bool write(T data, uint16_t len);
@@ -187,11 +187,11 @@ class CLCD::CommandFifo {
public:
CommandFifo() {start();}
static void reset(void);
static void reset();
static bool is_processing();
static bool has_fault();
void execute(void);
void execute();
void cmd(uint32_t cmd32);
void cmd(void* data, uint16_t len);

View File

@@ -31,7 +31,7 @@ namespace FTDI {
SPISettings SPI::spi_settings(SPI_FREQUENCY, MSBFIRST, SPI_MODE0);
#endif
void SPI::spi_init(void) {
void SPI::spi_init() {
SET_OUTPUT(CLCD_MOD_RESET); // Module Reset (a.k.a. PD, not SPI)
WRITE(CLCD_MOD_RESET, 0); // start with module in power-down
@@ -106,7 +106,7 @@ namespace FTDI {
}
// CLCD SPI - Chip Select
void SPI::spi_ftdi_select(void) {
void SPI::spi_ftdi_select() {
#ifndef CLCD_USE_SOFT_SPI
::SPI.beginTransaction(spi_settings);
#endif
@@ -115,7 +115,7 @@ namespace FTDI {
}
// CLCD SPI - Chip Deselect
void SPI::spi_ftdi_deselect(void) {
void SPI::spi_ftdi_deselect() {
WRITE(CLCD_SPI_CS, 1);
#ifndef CLCD_USE_SOFT_SPI
::SPI.endTransaction();
@@ -142,7 +142,7 @@ namespace FTDI {
#endif
// Not really a SPI signal...
void SPI::ftdi_reset(void) {
void SPI::ftdi_reset() {
WRITE(CLCD_MOD_RESET, 0);
delay(6); /* minimum time for power-down is 5ms */
WRITE(CLCD_MOD_RESET, 1);
@@ -150,7 +150,7 @@ namespace FTDI {
}
// Not really a SPI signal...
void SPI::test_pulse(void) {
void SPI::test_pulse() {
#ifdef CLCD_AUX_0
WRITE(CLCD_AUX_0, 1);
delayMicroseconds(10);

View File

@@ -122,7 +122,7 @@ namespace FTDI {
void spi_read_bulk( void *data, uint16_t len);
bool spi_verify_bulk(const void *data, uint16_t len);
void ftdi_reset(void);
void test_pulse(void);
void ftdi_reset();
void test_pulse();
}
}

View File

@@ -54,11 +54,11 @@ typedef enum {
class ScreenRef {
protected:
typedef void onStartup_func_t(void);
typedef void onEntry_func_t(void);
typedef void onExit_func_t(void);
typedef void onIdle_func_t(void);
typedef void onRefresh_func_t(void);
typedef void onStartup_func_t();
typedef void onEntry_func_t();
typedef void onExit_func_t();
typedef void onIdle_func_t();
typedef void onRefresh_func_t();
typedef void onRedraw_func_t(draw_mode_t);
typedef bool onTouchStart_func_t(uint8_t);
typedef bool onTouchHeld_func_t(uint8_t);