Skip to content

Commit

Permalink
SPI: Rename inline_function to always_inline_function
Browse files Browse the repository at this point in the history
Fix compile error due to updated keyword of inline function.

refs #16403
  • Loading branch information
KazuyaHioki authored and SPRESENSE committed Nov 7, 2023
1 parent a3f2d34 commit f93c7ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ SPIClass SPI3(SPIDEV_PORT_3);
/**
* @brief Reverse bits.
*/
static inline uint8_t reverse_bits(uint8_t data) inline_function;
static inline uint8_t reverse_bits(uint8_t data) always_inline_function;
static inline uint8_t reverse_bits(uint8_t data)
{
return (((data & 0x01) << 7) | ((data & 0x02) << 5) | ((data & 0x04) << 3) | ((data & 0x08) << 1) |
Expand Down

0 comments on commit f93c7ea

Please sign in to comment.