Пример #1
0
#---------------------------------------------------

# Set the name for the final output item (with NO file extension)
FINAL_OUTPUT_NAME = 'a'

#
# For build config/variant: "Release"
#

# Set project specific 'base' (i.e always used) options
base_release = BuildValues()  # Do NOT comment out this line
build_options = ' -DBUILD_OPT_CALIBRATED -DBUILD_OPT_DATA_ONLY'
#build_options         = ''
base_release.cflags = ' -Wall -DF_CPU=64000000 -DARDUINO=10802 ' + build_options
base_release.asmflags = ' -Wall -DF_CPU=64000000 -DARDUINO=10802'
base_release.inc      = ' -I' + ARDUINO_SKETCH_FOLDER + r'\libraries\Adafruit_BNO055' + \
                        ' -I' + ARDUINO_SKETCH_FOLDER + r'\libraries\Adafruit_Unified_Sensor'

# Set project specific 'optimzed' options
optimzed_release = BuildValues()  # Do NOT comment out this line

# Set project specific 'debug' options
debug_release = BuildValues()  # Do NOT comment out this line
#debug_release.cflags = '-D_MY_APP_DEBUG_SWITCH_'

#-------------------------------------------------
# ONLY edit this section if you are ADDING options
# for build configurations/variants OTHER than the
# 'release' build
#-------------------------------------------------

release_opts = {
Пример #2
0
# Set the name for the final output item (with NO file extension)
FINAL_OUTPUT_NAME = 'simple'



#
# For build config/variant: "Release"
#

# Set project specific 'base' (i.e always used) options
base_release = BuildValues()        # Do NOT comment out this line
build_options         = ' -DBUILD_OPT_PIN=30 -DBUILD_OPT_NUM_PIXELS=16 -DBUILD_OPT_NEO_TYPE=NEO_GRBW'
base_release.cflags   = ' -Wall -DF_CPU=64000000 -DARDUINO=10802 ' + build_options
base_release.asmflags = ' -Wall -DF_CPU=64000000 -DARDUINO=10802'
base_release.inc      = '-I' + ARDUINO_SKETCH_FOLDER + r'\libraries\Adafruit_NeoPixel'


# Set project specific 'optimized' options
optimzed_release = BuildValues()    # Do NOT comment out this line

# Set project specific 'debug' options
debug_release = BuildValues()       # Do NOT comment out this line
#debug_release.cflags = '-D_MY_APP_DEBUG_SWITCH_'




#-------------------------------------------------
# ONLY edit this section if you are ADDING options
# for build configurations/variants OTHER than the
Пример #3
0
# Define include path for the FreeRTOS include directory
INC_FREERTOS1 = os.path.join(NQBP_WORK_ROOT(), "xpkgs", "freertos", "src",
                             "include")
INC_FREERTOS2 = os.path.join(NQBP_WORK_ROOT(), "xpkgs", "freertos", "src",
                             "portable", "GCC", "RX600")

#
# For build config/variant: "Release"
#

# Set project specific 'base' (i.e always used) options
base_release = BuildValues()  # Do NOT comment out this line
base_release.cflags = '-Wall -Werror -D__RX_LITTLE_ENDIAN__=1 -mlittle-endian-data -m64bit-doubles -mint-register=0 -DCPPAPP'
base_release.cppflags = '-fno-exceptions -fno-rtti'
base_release.asmflags = base_release.cflags + ' -x assembler-with-cpp '
base_release.inc = ' -I{} -I{} -I{} -I{}'.format(INC_PATH1, INC_PATH2,
                                                 INC_FREERTOS1, INC_FREERTOS2)
base_release.asminc = base_release.inc

base_release.linkflags = '-T ..\\{} -e {} -L {} -L {}'.format(
    LINKER_SCRIPT, RESET_VECTOR_NAME, LIB_PATH1, LIB_PATH2)

# Set project specific 'optimzed' options
optimzed_release = BuildValues()  # Do NOT comment out this line
optimzed_release.cflags = ' -Os '
optimzed_release.asmflags = optimzed_release.cflags

# Set project specific 'debug' options
debug_release = BuildValues()  # Do NOT comment out this line
debug_release.cflags = ' -g2 '
debug_release.asmflags = '-Wa,--gdwarf-2 '
Пример #4
0
# Define include path for the FreeRTOS include directory
INC_FREERTOS1 = os.path.join( NQBP_WORK_ROOT(), "xpkgs", "freertos", "src", "include" )
INC_FREERTOS2 = os.path.join( NQBP_WORK_ROOT(), "xpkgs", "freertos", "src", "portable", "GCC", "RX600" )


#
# For build config/variant: "Release"
#

# Set project specific 'base' (i.e always used) options
base_release = BuildValues()        # Do NOT comment out this line
base_release.cflags    = '-ffunction-sections -fdata-sections  -Wall -Werror -D__RX_LITTLE_ENDIAN__=1 -mlittle-endian-data -m64bit-doubles -mint-register=0 -DCPPAPP'
base_release.cppflags  = '-fno-exceptions -fno-rtti'
base_release.asmflags  = base_release.cflags + ' -x assembler-with-cpp ' 
base_release.inc       = ' -I{} -I{} -I{} -I{}'.format( INC_PATH1, INC_PATH2, INC_FREERTOS1, INC_FREERTOS2 )
base_release.asminc    = base_release.inc

#base_release.firstobjs  = '..\\xpkgs\\colony.bsp.renesas.rx\src\\Bsp\\Renesas\Rx\\u62n\\Yrdkr62n\\Gnurx\\_no_c++_exceptions\*.o '
#base_release.lastobjs  = '..\\xpkgs\\colony.bsp.renesas.rx\src\\Bsp\\Renesas\Rx\\u62n\\Yrdkr62n\\Gnurx\\_libc\*.a '
base_release.linkflags = '-ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -Wl,--gc-sections -T ..\\{} -e {} -L {} -L {}'.format(LINKER_SCRIPT, RESET_VECTOR_NAME, LIB_PATH1, LIB_PATH2 )
                                    
                                    
# Set project specific 'optimzed' options
optimzed_release = BuildValues()    # Do NOT comment out this line
optimzed_release.cflags   = ' -Os '
optimzed_release.asmflags = optimzed_release.cflags

# Set project specific 'debug' options
debug_release = BuildValues()       # Do NOT comment out this line
debug_release.cflags   = ' -g2 '