change: remove inline directive in armsrc, since we are optimizing for size

This commit is contained in:
iceman1001 2020-05-19 17:15:07 +02:00
commit 47634f5550
4 changed files with 11 additions and 28 deletions

View file

@ -64,8 +64,7 @@ static uint32_t last_frame_end; /* ts of last bit of previews rx or tx frame */
//-----------------------------------------------------------------------------
// I/O interface abstraction (FPGA -> ARM)
//-----------------------------------------------------------------------------
static inline uint8_t rx_byte_from_fpga(void) {
static uint8_t rx_byte_from_fpga(void) {
for (;;) {
WDT_HIT();
@ -93,11 +92,7 @@ static inline uint8_t rx_byte_from_fpga(void) {
// Note: The SSC receiver is never synchronized the calculation may be performed
// on a i/q pair from two subsequent correlations, but does not matter.
// Note: inlining this function would fail with -Os
#ifdef __OPTIMIZE_SIZE__
static int32_t sample_power(void) {
#else
static inline int32_t sample_power(void) {
#endif
int32_t q = (int8_t)rx_byte_from_fpga();
q = ABS(q);
int32_t i = (int8_t)rx_byte_from_fpga();
@ -115,11 +110,7 @@ static inline int32_t sample_power(void) {
// has a delay loop that aligns rx_bit calls to the TAG tx timeslots.
// Note: inlining this function would fail with -Os
#ifdef __OPTIMIZE_SIZE__
static bool rx_bit(void) {
#else
static inline bool rx_bit(void) {
#endif
int32_t power;
for (size_t i = 0; i < 5; ++i) {
@ -138,7 +129,7 @@ static inline bool rx_bit(void) {
// be circumvented, but the adventage over bitbang would be little.
//-----------------------------------------------------------------------------
static inline void tx_bit(bool bit) {
static void tx_bit(bool bit) {
// insert pause
LOW(GPIO_SSC_DOUT);
last_frame_end += RWD_TIME_PAUSE;