removed no more needed files in software repo
Przed Szerokość: | Wysokość: | Rozmiar: 1.8 MiB Po Szerokość: | Wysokość: | Rozmiar: 268 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 951 KiB Po Szerokość: | Wysokość: | Rozmiar: 323 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 380 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 593 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 801 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 79 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 72 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 4.4 MiB |
Przed Szerokość: | Wysokość: | Rozmiar: 2.7 MiB |
Przed Szerokość: | Wysokość: | Rozmiar: 1.2 MiB |
|
@ -0,0 +1,56 @@
|
|||
# Prerequisites
|
||||
*.d
|
||||
|
||||
# Object files
|
||||
*.o
|
||||
*.ko
|
||||
*.obj
|
||||
*.elf
|
||||
|
||||
# Linker output
|
||||
*.ilk
|
||||
*.map
|
||||
*.exp
|
||||
|
||||
# Precompiled Headers
|
||||
*.gch
|
||||
*.pch
|
||||
|
||||
# Libraries
|
||||
*.lib
|
||||
*.a
|
||||
*.la
|
||||
*.lo
|
||||
|
||||
# Shared objects (inc. Windows DLLs)
|
||||
*.dll
|
||||
*.so
|
||||
*.so.*
|
||||
*.dylib
|
||||
|
||||
# Executables
|
||||
*.exe
|
||||
*.out
|
||||
*.app
|
||||
*.i*86
|
||||
*.x86_64
|
||||
*.hex
|
||||
|
||||
# Debug files
|
||||
*.dSYM/
|
||||
*.su
|
||||
*.idb
|
||||
*.pdb
|
||||
|
||||
# Kernel Module Compile Results
|
||||
*.mod*
|
||||
*.cmd
|
||||
.tmp_versions/
|
||||
modules.order
|
||||
Module.symvers
|
||||
Mkfile.old
|
||||
dkms.conf
|
||||
|
||||
# build directories
|
||||
installations
|
||||
build
|
|
@ -0,0 +1,62 @@
|
|||
# Prerequisites
|
||||
*.d
|
||||
|
||||
# Object files
|
||||
*.o
|
||||
*.ko
|
||||
*.obj
|
||||
*.elf
|
||||
|
||||
# Linker output
|
||||
*.ilk
|
||||
*.map
|
||||
*.exp
|
||||
|
||||
# Precompiled Headers
|
||||
*.gch
|
||||
*.pch
|
||||
|
||||
# Libraries
|
||||
*.lib
|
||||
*.a
|
||||
*.la
|
||||
*.lo
|
||||
|
||||
# Shared objects (inc. Windows DLLs)
|
||||
*.dll
|
||||
*.so
|
||||
*.so.*
|
||||
*.dylib
|
||||
|
||||
# Executables
|
||||
*.exe
|
||||
*.out
|
||||
*.app
|
||||
*.i*86
|
||||
*.x86_64
|
||||
*.hex
|
||||
|
||||
# Debug files
|
||||
*.dSYM/
|
||||
*.su
|
||||
*.idb
|
||||
*.pdb
|
||||
|
||||
# Kernel Module Compile Results
|
||||
*.mod*
|
||||
*.cmd
|
||||
.tmp_versions/
|
||||
modules.order
|
||||
Module.symvers
|
||||
Mkfile.old
|
||||
dkms.conf
|
||||
|
||||
# build directories
|
||||
installations
|
||||
build
|
||||
h-files
|
||||
*.asc
|
||||
*.bin
|
||||
*.blif
|
||||
*.json
|
||||
*.nix
|
|
@ -0,0 +1,56 @@
|
|||
# Prerequisites
|
||||
*.d
|
||||
|
||||
# Object files
|
||||
*.o
|
||||
*.ko
|
||||
*.obj
|
||||
*.elf
|
||||
|
||||
# Linker output
|
||||
*.ilk
|
||||
*.map
|
||||
*.exp
|
||||
|
||||
# Precompiled Headers
|
||||
*.gch
|
||||
*.pch
|
||||
|
||||
# Libraries
|
||||
*.lib
|
||||
*.a
|
||||
*.la
|
||||
*.lo
|
||||
|
||||
# Shared objects (inc. Windows DLLs)
|
||||
*.dll
|
||||
*.so
|
||||
*.so.*
|
||||
*.dylib
|
||||
|
||||
# Executables
|
||||
*.exe
|
||||
*.out
|
||||
*.app
|
||||
*.i*86
|
||||
*.x86_64
|
||||
*.hex
|
||||
|
||||
# Debug files
|
||||
*.dSYM/
|
||||
*.su
|
||||
*.idb
|
||||
*.pdb
|
||||
|
||||
# Kernel Module Compile Results
|
||||
*.mod*
|
||||
*.cmd
|
||||
.tmp_versions/
|
||||
modules.order
|
||||
Module.symvers
|
||||
Mkfile.old
|
||||
dkms.conf
|
||||
|
||||
# build directories
|
||||
installations
|
||||
build
|
3286
firmware/output.txt
|
@ -1,20 +0,0 @@
|
|||
#
|
||||
# Set CROSS_PREFIX to prepend to all compiler tools at once for easier
|
||||
# cross-compilation.
|
||||
CROSS_PREFIX =
|
||||
CC = $(CROSS_PREFIX)gcc
|
||||
AR = $(CROSS_PREFIX)ar
|
||||
RANLIB = $(CROSS_PREFIX)ranlib
|
||||
SIZE = $(CROSS_PREFIX)size
|
||||
STRIP = $(CROSS_PREFIX)strip
|
||||
SHLIB = $(CC) -shared
|
||||
STRIPLIB = $(STRIP) --strip-unneeded
|
||||
|
||||
CFLAGS += -O3 -Wall -pthread
|
||||
|
||||
LIB = libpigpio.a
|
||||
|
||||
lib: pigpio.c pigpio.h
|
||||
$(CC) $(CFLAGS) -fpic -c pigpio.c command.c
|
||||
$(AR) rcs libpigpio.a pigpio.o command.c
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
# PIGPIO Modifications
|
||||
This code is a derivative of a project by @joan2937 (https://github.com/joan2937/pigpio). The makefile was modified to produce a single static library (.a) file and to be statically linked into the libcariboulite static library.
|
||||
Some redundant source files and the original Makefile have been deleted from the directory.
|
||||
The license part of the project (specifically the contents of this specific directory) are as specified in the following link (https://github.com/joan2937/pigpio/blob/master/UNLICENCE).
|
|
@ -1,124 +0,0 @@
|
|||
/*
|
||||
This is free and unencumbered software released into the public domain.
|
||||
|
||||
Anyone is free to copy, modify, publish, use, compile, sell, or
|
||||
distribute this software, either in source code form or as a compiled
|
||||
binary, for any purpose, commercial or non-commercial, and by any
|
||||
means.
|
||||
|
||||
In jurisdictions that recognize copyright laws, the author or authors
|
||||
of this software dedicate any and all copyright interest in the
|
||||
software to the public domain. We make this dedication for the benefit
|
||||
of the public at large and to the detriment of our heirs and
|
||||
successors. We intend this dedication to be an overt act of
|
||||
relinquishment in perpetuity of all present and future rights to this
|
||||
software under copyright law.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
For more information, please refer to <http://unlicense.org/>
|
||||
*/
|
||||
|
||||
/*
|
||||
This version is for pigpio version 70+
|
||||
*/
|
||||
|
||||
#ifndef COMMAND_H
|
||||
#define COMMAND_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "pigpio.h"
|
||||
|
||||
#define CMD_MAX_PARAM 512
|
||||
#define CMD_MAX_EXTENSION (1<<16)
|
||||
|
||||
#define CMD_UNKNOWN_CMD -1
|
||||
#define CMD_BAD_PARAMETER -2
|
||||
#define CMD_EXT_TOO_SMALL -3
|
||||
#define CMD_NOT_IN_SCRIPT -4
|
||||
|
||||
#define CMD_P_ARR 10
|
||||
#define CMD_V_ARR 10
|
||||
|
||||
#define CMD_NUMERIC 1
|
||||
#define CMD_VAR 2
|
||||
#define CMD_PAR 3
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint32_t cmd;
|
||||
uint32_t p1;
|
||||
uint32_t p2;
|
||||
union
|
||||
{
|
||||
uint32_t p3;
|
||||
uint32_t ext_len;
|
||||
uint32_t res;
|
||||
};
|
||||
} cmdCmd_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int eaten;
|
||||
int8_t opt[4];
|
||||
} cmdCtlParse_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int cmd; /* command number */
|
||||
char *name; /* command name */
|
||||
int vt; /* command verification type */
|
||||
int rv; /* command return value type */
|
||||
int cvis; /* command valid in a script */
|
||||
} cmdInfo_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint32_t tag;
|
||||
int step;
|
||||
} cmdTagStep_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uintptr_t p[5]; //these are sometimes converted to pointers, so presumably they sometimes have pointers stored in them, I haven't figured out where though. --plugwash
|
||||
int8_t opt[4];
|
||||
} cmdInstr_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
/*
|
||||
+-----------+---------+---------+----------------+
|
||||
| PARAMS... | VARS... | CMDS... | STRING AREA... |
|
||||
+-----------+---------+---------+----------------+
|
||||
*/
|
||||
int *par;
|
||||
int *var;
|
||||
cmdInstr_t *instr;
|
||||
int instrs;
|
||||
char *str_area;
|
||||
int str_area_len;
|
||||
int str_area_pos;
|
||||
} cmdScript_t;
|
||||
|
||||
extern cmdInfo_t cmdInfo[];
|
||||
|
||||
extern char *cmdUsage;
|
||||
|
||||
int cmdParse(char *buf, uintptr_t *p, unsigned ext_len, char *ext, cmdCtlParse_t *ctl);
|
||||
|
||||
int cmdParseScript(char *script, cmdScript_t *s, int diags);
|
||||
|
||||
char *cmdErrStr(int error);
|
||||
|
||||
char *cmdStr(void);
|
||||
|
||||
#endif
|
||||
|
|
@ -1,54 +0,0 @@
|
|||
/*
|
||||
This version is for pigpio version 26+
|
||||
|
||||
If you want customised functions replace this file with your own
|
||||
definitions for gpioCustom1 and gpioCustom2.
|
||||
*/
|
||||
|
||||
#include "pigpio.h"
|
||||
|
||||
int gpioCustom1(unsigned arg1, unsigned arg2, char *argx, unsigned count)
|
||||
{
|
||||
int i;
|
||||
unsigned max;
|
||||
|
||||
DBG(DBG_USER, "arg1=%d arg2=%d count=%d [%s]",
|
||||
arg1, arg2, count, myBuf2Str(count, argx));
|
||||
|
||||
CHECK_INITED;
|
||||
|
||||
/* for dummy just return max parameter */
|
||||
|
||||
if (arg1 > arg2) max = arg1; else max = arg2;
|
||||
|
||||
for (i=0; i<count; i++) if (argx[i] > max) max = argx[i];
|
||||
|
||||
return max;
|
||||
}
|
||||
|
||||
|
||||
int gpioCustom2(unsigned arg1, char *argx, unsigned count,
|
||||
char *retBuf, unsigned retMax)
|
||||
{
|
||||
int i, j, t;
|
||||
|
||||
DBG(DBG_USER, "arg1=%d count=%d [%s] retMax=%d",
|
||||
arg1, count, myBuf2Str(count, argx), retMax);
|
||||
|
||||
CHECK_INITED;
|
||||
|
||||
/* for dummy just return argx reversed */
|
||||
|
||||
if (count > retMax) count = retMax;
|
||||
|
||||
for (i=0, j=count-1; i<=j; i++, j--)
|
||||
{
|
||||
/* t used as argx and retBuf may be the same buffer */
|
||||
t = argx[i];
|
||||
retBuf[i] = argx[j];
|
||||
retBuf[j] = t;
|
||||
}
|
||||
|
||||
return count;
|
||||
}
|
||||
|