projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove path from toolchain when creating presets (use the system one).
[bertos.git]
/
bertos
/
net
/
afsk.c
diff --git
a/bertos/net/afsk.c
b/bertos/net/afsk.c
index 229ca3ec359e0e44a5a2d8ffb5361ccfe9df35d3..d58758cd8397031613a1e8b9395f7421b5edc241 100644
(file)
--- a/
bertos/net/afsk.c
+++ b/
bertos/net/afsk.c
@@
-32,7
+32,7
@@
*
* \brief AFSK1200 modem.
*
*
* \brief AFSK1200 modem.
*
- * \author Francesco Sacchi <
asterix
@develer.com>
+ * \author Francesco Sacchi <
batt
@develer.com>
*/
#include "afsk.h"
*/
#include "afsk.h"
@@
-105,11
+105,7
@@
INLINE uint8_t sin_sample(uint16_t idx)
uint16_t new_idx = idx % (SIN_LEN / 2);
new_idx = (new_idx >= (SIN_LEN / 4)) ? (SIN_LEN / 2 - new_idx - 1) : new_idx;
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;
}
return (idx >= (SIN_LEN / 2)) ? (255 - data) : data;
}
@@
-476,7
+472,7
@@
static size_t afsk_read(KFile *fd, void *_buf, size_t size)
ticks_t start = timer_clock();
#endif
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
{
cpu_relax();
#if CONFIG_AFSK_RXTIMEOUT != -1