mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-02-02 13:52:55 +08:00
del: make files
This commit is contained in:
parent
b12fdce779
commit
bd37c76002
@ -107,8 +107,6 @@ void LogicSnapshot::capture_ended()
|
|||||||
|
|
||||||
// qDebug()<<"total:"<<_total_sample_count<<","<<_times;
|
// qDebug()<<"total:"<<_total_sample_count<<","<<_times;
|
||||||
|
|
||||||
//assert(_ch_fraction == 0);
|
|
||||||
//assert(_byte_fraction == 0);
|
|
||||||
uint64_t block_index = _ring_sample_count / LeafBlockSamples;
|
uint64_t block_index = _ring_sample_count / LeafBlockSamples;
|
||||||
uint64_t block_offset = (_ring_sample_count % LeafBlockSamples) / Scale;
|
uint64_t block_offset = (_ring_sample_count % LeafBlockSamples) / Scale;
|
||||||
if (block_offset != 0) {
|
if (block_offset != 0) {
|
||||||
@ -119,13 +117,18 @@ void LogicSnapshot::capture_ended()
|
|||||||
for(auto& iter:_ch_data) {
|
for(auto& iter:_ch_data) {
|
||||||
|
|
||||||
if (iter[index0].lbp[index1] == NULL){
|
if (iter[index0].lbp[index1] == NULL){
|
||||||
qDebug()<<"LogicSnapshot::capture_ended(), pointer is null";
|
iter[index0].lbp[index1] = malloc(LeafBlockSpace);
|
||||||
//assert(false);
|
if (iter[index0].lbp[index1] == NULL)
|
||||||
continue;
|
{
|
||||||
|
_memory_failed = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
memset(iter[index0].lbp[index1], 0, LeafBlockSpace);
|
||||||
}
|
}
|
||||||
|
|
||||||
const uint64_t *end_ptr = (uint64_t *)iter[index0].lbp[index1] + (LeafBlockSamples / Scale);
|
const uint64_t *end_ptr = (uint64_t *)iter[index0].lbp[index1] + (LeafBlockSamples / Scale);
|
||||||
uint64_t *ptr = (uint64_t *)iter[index0].lbp[index1] + block_offset;
|
uint64_t *ptr = (uint64_t *)iter[index0].lbp[index1] + block_offset;
|
||||||
|
|
||||||
while (ptr < end_ptr)
|
while (ptr < end_ptr)
|
||||||
*ptr++ = 0;
|
*ptr++ = 0;
|
||||||
|
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
##
|
|
||||||
## This file is part of the libsigrok project.
|
|
||||||
##
|
|
||||||
## Copyright (C) 2011 Uwe Hermann <uwe@hermann-uwe.de>
|
|
||||||
##
|
|
||||||
## This program is free software: you can redistribute it and/or modify
|
|
||||||
## it under the terms of the GNU General Public License as published by
|
|
||||||
## the Free Software Foundation, either version 3 of the License, or
|
|
||||||
## (at your option) any later version.
|
|
||||||
##
|
|
||||||
## This program is distributed in the hope that it will be useful,
|
|
||||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
## GNU General Public License for more details.
|
|
||||||
##
|
|
||||||
## You should have received a copy of the GNU General Public License
|
|
||||||
## along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
##
|
|
||||||
|
|
||||||
|
|
||||||
# Local lib, this is NOT meant to be installed!
|
|
||||||
noinst_LTLIBRARIES = libsigrok4DSL_hw_dsl.la
|
|
||||||
|
|
||||||
libsigrok4DSL_hw_dsl_la_SOURCES = \
|
|
||||||
command.c \
|
|
||||||
dsl.c \
|
|
||||||
dslogic.c \
|
|
||||||
dscope.c
|
|
||||||
|
|
||||||
libsigrok4DSL_hw_dsl_la_CFLAGS = \
|
|
||||||
-I$(top_srcdir)
|
|
||||||
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
|||||||
##
|
|
||||||
## This file is part of the libsigrok project.
|
|
||||||
##
|
|
||||||
## Copyright (C) 2011 Uwe Hermann <uwe@hermann-uwe.de>
|
|
||||||
## Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com>
|
|
||||||
##
|
|
||||||
## This program is free software: you can redistribute it and/or modify
|
|
||||||
## it under the terms of the GNU General Public License as published by
|
|
||||||
## the Free Software Foundation, either version 3 of the License, or
|
|
||||||
## (at your option) any later version.
|
|
||||||
##
|
|
||||||
## This program is distributed in the hope that it will be useful,
|
|
||||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
## GNU General Public License for more details.
|
|
||||||
##
|
|
||||||
## You should have received a copy of the GNU General Public License
|
|
||||||
## along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
##
|
|
||||||
|
|
||||||
SUBDIRS = \
|
|
||||||
demo \
|
|
||||||
common \
|
|
||||||
DSL
|
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libsigrok4DSLhardware.la
|
|
||||||
|
|
||||||
libsigrok4DSLhardware_la_SOURCES =
|
|
||||||
|
|
||||||
libsigrok4DSLhardware_la_LIBADD =
|
|
||||||
|
|
||||||
if HW_DEMO
|
|
||||||
libsigrok4DSLhardware_la_LIBADD += demo/libsigrok4DSL_hw_demo.la
|
|
||||||
endif
|
|
||||||
|
|
||||||
libsigrok4DSLhardware_la_LIBADD += common/libsigrok4DSL_hw_common.la
|
|
||||||
libsigrok4DSLhardware_la_LIBADD += DSL/libsigrok4DSL_hw_dsl.la
|
|
@ -1,33 +0,0 @@
|
|||||||
##
|
|
||||||
## This file is part of the libsigrok project.
|
|
||||||
##
|
|
||||||
## Copyright (C) 2011 Uwe Hermann <uwe@hermann-uwe.de>
|
|
||||||
##
|
|
||||||
## This program is free software: you can redistribute it and/or modify
|
|
||||||
## it under the terms of the GNU General Public License as published by
|
|
||||||
## the Free Software Foundation, either version 3 of the License, or
|
|
||||||
## (at your option) any later version.
|
|
||||||
##
|
|
||||||
## This program is distributed in the hope that it will be useful,
|
|
||||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
## GNU General Public License for more details.
|
|
||||||
##
|
|
||||||
## You should have received a copy of the GNU General Public License
|
|
||||||
## along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
##
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Local lib, this is NOT meant to be installed!
|
|
||||||
noinst_LTLIBRARIES = libsigrok4DSL_hw_common.la
|
|
||||||
|
|
||||||
libsigrok4DSL_hw_common_la_SOURCES = \
|
|
||||||
ezusb.c \
|
|
||||||
usb.c
|
|
||||||
|
|
||||||
libsigrok4DSL_hw_common_la_CFLAGS = \
|
|
||||||
-I$(top_srcdir)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
|||||||
##
|
|
||||||
## This file is part of the libsigrok project.
|
|
||||||
##
|
|
||||||
## Copyright (C) 2011 Uwe Hermann <uwe@hermann-uwe.de>
|
|
||||||
##
|
|
||||||
## This program is free software: you can redistribute it and/or modify
|
|
||||||
## it under the terms of the GNU General Public License as published by
|
|
||||||
## the Free Software Foundation, either version 3 of the License, or
|
|
||||||
## (at your option) any later version.
|
|
||||||
##
|
|
||||||
## This program is distributed in the hope that it will be useful,
|
|
||||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
## GNU General Public License for more details.
|
|
||||||
##
|
|
||||||
## You should have received a copy of the GNU General Public License
|
|
||||||
## along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
##
|
|
||||||
|
|
||||||
if HW_DEMO
|
|
||||||
|
|
||||||
# Local lib, this is NOT meant to be installed!
|
|
||||||
noinst_LTLIBRARIES = libsigrok4DSL_hw_demo.la
|
|
||||||
|
|
||||||
libsigrok4DSL_hw_demo_la_SOURCES = \
|
|
||||||
demo.c
|
|
||||||
|
|
||||||
libsigrok4DSL_hw_demo_la_CFLAGS = \
|
|
||||||
-I$(top_srcdir)
|
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
|||||||
##
|
|
||||||
## This file is part of the libsigrok project.
|
|
||||||
##
|
|
||||||
## Copyright (C) 2011 Uwe Hermann <uwe@hermann-uwe.de>
|
|
||||||
## Copyright (C) 2013 Bert Vermeulen <bert@biot.com>
|
|
||||||
##
|
|
||||||
## This program is free software: you can redistribute it and/or modify
|
|
||||||
## it under the terms of the GNU General Public License as published by
|
|
||||||
## the Free Software Foundation, either version 3 of the License, or
|
|
||||||
## (at your option) any later version.
|
|
||||||
##
|
|
||||||
## This program is distributed in the hope that it will be useful,
|
|
||||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
## GNU General Public License for more details.
|
|
||||||
##
|
|
||||||
## You should have received a copy of the GNU General Public License
|
|
||||||
## along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
##
|
|
||||||
|
|
||||||
# Local lib, this is NOT meant to be installed!
|
|
||||||
noinst_LTLIBRARIES = libsigrok4DSLinput.la
|
|
||||||
|
|
||||||
libsigrok4DSLinput_la_SOURCES = \
|
|
||||||
in_binary.c \
|
|
||||||
in_vcd.c \
|
|
||||||
in_wav.c \
|
|
||||||
input.c
|
|
||||||
|
|
||||||
libsigrok4DSLinput_la_CFLAGS = \
|
|
||||||
-I$(top_srcdir)
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
|||||||
##
|
|
||||||
## This file is part of the libsigrok project.
|
|
||||||
##
|
|
||||||
## Copyright (C) 2011 Uwe Hermann <uwe@hermann-uwe.de>
|
|
||||||
##
|
|
||||||
## This program is free software: you can redistribute it and/or modify
|
|
||||||
## it under the terms of the GNU General Public License as published by
|
|
||||||
## the Free Software Foundation, either version 3 of the License, or
|
|
||||||
## (at your option) any later version.
|
|
||||||
##
|
|
||||||
## This program is distributed in the hope that it will be useful,
|
|
||||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
## GNU General Public License for more details.
|
|
||||||
##
|
|
||||||
## You should have received a copy of the GNU General Public License
|
|
||||||
## along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
##
|
|
||||||
|
|
||||||
# Local lib, this is NOT meant to be installed!
|
|
||||||
noinst_LTLIBRARIES = libsigrok4DSLoutput.la
|
|
||||||
|
|
||||||
libsigrok4DSLoutput_la_SOURCES = \
|
|
||||||
output.c \
|
|
||||||
csv.c \
|
|
||||||
vcd.c \
|
|
||||||
gnuplot.c \
|
|
||||||
srzip.c
|
|
||||||
|
|
||||||
libsigrok4DSLoutput_la_CFLAGS = \
|
|
||||||
-I$(top_srcdir)
|
|
||||||
|
|
||||||
#libsigrok4DSLogicoutput_la_LIBADD = \
|
|
||||||
# text/libsigrok4DSLogicoutputtext.la
|
|
||||||
|
|
@ -1,70 +0,0 @@
|
|||||||
/*
|
|
||||||
* This file is part of the libsigrokdecode project.
|
|
||||||
*
|
|
||||||
* Copyright (C) 2010 Uwe Hermann <uwe@hermann-uwe.de>
|
|
||||||
* Copyright (C) 2012 Bert Vermeulen <bert@biot.com>
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef LIBSIGROKDECODE_VERSION_H
|
|
||||||
#define LIBSIGROKDECODE_VERSION_H
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @file
|
|
||||||
*
|
|
||||||
* Version number definitions and macros.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @ingroup grp_versions
|
|
||||||
*
|
|
||||||
* @{
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Package version macros (can be used for conditional compilation).
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** The libsigrokdecode package 'major' version number. */
|
|
||||||
#undef SRD_PACKAGE_VERSION_MAJOR
|
|
||||||
|
|
||||||
/** The libsigrokdecode package 'minor' version number. */
|
|
||||||
#undef SRD_PACKAGE_VERSION_MINOR
|
|
||||||
|
|
||||||
/** The libsigrokdecode package 'micro' version number. */
|
|
||||||
#undef SRD_PACKAGE_VERSION_MICRO
|
|
||||||
|
|
||||||
/** The libsigrokdecode package version ("major.minor.micro") as string. */
|
|
||||||
#undef SRD_PACKAGE_VERSION_STRING
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Library/libtool version macros (can be used for conditional compilation).
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** The libsigrokdecode libtool 'current' version number. */
|
|
||||||
#undef SRD_LIB_VERSION_CURRENT
|
|
||||||
|
|
||||||
/** The libsigrokdecode libtool 'revision' version number. */
|
|
||||||
#undef SRD_LIB_VERSION_REVISION
|
|
||||||
|
|
||||||
/** The libsigrokdecode libtool 'age' version number. */
|
|
||||||
#undef SRD_LIB_VERSION_AGE
|
|
||||||
|
|
||||||
/** The libsigrokdecode libtool version ("current:revision:age") as string. */
|
|
||||||
#undef SRD_LIB_VERSION_STRING
|
|
||||||
|
|
||||||
/** @} */
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
x
Reference in New Issue
Block a user