xiaoxiang781216 commented on code in PR #1624:
URL: https://github.com/apache/nuttx-apps/pull/1624#discussion_r1126069412


##########
sdr/liquid_dsp/Makefile:
##########
@@ -0,0 +1,247 @@
+###########################################################################
+# apps/sdr/liquid_dsp/Makefile
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.  The
+# ASF licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the
+# License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations
+# under the License.
+#
+############################################################################/
+
+include $(APPDIR)/Make.defs
+
+LIQUID_DSP_VERSION  = 1.4.0
+LIQUID_DSP_UNPACK   = liquid-dsp
+LIQUID_DSP_TARBALL  = v$(LIQUID_DSP_VERSION).tar.gz
+LIQUID_DSP_URL_BASE = https://github.com/jgaeddert/liquid-dsp/archive
+LIQUID_DSP_URL      = $(LIQUID_DSP_URL_BASE)/$(LIQUID_DSP_TARBALL)
+
+$(LIQUID_DSP_TARBALL):
+       $(Q) echo "Downloading $(LIQUID_DSP_TARBALL)"
+       $(Q) curl -O -L $(LIQUID_DSP_URL)
+
+$(LIQUID_DSP_UNPACK): $(LIQUID_DSP_TARBALL)
+       $(Q) echo "Unpacking $(LIQUID_DSP_TARBALL) to $(LIQUID_DSP_UNPACK)"
+       $(Q) tar xzvf $(LIQUID_DSP_TARBALL)
+       $(Q) mv liquid-dsp-$(LIQUID_DSP_VERSION) $(LIQUID_DSP_UNPACK)
+       $(Q) cp config.h $(LIQUID_DSP_UNPACK)/include
+
+$(LIQUID_DSP_UNPACK)/.patch: $(LIQUID_DSP_UNPACK)
+       $(Q) touch $(LIQUID_DSP_UNPACK)/.patch
+
+VPATH += $(LIBUV_UNPACK)/include
+
+DEPPATH += --dep-path $(LIBUV_UNPACK)/include
+
+CFLAGS += -I$(LIQUID_DSP_UNPACK)/include
+CFLAGS += -Wall -std=c99
+CFLAGS += -DM_SQRT1_2=0.7071067811865475244008443621048490
+CFLAGS += -DM_SQRT2=1.4142135623730950488016887242096981
+CFLAGS += -DM_PI=3.1415926535897932384626433832795029
+CFLAGS += -DM_LN2=0.6931471805599453094172321214581765
+CFLAGS += -DM_PI_2=1.5707963267948966192313216916397514
+CFLAGS += -DM_2_PI=0.6366197723675813430755350534900574

Review Comment:
   > > Do you have a workable LuaJIT? it's very great if you can upstream the 
porting.
   > 
   > Yes, I have a working version, but not without some changes in NuttX. I 
still need to fix that first. One of problems is a new UNUSED macro in NuttX, 
which is giving me problems with LuaJIT code. The old version of UNUSED macro 
was fine, but then someone changed it.
   
   Sorry, it's changed by me, let's see how to make it work with LuaJIT.
   
   > I am planning to release LuaJIT support when EdgePro1 campaign will start.
   
   When does the campaign start?
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to