aboutsummaryrefslogtreecommitdiff
path: root/fmdriver/fmdriver_common.h
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-03-14 19:10:24 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-03-14 19:10:24 +0900
commit46e2455027537dc1ef56b98b712cf92edf27dca5 (patch)
treee2a09f9b53274a22c0f9a08a2a56bf3f31cf507e /fmdriver/fmdriver_common.h
parent16be4100808e09a94e802adb58bc1c79e5eefd65 (diff)
add initial PMD support
Diffstat (limited to 'fmdriver/fmdriver_common.h')
-rw-r--r--fmdriver/fmdriver_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fmdriver/fmdriver_common.h b/fmdriver/fmdriver_common.h
index 706dc95..2700336 100644
--- a/fmdriver/fmdriver_common.h
+++ b/fmdriver/fmdriver_common.h
@@ -1,6 +1,8 @@
#ifndef MYON_FMDRIVER_COMMON_H_INCLUDED
#define MYON_FMDRIVER_COMMON_H_INCLUDED
+#include <stdint.h>
+
static inline uint16_t read16le(const uint8_t *ptr) {
return (unsigned)ptr[0] | (((unsigned)ptr[1])<<8);
}
@@ -13,6 +15,9 @@ static inline int16_t u16s16(uint16_t v) {
return (v & 0x8000u) ? ((int32_t)v)-0x10000l : v;
}
+uint8_t fmdriver_fm_freq2key(uint16_t freq);
+uint8_t fmdriver_ssg_freq2key(uint16_t freq);
+
#if 0
#include <stdio.h>
#define FMDRIVER_DEBUG(...) fprintf(stderr, __VA_ARGS__)