summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2016-05-08 16:02:01 +0100
committerFreeArtMan <dos21h@gmail.com>2016-05-08 16:02:01 +0100
commite42911405c4bc2f8c097f47d4598baf8522ef3da (patch)
tree9eb767c5e6a4443e8773b18ea76cf4216f6c8758 /core
parent9b95088bddcf1f83e3a8f73f08f49b38ecb0f500 (diff)
downloadradiola-master.tar.gz
radiola-master.zip
Moved source to src directoryHEADmaster
Diffstat (limited to 'core')
-rw-r--r--core/Kconfig28
-rw-r--r--core/make.mk11
-rw-r--r--core/math.c48
-rw-r--r--core/math.h16
4 files changed, 0 insertions, 103 deletions
diff --git a/core/Kconfig b/core/Kconfig
deleted file mode 100644
index 28befc6..0000000
--- a/core/Kconfig
+++ /dev/null
@@ -1,28 +0,0 @@
-menuconfig CORE
- bool "Set core features"
- default y
-
-if CORE
- choice
- prompt "OS support"
- help
- OS support configuration. Not all OS'es support all stuff
-
- config OS_LINUX
- bool "Linux"
- default y
-
- config OS_NETBSD
- bool "NetBSD"
- default n
-
- endchoice
-
- config FUTURE
- bool "Future features that planned to be added"
- default n
-
-endif
-
-
-
diff --git a/core/make.mk b/core/make.mk
deleted file mode 100644
index a1fe655..0000000
--- a/core/make.mk
+++ /dev/null
@@ -1,11 +0,0 @@
-DIR_CORE = core/
-SOURCES_CORE += core/math.c
-OBJECTS_CORE += $(SOURCES_CORE:.c=.o)
-LDFLAGS += -lm
-LDFLAGS_BSD += -lm
-
-
-OBJECTS_DIR_CORE += $(subst $(DIR_CORE),$(BUILD_DIR)$(DIR_CORE),$(OBJECTS_CORE))
-
-OBJECTS += $(OBJECTS_CORE)
-OBJECTS_FINAL += $(OBJECTS_DIR_CORE) \ No newline at end of file
diff --git a/core/math.c b/core/math.c
deleted file mode 100644
index f962534..0000000
--- a/core/math.c
+++ /dev/null
@@ -1,48 +0,0 @@
-#include "math.h"
-
-
-float to_float(uint8_t x)
-{
- return (1.0f/127.0f)*(((float)x)-127.0f);
-}
-
-
-//float ph_ch( uint8_t i1, uint8_t q1, uint8_t i2, uint8_t q2)
-float ph_ch( uint8_t i1, uint8_t q1 )
-{
- static float complex last=0.0+0.0i;
- float out;
- float complex xy,c1;
- //float c2;
-
- c1 = to_float(i1) + I*to_float(q1);
- //c1 = CMPLXF( to_float(i1), to_float(q1) );
- //c2 = to_float(i2) + I*to_float(q2);
- //c2 = CMPLXF( to_float(i2), to_float(q2) );
- xy = conjf(last)*c1;
- out = cargf( xy );
- last = c1;
-
- return out;
-}
-
-void rotate_90(uint8_t *buf, uint32_t len)
-/* 90 rotation is 1+0j, 0+1j, -1+0j, 0-1j
- or [0, 1, -3, 2, -4, -5, 7, -6] */
-{
- uint32_t i;
- uint8_t tmp;
- for (i=0; i<len; i+=8) {
- /* uint8_t negation = 255 - x */
- tmp = 255 - buf[i+3];
- buf[i+3] = buf[i+2];
- buf[i+2] = tmp;
-
- buf[i+4] = 255 - buf[i+4];
- buf[i+5] = 255 - buf[i+5];
-
- tmp = 255 - buf[i+6];
- buf[i+6] = buf[i+7];
- buf[i+7] = tmp;
- }
-} \ No newline at end of file
diff --git a/core/math.h b/core/math.h
deleted file mode 100644
index dff1ffa..0000000
--- a/core/math.h
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef __RADIOLA_MATH
-#define __RADIOLA_MATH
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <complex.h>
-#include <math.h>
-
-float to_float(uint8_t x);
-
-float ph_ch( uint8_t i1, uint8_t q1 );
-
-void rotate_90(uint8_t *buf, uint32_t len);
-
-#endif \ No newline at end of file