Skip to content

Commit

Permalink
Initial Import Release 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
d00616 committed Apr 25, 2014
1 parent f23962e commit dd9aa99
Show file tree
Hide file tree
Showing 505 changed files with 13,462 additions and 20 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,12 @@
*.i*86
*.x86_64
*.hex

#SDCC
*.asm
*.rel
*.lst
*.sym

#joe
*~
38 changes: 18 additions & 20 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
GNU LESSER GENERAL PUBLIC LICENSE
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999

Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

(This is the first released version of the Lesser GPL. It also counts
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.)
the version number 2.1.]

Preamble

Expand Down Expand Up @@ -55,7 +55,7 @@ modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.

Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
Expand Down Expand Up @@ -111,7 +111,7 @@ modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.

GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

Expand Down Expand Up @@ -158,7 +158,7 @@ Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.

2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
Expand Down Expand Up @@ -216,7 +216,7 @@ instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.

Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
Expand Down Expand Up @@ -267,7 +267,7 @@ Library will still fall under Section 6.)
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.

6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
Expand Down Expand Up @@ -329,7 +329,7 @@ restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.

7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
Expand Down Expand Up @@ -370,7 +370,7 @@ subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.

11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
Expand Down Expand Up @@ -422,7 +422,7 @@ conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.

14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
Expand Down Expand Up @@ -456,7 +456,7 @@ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.

END OF TERMS AND CONDITIONS

How to Apply These Terms to Your New Libraries

If you develop a new library, and you want it to be of the greatest
Expand All @@ -470,8 +470,8 @@ safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.

{description}
Copyright (C) {year} {fullname}
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Expand All @@ -485,8 +485,7 @@ convey the exclusion of warranty; and each file should have at least the

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Also add information on how to contact you by electronic and paper mail.

Expand All @@ -495,10 +494,9 @@ school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:

Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random
Hacker.
library `Frob' (a library for tweaking knobs) written by James Random Hacker.

{signature of Ty Coon}, 1 April 1990
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice

That's all there is to it!
That's all there is to it!
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
TARGETS := $(strip $(shell ls -d _target*))
ifeq ($(TARGETS),)
$(error There are no targets to clean/build)
endif
MAKE_PREFIX = make_
CLEAN_PREFIX = clean_
MAKE_TARGETS := $(foreach dir,$(TARGETS),$(MAKE_PREFIX)$(dir))
CLEAN_TARGETS := $(foreach dir,$(TARGETS),$(CLEAN_PREFIX)$(dir))

all: $(MAKE_TARGETS)

$(MAKE_TARGETS):
$(MAKE) -C ./$(subst $(MAKE_PREFIX),,$@) all

clean: $(CLEAN_TARGETS)

$(CLEAN_TARGETS):
$(MAKE) -C ./$(subst $(CLEAN_PREFIX),,$@) clean
93 changes: 93 additions & 0 deletions _target_sdcc_nrf24le1_24/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
###############################################
### Begin user-specific portion of Makefile ###
###############################################

# Add directories here that appear under the <top level>/src folder that should not be compiled
SUBSRCDIRSTOFILTER =

# If the build target name is non-standard, enter the standard build target found in libraries here to override.
# Leave this blank if this build target has a standard name.
EXTERNALTARGETNAME =

# If the source code requires a minimum version of a compiler build, then enter it here. This value must be an integer!
# Leave this blank if the source can be built with any compiler version.
export MINCOMPILERBUILD =

#############################################
### End user-specific portion of Makefile ###
#############################################

# Functions needed by this makefile and the one that builds the source libraries (MakefileSrc)
export ECHO = @echo
export RM = rm
export SED = sed
export MKDIR = mkdir
export TR = tr
export BLACKHOLE = /dev/null
export PWD = pwd
export CD = cd
export LS = ls

# Name for this build target
export TARGETNAME := $(shell $(PWD) | $(SED) -e 's_/.*/__' | $(SED) -e 's_\S.*\\__')

# Name for external build target
ifeq ($(EXTERNALTARGETNAME),)
EXTERNALTARGETNAMELCL = $(TARGETNAME)
else
EXTERNALTARGETNAMELCL = $(EXTERNALTARGETNAME)
endif

# Directories related to the library and location of the local source tree
TOPLEVELREL = ..
LIBNAME := $(shell $(CD) .. && $(PWD) | $(SED) -e 's_/.*/__' | $(SED) -e 's_\S.*\\__' && $(CD) $(TARGETNAME))
TARGETTOSRCDIRREL = $(TOPLEVELREL)/src
SRCTOTARGETDIRREL = ../$(TARGETNAME)
LOCALSRCRELTOTARGET = ../../$(TARGETNAME)

# Include directories (outside this folder) that the sub makes need to know about
EXTERNLIBS = $(filter-out $(LIBNAME),$(filter lib_%,$(subst /.,,$(strip $(shell $(CD) ../.. && $(LS) -d */. && $(CD) $(LIBNAME)/$(TARGETNAME))))))
export EXTERNINCDIRS = $(foreach dir,$(EXTERNLIBS),../../$(dir)/include ../../$(dir)/$(EXTERNALTARGETNAMELCL)/include)

# Directories related to the build process of the target
export TARGETDIR = $(TARGETNAME)
export TARGETLIBDIRREL = lib
export TARGETOBJDIRREL = obj
export TARGETDEPDIRREL = dep
export TARGETSRCMAKEFILE = $(LOCALSRCRELTOTARGET)/MakefileSrc
export TARGETRELTOSUBSRCREL = ../../$(TARGETNAME)

# Directories inside the local source tree
SUBSRCDIRSRAW := $(subst /.,,$(strip $(shell $(CD) $(TARGETTOSRCDIRREL) && $(LS) -d */. && $(CD) $(SRCTOTARGETDIRREL))))
ifeq ($(SUBSRCDIRSRAW),)
$(error There are no source directories to clean/build)
endif
SUBSRCDIRSRAWFILT := $(filter-out $(SUBSRCDIRSTOFILTER),$(SUBSRCDIRSRAW))
ifeq ($(SUBSRCDIRSRAWFILT),)
$(error There are available source directories to clean/build, but they have been filtered out by SUBSRCDIRSTOFILTER)
endif
SUBSRCDIRS := $(foreach dir,$(SUBSRCDIRSRAWFILT),$(TARGETTOSRCDIRREL)/$(dir))


all:
$(ECHO)
$(ECHO) "Building target '$(TARGETNAME)' for library collection '$(LIBNAME)'"
@$(MAKE) $(SUBSRCDIRS)
$(ECHO)
$(ECHO) "Finished building target '$(TARGETNAME)' for library collection '$(LIBNAME)'"

$(SUBSRCDIRS):
$(ECHO)
$(ECHO) "Building library '$(@F)'"
$(MAKE) -C $@ all
$(ECHO) "Finished building library '$(@F)'"

clean:
$(ECHO)
$(ECHO) "Cleaning target '$(TARGETNAME)' for library '$(LIBNAME)'"
$(if $(TARGETLIBDIRREL),$(RM) -rf $(TARGETLIBDIRREL)/*)
$(if $(TARGETOBJDIRREL),$(RM) -rf $(TARGETOBJDIRREL)/*)
$(if $(TARGETDEPDIRREL),$(RM) -rf $(TARGETDEPDIRREL)/*)
$(ECHO) "Finished cleaning target '$(TARGETNAME)' for library '$(LIBNAME)'"

.PHONY: $(SUBSRCDIRS)
76 changes: 76 additions & 0 deletions _target_sdcc_nrf24le1_24/MakefileSrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Programs to use for creating dependencies, compiling source files, and creating the library file, respectively
DEP = sdcc
CC = sdcc
LIB = sdcclib

# Flags for above programs when calling them from the command line
DFLAGS = -MM $(INCDIRS) $<
CFLAGS = --model-large --std-c99 $(INCDIRS) -c $< -o "$(OBJDIR)/"
LFLAGS =

# File extensions for dependency files, source files, object files, and library files, respectively
DEPEXT = d
SRCEXT = c
OBJEXT = rel
LIBEXT = lib

# Compiler version
ifneq ($(MINCOMPILERBUILD),)
CCVERSION := $(subst \#,,$(filter \#%,$(strip $(shell $(CC) -v))))
CCVERSIONOK := $(shell [ $(CCVERSION) -ge $(MINCOMPILERBUILD) ] && echo "YES" || echo "NO")
ifeq ($(CCVERSIONOK),NO)
$(error "The build has detected an SDCC build of #$(CCVERSION). This library must be built by an SDCC build of at least #$(MINCOMPILERBUILD). Please update your SDCC installation.")
endif
endif

# Target directory
TARGETDIR = $(TARGETRELTOSUBSRCREL)

# Source dir name, include directories, and sub source dir
NAME := $(shell $(PWD) | $(SED) -e 's_/.*/__' | $(SED) -e 's_\S.*\\__')
INCDIRS = -I../../include -I$(TARGETDIR)/include $(foreach dir,$(strip $(EXTERNINCDIRS)),-I../$(dir))
LCLSRCDIR = src

# Directories for objects, dependencies, and library files
OBJDIR = $(TARGETDIR)/$(TARGETOBJDIRREL)/$(NAME)
DEPDIR = $(TARGETDIR)/$(TARGETDEPDIRREL)/$(NAME)
LIBDIR = $(TARGETDIR)/$(TARGETLIBDIRREL)

# Name of library file, list of source files, object files, and dependency files
LIBFILE = $(LIBDIR)/$(NAME).$(LIBEXT)
SRCFILES := $(shell $(LS) $(LCLSRCDIR)/*.$(SRCEXT))
OBJFILES = $(subst .$(SRCEXT),.$(OBJEXT),$(subst $(LCLSRCDIR),$(OBJDIR),$(SRCFILES)))
DEPFILES = $(subst .$(SRCEXT),.$(DEPEXT),$(subst $(LCLSRCDIR),$(DEPDIR),$(SRCFILES)))

# Used to makes sure source files get built if their dependency files are modified
-include $(DEPFILES)

all: build

build: $(LIBFILE)

$(LIBDIR)/%.$(LIBEXT): $(OBJFILES)
$(ECHO)
$(ECHO) "Building library file '$@'"
$(LIB) $(LFLAGS) $@ $(OBJFILES)
$(ECHO) "Finished building library file '$@'"
$(ECHO)

$(OBJDIR)/%.$(OBJEXT) : $(LCLSRCDIR)/%.$(SRCEXT) $(DEPDIR)/%.$(DEPEXT)
$(ECHO)
$(ECHO) "Building object file '$@'"
[ -d $(OBJDIR) ] || $(MKDIR) $(OBJDIR) > $(BLACKHOLE)
$(CC) $(CFLAGS)
$(ECHO) "Finished building object file '$@'"

$(DEPDIR)/%.$(DEPEXT): $(LCLSRCDIR)/%.$(SRCEXT)
$(ECHO)
$(ECHO) "Building dependency file '$@'"
[ -d $(DEPDIR) ] || $(MKDIR) $(DEPDIR) > $(BLACKHOLE)
$(ECHO) "$(OBJDIR)/" | $(TR) -d '\n' | $(TR) -d '\r' > $@.tmp
$(DEP) $(DFLAGS) >> $@.tmp
$(SED) 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.tmp > $@
$(RM) -f $@.tmp
$(ECHO) "Finished building dependency file '$@'"

.SECONDARY: $(OBJFILES) $(DEPFILES)
4 changes: 4 additions & 0 deletions _target_sdcc_nrf24le1_24/dep/acomp/acomp_configure.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
../../_target_sdcc_nrf24le1_24/obj/acomp/acomp_configure.rel: src/acomp_configure.c ../../include/acomp.h \
../../include/reg24le1.h \
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h \
../../include/adc.h
3 changes: 3 additions & 0 deletions _target_sdcc_nrf24le1_24/dep/adc/adc_configure.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
../../_target_sdcc_nrf24le1_24/obj/adc/adc_configure.rel: src/adc_configure.c ../../include/adc.h \
../../include/reg24le1.h \
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h
3 changes: 3 additions & 0 deletions _target_sdcc_nrf24le1_24/dep/adc/adc_set_input_channel.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
../../_target_sdcc_nrf24le1_24/obj/adc/adc_set_input_channel.rel: src/adc_set_input_channel.c \
../../include/adc.h ../../include/reg24le1.h \
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
../../_target_sdcc_nrf24le1_24/obj/adc/adc_start_single_conversion.rel: src/adc_start_single_conversion.c \
../../include/adc.h ../../include/reg24le1.h \
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
../../_target_sdcc_nrf24le1_24/obj/adc/adc_start_single_conversion_get_value.rel: \
src/adc_start_single_conversion_get_value.c ../../include/adc.h \
../../include/reg24le1.h \
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h
3 changes: 3 additions & 0 deletions _target_sdcc_nrf24le1_24/dep/delay/delay_ms.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
../../_target_sdcc_nrf24le1_24/obj/delay/delay_ms.rel: src/delay_ms.c ../../include/delay.h \
../../include/reg24le1.h \
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h
2 changes: 2 additions & 0 deletions _target_sdcc_nrf24le1_24/dep/delay/delay_s.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
../../_target_sdcc_nrf24le1_24/obj/delay/delay_s.rel: src/delay_s.c ../../include/delay.h ../../include/reg24le1.h \
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h
3 changes: 3 additions & 0 deletions _target_sdcc_nrf24le1_24/dep/delay/delay_us.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
../../_target_sdcc_nrf24le1_24/obj/delay/delay_us.rel: src/delay_us.c ../../include/delay.h \
../../include/reg24le1.h \
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h
3 changes: 3 additions & 0 deletions _target_sdcc_nrf24le1_24/dep/gpio/gpio_pin_complement.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
../../_target_sdcc_nrf24le1_24/obj/gpio/gpio_pin_complement.rel: src/gpio_pin_complement.c ../../include/gpio.h \
../../include/reg24le1.h \
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h
3 changes: 3 additions & 0 deletions _target_sdcc_nrf24le1_24/dep/gpio/gpio_pin_configure.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
../../_target_sdcc_nrf24le1_24/obj/gpio/gpio_pin_configure.rel: src/gpio_pin_configure.c ../../include/gpio.h \
../../include/reg24le1.h \
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h
3 changes: 3 additions & 0 deletions _target_sdcc_nrf24le1_24/dep/gpio/gpio_pin_dir_input.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
../../_target_sdcc_nrf24le1_24/obj/gpio/gpio_pin_dir_input.rel: src/gpio_pin_dir_input.c ../../include/gpio.h \
../../include/reg24le1.h \
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h
3 changes: 3 additions & 0 deletions _target_sdcc_nrf24le1_24/dep/gpio/gpio_pin_dir_output.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
../../_target_sdcc_nrf24le1_24/obj/gpio/gpio_pin_dir_output.rel: src/gpio_pin_dir_output.c ../../include/gpio.h \
../../include/reg24le1.h \
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h
3 changes: 3 additions & 0 deletions _target_sdcc_nrf24le1_24/dep/gpio/gpio_pin_val_clear.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
../../_target_sdcc_nrf24le1_24/obj/gpio/gpio_pin_val_clear.rel: src/gpio_pin_val_clear.c ../../include/gpio.h \
../../include/reg24le1.h \
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h
3 changes: 3 additions & 0 deletions _target_sdcc_nrf24le1_24/dep/gpio/gpio_pin_val_complement.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
../../_target_sdcc_nrf24le1_24/obj/gpio/gpio_pin_val_complement.rel: src/gpio_pin_val_complement.c \
../../include/gpio.h ../../include/reg24le1.h \
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h
3 changes: 3 additions & 0 deletions _target_sdcc_nrf24le1_24/dep/gpio/gpio_pin_val_read.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
../../_target_sdcc_nrf24le1_24/obj/gpio/gpio_pin_val_read.rel: src/gpio_pin_val_read.c ../../include/gpio.h \
../../include/reg24le1.h \
../../_target_sdcc_nrf24le1_24/include/target_nrf24le1_sdk.h
Loading

0 comments on commit dd9aa99

Please sign in to comment.