diff options
| author | bnewbold <bnewbold@robocracy.org> | 2010-06-18 14:48:53 -0400 | 
|---|---|---|
| committer | bnewbold <bnewbold@robocracy.org> | 2010-06-18 14:48:53 -0400 | 
| commit | cbe359ff2cd2edde28ba8155f55963e75983aa15 (patch) | |
| tree | 1f3b30f4ecde165fca4cd2b37bcecdbd30282df3 | |
| parent | cabb71f9425874a9ebd84c3d62656ef513ecfe20 (diff) | |
| download | librambutan-cbe359ff2cd2edde28ba8155f55963e75983aa15.tar.gz librambutan-cbe359ff2cd2edde28ba8155f55963e75983aa15.zip  | |
codeblocks support stuff
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | support/codeblocks/libmaple.cbp | 312 | ||||
| -rwxr-xr-x | support/codeblocks/program_flash.sh | 4 | ||||
| -rwxr-xr-x | support/codeblocks/program_ram.sh | 4 | 
4 files changed, 321 insertions, 0 deletions
@@ -1,2 +1,3 @@  build/  main.cpp +libmaple.layout diff --git a/support/codeblocks/libmaple.cbp b/support/codeblocks/libmaple.cbp new file mode 100644 index 0000000..f4ed7e5 --- /dev/null +++ b/support/codeblocks/libmaple.cbp @@ -0,0 +1,312 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> +<CodeBlocks_project_file> +	<FileVersion major="1" minor="6" /> +	<Project> +		<Option title="libmaple" /> +		<Option makefile_is_custom="1" /> +		<Option pch_mode="2" /> +		<Option compiler="gcc" /> +		<Build> +			<Target title="flash"> +				<Option output="support/codeblocks/program_flash.sh" prefix_auto="0" extension_auto="0" /> +				<Option working_dir="support/codeblocks" /> +				<Option object_output="/home/bnewbold/leaf/libmaple/.objs" /> +				<Option type="1" /> +				<Option compiler="gcc" /> +				<Option use_console_runner="0" /> +				<MakeCommands> +					<Build command="$make -f $makefile $target" /> +					<CompileFile command="$make -f $makefile $file" /> +					<Clean command="$make -f $makefile clean" /> +					<DistClean command="$make -f $makefile distclean$target" /> +				</MakeCommands> +			</Target> +			<Target title="ram"> +				<Option output="support/codeblocks/program_ram.sh" prefix_auto="0" extension_auto="0" /> +				<Option working_dir="support/codeblocks" /> +				<Option type="1" /> +				<Option compiler="gcc" /> +				<Option use_console_runner="0" /> +				<MakeCommands> +					<Build command="$make -f $makefile $target" /> +					<CompileFile command="$make -f $makefile $file" /> +					<Clean command="$make -f $makefile clean" /> +					<DistClean command="$make -f $makefile distclean$target" /> +				</MakeCommands> +			</Target> +			<Target title="Release"> +				<Option output="bin/Release/libmaple" prefix_auto="1" extension_auto="1" /> +				<Option object_output="obj/Release/" /> +				<Option type="1" /> +				<Option compiler="gcc" /> +				<Compiler> +					<Add option="-O2" /> +				</Compiler> +				<Linker> +					<Add option="-s" /> +				</Linker> +			</Target> +		</Build> +		<Compiler> +			<Add option="-Wall" /> +		</Compiler> +		<Unit filename="libmaple/adc.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/adc.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/exc.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/exti.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/exti.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/flash.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/flash.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/gpio.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/gpio.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/libmaple.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/libmaple_types.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/nvic.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/nvic.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/rcc.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/rcc.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/spi.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/spi.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/syscalls.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/systick.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/systick.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/timers.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/timers.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usart.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usart.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/descriptors.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/descriptors.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb_callbacks.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb_callbacks.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb_config.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb_hardware.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb_hardware.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb_lib/usb_core.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb_lib/usb_core.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb_lib/usb_def.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb_lib/usb_init.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb_lib/usb_init.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb_lib/usb_int.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb_lib/usb_int.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb_lib/usb_lib.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb_lib/usb_mem.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb_lib/usb_mem.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb_lib/usb_regs.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb_lib/usb_regs.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/usb/usb_lib/usb_type.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/util.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="libmaple/util.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="main.cpp"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/Print.cpp"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/Print.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/WProgram.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/bits.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/comm/HardwareSPI.cpp"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/comm/HardwareSPI.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/comm/HardwareSerial.cpp"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/comm/HardwareSerial.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/cxxabi-compat.cpp"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/ext_interrupts.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/ext_interrupts.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/io.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/main.cxx"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/pwm.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/pwm.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/time.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/time.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/usb_serial.cpp"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/usb_serial.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/wirish.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/wirish.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/wirish_analog.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/wirish_digital.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/wirish_math.cpp"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/wirish_math.h"> +			<Option target="<{~None~}>" /> +		</Unit> +		<Unit filename="wirish/wirish_shift.c"> +			<Option compilerVar="CC" /> +			<Option target="<{~None~}>" /> +		</Unit> +		<Extensions> +			<code_completion /> +			<debugger /> +		</Extensions> +	</Project> +</CodeBlocks_project_file> diff --git a/support/codeblocks/program_flash.sh b/support/codeblocks/program_flash.sh new file mode 100755 index 0000000..791cbe6 --- /dev/null +++ b/support/codeblocks/program_flash.sh @@ -0,0 +1,4 @@ +#/usr/bin/env sh + +cd ../.. +make program_flash diff --git a/support/codeblocks/program_ram.sh b/support/codeblocks/program_ram.sh new file mode 100755 index 0000000..ef0835c --- /dev/null +++ b/support/codeblocks/program_ram.sh @@ -0,0 +1,4 @@ +#/usr/bin/env sh + +cd ../.. +make program_ram  | 
