Skip to content

Commit

Permalink
Remove static inline prototypes, as they confuse Doxygen.
Browse files Browse the repository at this point in the history
  • Loading branch information
abcminiuser committed Sep 19, 2023
1 parent 7a3b523 commit 0200c23
Show file tree
Hide file tree
Showing 145 changed files with 567 additions and 581 deletions.
2 changes: 1 addition & 1 deletion BuildTests/BoardDriverTest/Board/Buttons.h
Expand Up @@ -76,7 +76,7 @@

}

static inline uint8_t Buttons_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t Buttons_GetStatus(void)
{
return 0;
Expand Down
12 changes: 6 additions & 6 deletions BuildTests/BoardDriverTest/Board/Dataflash.h
Expand Up @@ -97,7 +97,7 @@
*
* \return Last response byte from the dataflash
*/
static inline uint8_t Dataflash_TransferByte(const uint8_t Byte) ATTR_ALWAYS_INLINE;
ATTR_ALWAYS_INLINE
static inline uint8_t Dataflash_TransferByte(const uint8_t Byte)
{
return 0;
Expand All @@ -107,7 +107,7 @@
*
* \param[in] Byte Byte of data to send to the dataflash
*/
static inline void Dataflash_SendByte(const uint8_t Byte) ATTR_ALWAYS_INLINE;
ATTR_ALWAYS_INLINE
static inline void Dataflash_SendByte(const uint8_t Byte)
{

Expand All @@ -117,7 +117,7 @@
*
* \return Last response byte from the dataflash
*/
static inline uint8_t Dataflash_ReceiveByte(void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT;
ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT
static inline uint8_t Dataflash_ReceiveByte(void)
{
return 0;
Expand All @@ -128,7 +128,7 @@
* \return Mask of the currently selected Dataflash chip, either \ref DATAFLASH_NO_CHIP if no chip is selected
* or a DATAFLASH_CHIPn mask (where n is the chip number).
*/
static inline uint8_t Dataflash_GetSelectedChip(void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT;
ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT
static inline uint8_t Dataflash_GetSelectedChip(void)
{
return 0;
Expand All @@ -139,14 +139,14 @@
* \param[in] ChipMask Mask of the Dataflash IC to select, in the form of a \c DATAFLASH_CHIPn mask (where n is
* the chip number).
*/
static inline void Dataflash_SelectChip(const uint8_t ChipMask) ATTR_ALWAYS_INLINE;
ATTR_ALWAYS_INLINE
static inline void Dataflash_SelectChip(const uint8_t ChipMask)
{

}

/** Deselects the current dataflash chip, so that no dataflash is selected. */
static inline void Dataflash_DeselectChip(void) ATTR_ALWAYS_INLINE;
ATTR_ALWAYS_INLINE
static inline void Dataflash_DeselectChip(void)
{

Expand Down
2 changes: 1 addition & 1 deletion BuildTests/BoardDriverTest/Board/Joystick.h
Expand Up @@ -88,7 +88,7 @@

}

static inline uint8_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t Joystick_GetStatus(void)
{
return 0;
Expand Down
2 changes: 1 addition & 1 deletion BuildTests/BoardDriverTest/Board/LEDs.h
Expand Up @@ -116,7 +116,7 @@

}

static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t LEDs_GetLEDs(void)
{
return 0;
Expand Down
2 changes: 1 addition & 1 deletion LUFA/CodeTemplates/DriverStubs/Buttons.h
Expand Up @@ -74,7 +74,7 @@
// TODO: Clear the appropriate port pins as high impedance inputs here
}

static inline uint8_t Buttons_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t Buttons_GetStatus(void)
{
// TODO: Return current button status here, debounced if required
Expand Down
12 changes: 6 additions & 6 deletions LUFA/CodeTemplates/DriverStubs/Dataflash.h
Expand Up @@ -97,7 +97,7 @@
*
* \return Last response byte from the dataflash
*/
static inline uint8_t Dataflash_TransferByte(const uint8_t Byte) ATTR_ALWAYS_INLINE;
ATTR_ALWAYS_INLINE
static inline uint8_t Dataflash_TransferByte(const uint8_t Byte)
{
// TODO
Expand All @@ -107,7 +107,7 @@
*
* \param[in] Byte Byte of data to send to the dataflash
*/
static inline void Dataflash_SendByte(const uint8_t Byte) ATTR_ALWAYS_INLINE;
ATTR_ALWAYS_INLINE
static inline void Dataflash_SendByte(const uint8_t Byte)
{
// TODO
Expand All @@ -117,7 +117,7 @@
*
* \return Last response byte from the dataflash
*/
static inline uint8_t Dataflash_ReceiveByte(void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT;
ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT
static inline uint8_t Dataflash_ReceiveByte(void)
{
// TODO
Expand All @@ -128,7 +128,7 @@
* \return Mask of the currently selected Dataflash chip, either \ref DATAFLASH_NO_CHIP if no chip is selected
* or a DATAFLASH_CHIPn mask (where n is the chip number).
*/
static inline uint8_t Dataflash_GetSelectedChip(void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT;
ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT
static inline uint8_t Dataflash_GetSelectedChip(void)
{
return (~DATAFLASH_CHIPCS_PORT & DATAFLASH_CHIPCS_MASK);
Expand All @@ -139,14 +139,14 @@
* \param[in] ChipMask Mask of the Dataflash IC to select, in the form of a \c DATAFLASH_CHIPn mask (where n is
* the chip number).
*/
static inline void Dataflash_SelectChip(const uint8_t ChipMask) ATTR_ALWAYS_INLINE;
ATTR_ALWAYS_INLINE
static inline void Dataflash_SelectChip(const uint8_t ChipMask)
{
DATAFLASH_CHIPCS_PORT = ((DATAFLASH_CHIPCS_PORT | DATAFLASH_CHIPCS_MASK) & ~ChipMask);
}

/** Deselects the current dataflash chip, so that no dataflash is selected. */
static inline void Dataflash_DeselectChip(void) ATTR_ALWAYS_INLINE;
ATTR_ALWAYS_INLINE
static inline void Dataflash_DeselectChip(void)
{
Dataflash_SelectChip(DATAFLASH_NO_CHIP);
Expand Down
2 changes: 1 addition & 1 deletion LUFA/CodeTemplates/DriverStubs/Joystick.h
Expand Up @@ -86,7 +86,7 @@
// TODO: Clear the joystick pins as high impedance inputs here
}

static inline uint8_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t Joystick_GetStatus(void)
{
// TODO: Return current joystick position data which can be obtained by masking against the JOY_* macros
Expand Down
2 changes: 1 addition & 1 deletion LUFA/CodeTemplates/DriverStubs/LEDs.h
Expand Up @@ -114,7 +114,7 @@
// TODO: Add code to toggle the Leds in the given LEDMask, ignoring all others
}

static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t LEDs_GetLEDs(void)
{
// TODO: Add code to return the current LEDs status' here which can be masked against LED_LED* macros
Expand Down
12 changes: 6 additions & 6 deletions LUFA/Common/Common.h
Expand Up @@ -246,7 +246,7 @@
*
* \return Input data with the individual bits reversed (mirrored).
*/
static inline uint8_t BitReverse(uint8_t Byte) ATTR_WARN_UNUSED_RESULT ATTR_CONST;
ATTR_WARN_UNUSED_RESULT ATTR_CONST
static inline uint8_t BitReverse(uint8_t Byte)
{
Byte = (((Byte & 0xF0) >> 4) | ((Byte & 0x0F) << 4));
Expand All @@ -262,7 +262,7 @@
*
* \param[in] Milliseconds Number of milliseconds to delay
*/
static inline void Delay_MS(uint16_t Milliseconds) ATTR_ALWAYS_INLINE;
ATTR_ALWAYS_INLINE
static inline void Delay_MS(uint16_t Milliseconds)
{
#if (ARCH == ARCH_AVR8)
Expand Down Expand Up @@ -302,7 +302,7 @@
*
* \return Mask containing the current Global Interrupt Enable Mask bit(s).
*/
static inline uint_reg_t GetGlobalInterruptMask(void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT;
ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT
static inline uint_reg_t GetGlobalInterruptMask(void)
{
GCC_MEMORY_BARRIER();
Expand All @@ -324,7 +324,7 @@
*
* \param[in] GlobalIntState Global Interrupt Enable Mask value to use
*/
static inline void SetGlobalInterruptMask(const uint_reg_t GlobalIntState) ATTR_ALWAYS_INLINE;
ATTR_ALWAYS_INLINE
static inline void SetGlobalInterruptMask(const uint_reg_t GlobalIntState)
{
GCC_MEMORY_BARRIER();
Expand All @@ -347,7 +347,7 @@
*
* \ingroup Group_GlobalInt
*/
static inline void GlobalInterruptEnable(void) ATTR_ALWAYS_INLINE;
ATTR_ALWAYS_INLINE
static inline void GlobalInterruptEnable(void)
{
GCC_MEMORY_BARRIER();
Expand All @@ -367,7 +367,7 @@
*
* \ingroup Group_GlobalInt
*/
static inline void GlobalInterruptDisable(void) ATTR_ALWAYS_INLINE;
ATTR_ALWAYS_INLINE
static inline void GlobalInterruptDisable(void)
{
GCC_MEMORY_BARRIER();
Expand Down
7 changes: 3 additions & 4 deletions LUFA/Common/Endianness.h
Expand Up @@ -397,7 +397,7 @@
*
* \return Input data with the individual bytes reversed.
*/
static inline uint16_t SwapEndian_16(const uint16_t Word) ATTR_WARN_UNUSED_RESULT ATTR_CONST ATTR_ALWAYS_INLINE;
ATTR_WARN_UNUSED_RESULT ATTR_CONST ATTR_ALWAYS_INLINE
static inline uint16_t SwapEndian_16(const uint16_t Word)
{
if (GCC_IS_COMPILE_CONST(Word))
Expand Down Expand Up @@ -428,7 +428,7 @@
*
* \return Input data with the individual bytes reversed.
*/
static inline uint32_t SwapEndian_32(const uint32_t DWord) ATTR_WARN_UNUSED_RESULT ATTR_CONST ATTR_ALWAYS_INLINE;
ATTR_WARN_UNUSED_RESULT ATTR_CONST ATTR_ALWAYS_INLINE
static inline uint32_t SwapEndian_32(const uint32_t DWord)
{
if (GCC_IS_COMPILE_CONST(DWord))
Expand Down Expand Up @@ -462,8 +462,7 @@
* \param[in,out] Data Pointer to a number containing an even number of bytes to be reversed.
* \param[in] Length Length of the data in bytes.
*/
static inline void SwapEndian_n(void* const Data,
uint8_t Length) ATTR_NON_NULL_PTR_ARG(1);
ATTR_NON_NULL_PTR_ARG(1)
static inline void SwapEndian_n(void* const Data,
uint8_t Length)
{
Expand Down
2 changes: 1 addition & 1 deletion LUFA/Drivers/Board/AVR8/ADAFRUITU4/LEDs.h
Expand Up @@ -117,7 +117,7 @@
PINE = LEDMask;
}

static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t LEDs_GetLEDs(void)
{
return (PORTE & LEDS_ALL_LEDS);
Expand Down
2 changes: 1 addition & 1 deletion LUFA/Drivers/Board/AVR8/ATAVRUSBRF01/Buttons.h
Expand Up @@ -85,7 +85,7 @@
PORTD &= ~BUTTONS_BUTTON1;
}

static inline uint8_t Buttons_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t Buttons_GetStatus(void)
{
return ((PIND & BUTTONS_BUTTON1) ^ BUTTONS_BUTTON1);
Expand Down
2 changes: 1 addition & 1 deletion LUFA/Drivers/Board/AVR8/ATAVRUSBRF01/LEDs.h
Expand Up @@ -121,7 +121,7 @@
PIND = LEDMask;
}

static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t LEDs_GetLEDs(void)
{
return (PORTD & LEDS_ALL_LEDS);
Expand Down
2 changes: 1 addition & 1 deletion LUFA/Drivers/Board/AVR8/BENITO/Buttons.h
Expand Up @@ -85,7 +85,7 @@
PORTD &= ~BUTTONS_BUTTON1;
}

static inline uint8_t Buttons_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t Buttons_GetStatus(void)
{
return ((PIND & BUTTONS_BUTTON1) ^ BUTTONS_BUTTON1);
Expand Down
2 changes: 1 addition & 1 deletion LUFA/Drivers/Board/AVR8/BENITO/LEDs.h
Expand Up @@ -121,7 +121,7 @@
PINC = LEDMask;
}

static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t LEDs_GetLEDs(void)
{
return (~PORTC & LEDS_ALL_LEDS);
Expand Down
2 changes: 1 addition & 1 deletion LUFA/Drivers/Board/AVR8/BIGMULTIO/LEDs.h
Expand Up @@ -143,7 +143,7 @@
PINE = (LEDMask & LEDS_PORTE_LEDS);
}

static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t LEDs_GetLEDs(void)
{
return ((PORTF & LEDS_PORTF_LEDS) | (PORTE & LEDS_PORTE_LEDS));
Expand Down
2 changes: 1 addition & 1 deletion LUFA/Drivers/Board/AVR8/BLACKCAT/LEDs.h
Expand Up @@ -121,7 +121,7 @@
PIND = LEDMask;
}

static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t LEDs_GetLEDs(void)
{
return (PORTD & LEDS_ALL_LEDS);
Expand Down
2 changes: 1 addition & 1 deletion LUFA/Drivers/Board/AVR8/BUI/LEDs.h
Expand Up @@ -125,7 +125,7 @@
PINC = LEDMask;
}

static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t LEDs_GetLEDs(void)
{
return (PORTC & LEDS_ALL_LEDS);
Expand Down
2 changes: 1 addition & 1 deletion LUFA/Drivers/Board/AVR8/BUMBLEB/Buttons.h
Expand Up @@ -87,7 +87,7 @@
PORTD &= ~BUTTONS_BUTTON1;
}

static inline uint8_t Buttons_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t Buttons_GetStatus(void)
{
return ((PIND & BUTTONS_BUTTON1) ^ BUTTONS_BUTTON1);
Expand Down
2 changes: 1 addition & 1 deletion LUFA/Drivers/Board/AVR8/BUMBLEB/Joystick.h
Expand Up @@ -105,7 +105,7 @@
PORTD &= ~JOY_MASK;
}

static inline uint8_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t Joystick_GetStatus(void)
{
return (uint8_t)(~PIND & JOY_MASK);
Expand Down
2 changes: 1 addition & 1 deletion LUFA/Drivers/Board/AVR8/BUMBLEB/LEDs.h
Expand Up @@ -131,7 +131,7 @@
PINB = LEDMask;
}

static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t LEDs_GetLEDs(void)
{
return (PORTB & LEDS_ALL_LEDS);
Expand Down
2 changes: 1 addition & 1 deletion LUFA/Drivers/Board/AVR8/CULV3/Buttons.h
Expand Up @@ -85,7 +85,7 @@
PORTE &= ~BUTTONS_BUTTON1;
}

static inline uint8_t Buttons_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t Buttons_GetStatus(void)
{
return ((PINE & BUTTONS_BUTTON1) ^ BUTTONS_BUTTON1);
Expand Down
2 changes: 1 addition & 1 deletion LUFA/Drivers/Board/AVR8/CULV3/LEDs.h
Expand Up @@ -117,7 +117,7 @@
PINE = LEDMask;
}

static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t LEDs_GetLEDs(void)
{
return (PORTE & LEDS_ALL_LEDS);
Expand Down
2 changes: 1 addition & 1 deletion LUFA/Drivers/Board/AVR8/DUCE/LEDs.h
Expand Up @@ -129,7 +129,7 @@
PINC = LEDMask;
}

static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t LEDs_GetLEDs(void)
{
return (PORTC & LEDS_ALL_LEDS);
Expand Down
2 changes: 1 addition & 1 deletion LUFA/Drivers/Board/AVR8/EVK527/Buttons.h
Expand Up @@ -85,7 +85,7 @@
PORTE &= ~BUTTONS_BUTTON1;
}

static inline uint8_t Buttons_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
ATTR_WARN_UNUSED_RESULT
static inline uint8_t Buttons_GetStatus(void)
{
return ((PINE & BUTTONS_BUTTON1) ^ BUTTONS_BUTTON1);
Expand Down

0 comments on commit 0200c23

Please sign in to comment.