mirror of
https://github.com/Derisis13/AT-VFD.git
synced 2025-12-06 19:32:49 +01:00
Fix: unified function declarations and definitions, reverted inlining
QA: autoformat
This commit is contained in:
2
PT6302.c
2
PT6302.c
@@ -32,7 +32,7 @@ inline void PT6302_startup (void)
|
||||
PT6302_reset ();
|
||||
}
|
||||
|
||||
inline void transmit_bit(const uint8_t data)
|
||||
static inline void transmit_bit (const uint8_t data)
|
||||
{
|
||||
PORTB &= ~CLKBpin;
|
||||
if ((data & 0x01) == 0)
|
||||
|
||||
12
PT6302.h
12
PT6302.h
@@ -52,7 +52,7 @@ void PT6302_startup (void);
|
||||
* Resets the VFD controller trough its reset pin
|
||||
* Handles reset delays
|
||||
* ---------------------------------------------- */
|
||||
inline void PT6302_reset(void);
|
||||
void PT6302_reset (void);
|
||||
|
||||
/* --------------------------------
|
||||
* Transmits the LSB of data
|
||||
@@ -77,14 +77,14 @@ void transmit_bytes (const uint8_t *payload, uint8_t size);
|
||||
* Sets GP1 and GP2 to the values given in the function call
|
||||
* Handles the entire communication
|
||||
* --------------------------------------------------------- */
|
||||
inline void set_ports (uint8_t gp1, uint8_t gp2);
|
||||
void set_ports (uint8_t gp1, uint8_t gp2);
|
||||
|
||||
/* ---------------------------------------------------------------------------------------
|
||||
* Sets the number of digit_count the VFD has
|
||||
* digit_count below 9 are interpreted as 9 and digit_count above 16 are interpreted as 16
|
||||
* Handles the entire communication
|
||||
* --------------------------------------------------------------------------------------- */
|
||||
inline void set_digits(uint8_t digit_count);
|
||||
void set_digits (uint8_t digit_count);
|
||||
|
||||
/* -----------------------------------------------------------
|
||||
* Sets duty cycle of controlled VFD
|
||||
@@ -92,7 +92,7 @@ inline void set_digits(uint8_t digit_count);
|
||||
* duty = (brightness + 8)/16 (valid between 8/16 and 15/16)
|
||||
* Handles the entire communication
|
||||
* ----------------------------------------------------------- */
|
||||
inline void set_duty (uint8_t brightness);
|
||||
void set_duty (uint8_t brightness);
|
||||
|
||||
/* ------------------------------------------------------------------------------------------
|
||||
* Set the content of the DCRAM - this will display a character from the CGROM/RAM at address
|
||||
@@ -131,10 +131,10 @@ void set_ADRAM(uint8_t address, const uint8_t* data, uint8_t size);
|
||||
* This is primarily used for testing
|
||||
* Handles the entire communication
|
||||
* ----------------------------------------- */
|
||||
inline void all_on(void);
|
||||
void all_on (void);
|
||||
|
||||
/* ------------------------------------------
|
||||
* Turn all outputs of the VFD controller off
|
||||
* Handles the entire communication
|
||||
* ------------------------------------------ */
|
||||
inline void all_off(void);
|
||||
void all_off (void);
|
||||
Reference in New Issue
Block a user