*
* \brief AFSK1200 modem.
*
- * \version $Id$
- * \author Francesco Sacchi <asterix@develer.com>
+ * \author Francesco Sacchi <batt@develer.com>
*/
#include "afsk.h"
uint16_t new_idx = idx % (SIN_LEN / 2);
new_idx = (new_idx >= (SIN_LEN / 4)) ? (SIN_LEN / 2 - new_idx - 1) : new_idx;
- #if CPU_HARVARD
- uint8_t data = pgm_read_char(&sin_table[new_idx]);
- #else
- uint8_t data = sin_table[new_idx];
- #endif
+ uint8_t data = pgm_read8(&sin_table[new_idx]);
return (idx >= (SIN_LEN / 2)) ? (255 - data) : data;
}
* \param bit current bit to be parsed.
* \param fifo FIFO buffer used to push characters.
*
- * \return True if all is ok, False if the fifo is full.
+ * \return true if all is ok, false if the fifo is full.
*/
static bool hdlc_parse(Hdlc *hdlc, bool bit, FIFOBuffer *fifo)
{
ticks_t start = timer_clock();
#endif
- while (fifo_isempty_locked(&af->rx_fifo));
+ while (fifo_isempty_locked(&af->rx_fifo))
{
cpu_relax();
#if CONFIG_AFSK_RXTIMEOUT != -1