change: remove inline directive in armsrc, since we are optimizing for size
This commit is contained in:
@@ -66,11 +66,7 @@ static uint32_t last_frame_end; /* ts of last bit of previews rx or tx frame */
|
||||
|
||||
// Returns true if a pulse/pause is received within timeout
|
||||
// Note: inlining this function would fail with -Os
|
||||
#ifdef __OPTIMIZE_SIZE__
|
||||
static bool wait_for(bool value, const uint32_t timeout) {
|
||||
#else
|
||||
static inline bool wait_for(bool value, const uint32_t timeout) {
|
||||
#endif
|
||||
while ((bool)(AT91C_BASE_PIOA->PIO_PDSR & GPIO_SSC_DIN) != value) {
|
||||
if (GetCountSspClk() > timeout) {
|
||||
return false;
|
||||
@@ -88,7 +84,7 @@ static inline bool wait_for(bool value, const uint32_t timeout) {
|
||||
// - A bit length >80.2us is a 1
|
||||
// - A bit length <80.2us is a 0
|
||||
// - A bit length >148.6us is a code violation
|
||||
static inline int8_t rx_bit(void) {
|
||||
static int8_t rx_bit(void) {
|
||||
// backup ts for threshold calculation
|
||||
uint32_t bit_start = last_frame_end;
|
||||
|
||||
@@ -132,11 +128,7 @@ static inline int8_t rx_bit(void) {
|
||||
// not mandatory but results in a cleaner signal. tx_frame will disable
|
||||
// the subcarrier when the frame is done.
|
||||
// Note: inlining this function would fail with -Os
|
||||
#ifdef __OPTIMIZE_SIZE__
|
||||
static void tx_bit(bool bit) {
|
||||
#else
|
||||
static inline void tx_bit(bool bit) {
|
||||
#endif
|
||||
LED_C_ON();
|
||||
|
||||
if (bit) {
|
||||
|
||||
Reference in New Issue
Block a user