Various #include file cosmetic fixes.
Generally include system headers before local headers, unless there's a technical reason to use another order.
This commit is contained in:
parent
98fec29ecb
commit
515ab0889e
|
@ -18,13 +18,13 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include "libsigrok.h"
|
|
||||||
#include "libsigrok-internal.h"
|
|
||||||
#include "agilent-dmm.h"
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include "libsigrok.h"
|
||||||
|
#include "libsigrok-internal.h"
|
||||||
|
#include "agilent-dmm.h"
|
||||||
|
|
||||||
static void dispatch(const struct sr_dev_inst *sdi)
|
static void dispatch(const struct sr_dev_inst *sdi)
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,15 +17,15 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libsigrok.h"
|
|
||||||
#include "libsigrok-internal.h"
|
|
||||||
#include "gpio.h"
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "libsigrok.h"
|
||||||
|
#include "libsigrok-internal.h"
|
||||||
|
#include "gpio.h"
|
||||||
|
|
||||||
#define LOG_PREFIX "gpio"
|
#define LOG_PREFIX "gpio"
|
||||||
|
|
||||||
|
|
|
@ -21,14 +21,11 @@
|
||||||
#define BEAGLELOGIC_H_
|
#define BEAGLELOGIC_H_
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/errno.h>
|
#include <sys/errno.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
/* BeagleLogic device node name */
|
/* BeagleLogic device node name */
|
||||||
|
|
|
@ -17,11 +17,11 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "protocol.h"
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include "protocol.h"
|
||||||
|
|
||||||
/* Define data packet size independent of packet (bufunitsize bytes) size
|
/* Define data packet size independent of packet (bufunitsize bytes) size
|
||||||
* from the BeagleLogic kernel module */
|
* from the BeagleLogic kernel module */
|
||||||
|
|
|
@ -18,14 +18,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include "libsigrok.h"
|
|
||||||
#include "libsigrok-internal.h"
|
|
||||||
#include "protocol.h"
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "libsigrok.h"
|
||||||
|
#include "libsigrok-internal.h"
|
||||||
|
#include "protocol.h"
|
||||||
|
|
||||||
/* The Colead SL-5868P uses this. */
|
/* The Colead SL-5868P uses this. */
|
||||||
#define SERIALCOMM "2400/8n1"
|
#define SERIALCOMM "2400/8n1"
|
||||||
|
|
|
@ -19,11 +19,11 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <string.h>
|
||||||
#include "libsigrok.h"
|
#include "libsigrok.h"
|
||||||
#include "libsigrok-internal.h"
|
#include "libsigrok-internal.h"
|
||||||
#include "protocol.h"
|
#include "protocol.h"
|
||||||
#include <errno.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
static void process_packet(const struct sr_dev_inst *sdi)
|
static void process_packet(const struct sr_dev_inst *sdi)
|
||||||
{
|
{
|
||||||
|
|
|
@ -19,12 +19,12 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libsigrok.h"
|
|
||||||
#include "libsigrok-internal.h"
|
|
||||||
#include "dso.h"
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <libusb.h>
|
#include <libusb.h>
|
||||||
|
#include "libsigrok.h"
|
||||||
|
#include "libsigrok-internal.h"
|
||||||
|
#include "dso.h"
|
||||||
|
|
||||||
extern struct sr_dev_driver hantek_dso_driver_info;
|
extern struct sr_dev_driver hantek_dso_driver_info;
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,6 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "protocol.h"
|
#include "protocol.h"
|
||||||
|
|
||||||
/* Forward declarations */
|
/* Forward declarations */
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "protocol.h"
|
#include "protocol.h"
|
||||||
|
|
||||||
/** Send data packets for current measurements. */
|
/** Send data packets for current measurements. */
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef LIBSIGROK_HARDWARE_MOTECH_LPS_30X_PROTOCOL_H
|
#ifndef LIBSIGROK_HARDWARE_MOTECH_LPS_30X_PROTOCOL_H
|
||||||
#define LIBSIGROK_HARDWARE_MOTECH_LPS_30X_PROTOCOL_H
|
#define LIBSIGROK_HARDWARE_MOTECH_LPS_30X_PROTOCOL_H
|
||||||
|
|
||||||
|
@ -32,7 +31,6 @@
|
||||||
#include "libsigrok.h"
|
#include "libsigrok.h"
|
||||||
#include "libsigrok-internal.h"
|
#include "libsigrok-internal.h"
|
||||||
|
|
||||||
|
|
||||||
SR_PRIV int lps_process_status(struct sr_dev_inst* sdi, int stat);
|
SR_PRIV int lps_process_status(struct sr_dev_inst* sdi, int stat);
|
||||||
SR_PRIV int lps_send_req(struct sr_serial_dev_inst *serial, const char* fmt, ...);
|
SR_PRIV int lps_send_req(struct sr_serial_dev_inst *serial, const char* fmt, ...);
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "protocol.h"
|
|
||||||
#include <libserialport.h>
|
#include <libserialport.h>
|
||||||
|
#include "protocol.h"
|
||||||
|
|
||||||
#define SERIALCOMM "115200/8n1"
|
#define SERIALCOMM "115200/8n1"
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "protocol.h"
|
|
||||||
#include <libserialport.h>
|
#include <libserialport.h>
|
||||||
|
#include "protocol.h"
|
||||||
|
|
||||||
extern SR_PRIV struct sr_dev_driver ols_driver_info;
|
extern SR_PRIV struct sr_dev_driver ols_driver_info;
|
||||||
|
|
||||||
|
|
|
@ -20,11 +20,6 @@
|
||||||
#ifndef LIBSIGROK_HARDWARE_PIPISTRELLO_OLS_PROTOCOL_H
|
#ifndef LIBSIGROK_HARDWARE_PIPISTRELLO_OLS_PROTOCOL_H
|
||||||
#define LIBSIGROK_HARDWARE_PIPISTRELLO_OLS_PROTOCOL_H
|
#define LIBSIGROK_HARDWARE_PIPISTRELLO_OLS_PROTOCOL_H
|
||||||
|
|
||||||
#define USB_VENDOR_ID 0x0403
|
|
||||||
#define USB_DEVICE_ID 0x6010
|
|
||||||
#define USB_VENDOR_NAME "Saanlima"
|
|
||||||
#define USB_IPRODUCT "Pipistrello LX45"
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
@ -34,6 +29,11 @@
|
||||||
|
|
||||||
#define LOG_PREFIX "p-ols"
|
#define LOG_PREFIX "p-ols"
|
||||||
|
|
||||||
|
#define USB_VENDOR_ID 0x0403
|
||||||
|
#define USB_DEVICE_ID 0x6010
|
||||||
|
#define USB_VENDOR_NAME "Saanlima"
|
||||||
|
#define USB_IPRODUCT "Pipistrello LX45"
|
||||||
|
|
||||||
#define FTDI_BUF_SIZE (16 * 1024)
|
#define FTDI_BUF_SIZE (16 * 1024)
|
||||||
|
|
||||||
#define NUM_CHANNELS 32
|
#define NUM_CHANNELS 32
|
||||||
|
|
|
@ -19,8 +19,6 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "protocol.h"
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
@ -30,6 +28,7 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "libsigrok.h"
|
#include "libsigrok.h"
|
||||||
#include "libsigrok-internal.h"
|
#include "libsigrok-internal.h"
|
||||||
|
#include "protocol.h"
|
||||||
|
|
||||||
#define FPGA_FIRMWARE_18 FIRMWARE_DIR"/saleae-logic16-fpga-18.bitstream"
|
#define FPGA_FIRMWARE_18 FIRMWARE_DIR"/saleae-logic16-fpga-18.bitstream"
|
||||||
#define FPGA_FIRMWARE_33 FIRMWARE_DIR"/saleae-logic16-fpga-33.bitstream"
|
#define FPGA_FIRMWARE_33 FIRMWARE_DIR"/saleae-logic16-fpga-33.bitstream"
|
||||||
|
|
|
@ -17,13 +17,13 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "protocol.h"
|
|
||||||
#include "libsigrok.h"
|
|
||||||
#include "libsigrok-internal.h"
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <libusb.h>
|
#include <libusb.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "libsigrok.h"
|
||||||
|
#include "libsigrok-internal.h"
|
||||||
|
#include "protocol.h"
|
||||||
|
|
||||||
static const uint32_t scanopts[] = {
|
static const uint32_t scanopts[] = {
|
||||||
SR_CONF_CONN,
|
SR_CONF_CONN,
|
||||||
|
|
|
@ -17,11 +17,12 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "lwla.h"
|
|
||||||
#include "protocol.h"
|
|
||||||
#include "libsigrok-internal.h"
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
|
#include "libsigrok.h"
|
||||||
|
#include "libsigrok-internal.h"
|
||||||
|
#include "protocol.h"
|
||||||
|
#include "lwla.h"
|
||||||
|
|
||||||
#define BITSTREAM_MAX_SIZE (256 * 1024) /* bitstream size limit for safety */
|
#define BITSTREAM_MAX_SIZE (256 * 1024) /* bitstream size limit for safety */
|
||||||
#define BITSTREAM_HEADER_SIZE 4 /* transfer header size in bytes */
|
#define BITSTREAM_HEADER_SIZE 4 /* transfer header size in bytes */
|
||||||
|
|
|
@ -20,10 +20,10 @@
|
||||||
#ifndef LIBSIGROK_HARDWARE_SYSCLK_LWLA_LWLA_H
|
#ifndef LIBSIGROK_HARDWARE_SYSCLK_LWLA_LWLA_H
|
||||||
#define LIBSIGROK_HARDWARE_SYSCLK_LWLA_LWLA_H
|
#define LIBSIGROK_HARDWARE_SYSCLK_LWLA_LWLA_H
|
||||||
|
|
||||||
#include "libsigrok.h"
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <libusb.h>
|
#include <libusb.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
#include "libsigrok.h"
|
||||||
|
|
||||||
struct sr_usb_dev_inst;
|
struct sr_usb_dev_inst;
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "protocol.h"
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "protocol.h"
|
||||||
|
|
||||||
/* Bit mask for the RLE repeat-count-follows flag. */
|
/* Bit mask for the RLE repeat-count-follows flag. */
|
||||||
#define RLE_FLAG_LEN_FOLLOWS ((uint64_t)1 << 35)
|
#define RLE_FLAG_LEN_FOLLOWS ((uint64_t)1 << 35)
|
||||||
|
|
|
@ -22,11 +22,11 @@
|
||||||
|
|
||||||
#define LOG_PREFIX "sysclk-lwla"
|
#define LOG_PREFIX "sysclk-lwla"
|
||||||
|
|
||||||
#include "lwla.h"
|
|
||||||
#include "libsigrok.h"
|
|
||||||
#include "libsigrok-internal.h"
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
#include "libsigrok.h"
|
||||||
|
#include "libsigrok-internal.h"
|
||||||
|
#include "lwla.h"
|
||||||
|
|
||||||
/* For now, only the LWLA1034 is supported.
|
/* For now, only the LWLA1034 is supported.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -17,9 +17,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "protocol.h"
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "protocol.h"
|
||||||
|
|
||||||
static const uint32_t devopts[] = {
|
static const uint32_t devopts[] = {
|
||||||
SR_CONF_THERMOMETER,
|
SR_CONF_THERMOMETER,
|
||||||
|
|
|
@ -17,10 +17,9 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "protocol.h"
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include "protocol.h"
|
||||||
|
|
||||||
extern struct sr_dev_driver uni_t_ut32x_driver_info;
|
extern struct sr_dev_driver uni_t_ut32x_driver_info;
|
||||||
|
|
||||||
|
|
|
@ -17,11 +17,10 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libsigrok.h"
|
|
||||||
#include "libsigrok-internal.h"
|
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "libsigrok.h"
|
||||||
|
#include "libsigrok-internal.h"
|
||||||
|
|
||||||
#define LOG_PREFIX "scpi"
|
#define LOG_PREFIX "scpi"
|
||||||
|
|
||||||
|
|
|
@ -17,11 +17,10 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libsigrok.h"
|
|
||||||
#include "libsigrok-internal.h"
|
|
||||||
|
|
||||||
#include <gpib/ib.h>
|
#include <gpib/ib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "libsigrok.h"
|
||||||
|
#include "libsigrok-internal.h"
|
||||||
|
|
||||||
#define LOG_PREFIX "scpi_gpib"
|
#define LOG_PREFIX "scpi_gpib"
|
||||||
|
|
||||||
|
|
|
@ -18,12 +18,11 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libsigrok.h"
|
|
||||||
#include "libsigrok-internal.h"
|
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "libsigrok.h"
|
||||||
|
#include "libsigrok-internal.h"
|
||||||
|
|
||||||
#define LOG_PREFIX "scpi_serial"
|
#define LOG_PREFIX "scpi_serial"
|
||||||
|
|
||||||
|
|
|
@ -22,10 +22,6 @@
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "libsigrok.h"
|
|
||||||
#include "libsigrok-internal.h"
|
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -36,6 +32,8 @@
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#endif
|
#endif
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include "libsigrok.h"
|
||||||
|
#include "libsigrok-internal.h"
|
||||||
|
|
||||||
#define LOG_PREFIX "scpi_tcp"
|
#define LOG_PREFIX "scpi_tcp"
|
||||||
|
|
||||||
|
|
|
@ -17,11 +17,10 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libsigrok.h"
|
|
||||||
#include "libsigrok-internal.h"
|
|
||||||
|
|
||||||
#include <visa.h>
|
#include <visa.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "libsigrok.h"
|
||||||
|
#include "libsigrok-internal.h"
|
||||||
|
|
||||||
#define LOG_PREFIX "scpi_visa"
|
#define LOG_PREFIX "scpi_visa"
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
|
|
||||||
#include <rpc/rpc.h>
|
#include <rpc/rpc.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "vxi.h"
|
#include "vxi.h"
|
||||||
#include "libsigrok.h"
|
#include "libsigrok.h"
|
||||||
#include "libsigrok-internal.h"
|
#include "libsigrok-internal.h"
|
||||||
|
|
Loading…
Reference in New Issue