summaryrefslogtreecommitdiff
path: root/src/spiradio-v0.1
diff options
context:
space:
mode:
Diffstat (limited to 'src/spiradio-v0.1')
-rw-r--r--src/spiradio-v0.1/.gitignore2
-rw-r--r--src/spiradio-v0.1/.sdcdbrc2
-rw-r--r--src/spiradio-v0.1/Makefile92
-rw-r--r--src/spiradio-v0.1/ao_pins.h66
-rw-r--r--src/spiradio-v0.1/ao_spiradio.c40
5 files changed, 0 insertions, 202 deletions
diff --git a/src/spiradio-v0.1/.gitignore b/src/spiradio-v0.1/.gitignore
deleted file mode 100644
index 8e39138e..00000000
--- a/src/spiradio-v0.1/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-spiradio-*
-ao_product.h
diff --git a/src/spiradio-v0.1/.sdcdbrc b/src/spiradio-v0.1/.sdcdbrc
deleted file mode 100644
index 2c77e32b..00000000
--- a/src/spiradio-v0.1/.sdcdbrc
+++ /dev/null
@@ -1,2 +0,0 @@
---directory=../cc1111:../product:../kernel:../drivers:.
-
diff --git a/src/spiradio-v0.1/Makefile b/src/spiradio-v0.1/Makefile
deleted file mode 100644
index cd7a9cde..00000000
--- a/src/spiradio-v0.1/Makefile
+++ /dev/null
@@ -1,92 +0,0 @@
-#
-# SpiRadio build file
-#
-
-SPIRADIO_VER=0.1
-SPIRADIO_DEF=0_1
-
-vpath %.c ..:../kernel:../cc1111:../drivers:../product
-vpath %.h ..:../kernel:../cc1111:../drivers:../product
-vpath ao-make-product.5c ../util
-
-ifndef VERSION
-include ../Version
-endif
-
-INC = \
- ao.h \
- ao_pins.h \
- ao_arch.h \
- ao_arch_funcs.h \
- cc1111.h \
- ao_product.h \
- ao_radio_spi.h
-
-CORE_SRC = \
- ao_cmd.c \
- ao_config.c \
- ao_mutex.c \
- ao_panic.c \
- ao_stdio.c \
- ao_task.c \
- ao_freq.c
-
-CC1111_SRC = \
- ao_aes.c \
- ao_dma.c \
- ao_led.c \
- ao_radio.c \
- ao_radio_cmac.c \
- ao_radio_slave.c \
- ao_romconfig.c \
- ao_serial.c \
- ao_spi.c \
- ao_string.c \
- ao_timer.c \
- _bp.c
-
-PRODUCT_SRC = \
- ao_spiradio.c
-
-SRC = \
- $(CORE_SRC) \
- $(CC1111_SRC) \
- $(PRODUCT_SRC)
-
-PROGNAME = spiradio-v$(SPIRADIO_VER)
-PROG = $(PROGNAME)-$(VERSION).ihx
-PRODUCT=SpiRadio-v$(SPIRADIO_VER)
-PRODUCT_DEF=-DSPIRADIO_V_$(SPIRADIO_DEF)
-IDPRODUCT=0x000f
-CODESIZE=0x6700
-
-include ../cc1111/Makefile.cc1111
-
-NICKLE=nickle
-CHECK_STACK=sh ../util/check-stack
-
-V=0
-# The user has explicitly enabled quiet compilation.
-ifeq ($(V),0)
-quiet = @printf " $1 $2 $@\n"; $($1)
-endif
-# Otherwise, print the full command line.
-quiet ?= $($1)
-
-all: $(PROG)
-
-$(PROG): $(REL) Makefile
- $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL)
- $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
-
-ao_product.h: ao-make-product.5c ../Version
- $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
-
-distclean: clean
-
-clean: clean-cc1111
-
-install:
-
-uninstall:
-
diff --git a/src/spiradio-v0.1/ao_pins.h b/src/spiradio-v0.1/ao_pins.h
deleted file mode 100644
index 472da16f..00000000
--- a/src/spiradio-v0.1/ao_pins.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Copyright © 2010 Keith Packard <keithp@keithp.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
- */
-
-#ifndef _AO_PINS_H_
-#define _AO_PINS_H_
-
-#define HAS_RADIO 1
-
-#define HAS_FLIGHT 0
-#define HAS_USB 0
-#define HAS_BEEP 0
-#define HAS_GPS 0
-#define HAS_SERIAL_0 0
-#define HAS_SERIAL_0_ALT_1 0
-#define HAS_SERIAL_0_HW_FLOW 0
-#define USE_SERIAL_0_STDIN 0
-#define HAS_SERIAL_1 1
-#define HAS_SERIAL_1_ALT_1 1
-#define HAS_SERIAL_1_HW_FLOW 0
-#define USE_SERIAL_1_STDIN 1
-#define DELAY_SERIAL_1_STDIN 0
-#define HAS_ADC 0
-#define HAS_DBG 0
-#define HAS_EEPROM 0
-#define HAS_LOG 0
-#define USE_INTERNAL_FLASH 0
-#define DBG_ON_P1 0
-#define PACKET_HAS_MASTER 0
-#define PACKET_HAS_SLAVE 0
-#define AO_LED_TX 1
-#define AO_LED_RX 2
-#define AO_LED_RED AO_LED_TX
-#define LEDS_AVAILABLE (AO_LED_TX|AO_LED_RX)
-#define HAS_EXTERNAL_TEMP 0
-#define HAS_ACCEL_REF 0
-#define SPI_CS_ON_P1 1
-#define HAS_AES 1
-
-#define SPI_CS_PORT P1
-#define SPI_CS_SEL P1SEL
-#define SPI_CS_DIR P1DIR
-#define AO_SPI_SLAVE 1
-#define HAS_SPI_0 1
-#define SPI_0_ALT_2 1
-#define HAS_SPI_1 0
-
-#define AO_RADIO_SLAVE_INT_PORT P1
-#define AO_RADIO_SLAVE_INT_BIT 6
-#define AO_RADIO_SLAVE_INT_PIN P1_6
-
-#endif /* _AO_PINS_H_ */
diff --git a/src/spiradio-v0.1/ao_spiradio.c b/src/spiradio-v0.1/ao_spiradio.c
deleted file mode 100644
index 07d33aa4..00000000
--- a/src/spiradio-v0.1/ao_spiradio.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright © 2012 Keith Packard <keithp@keithp.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
- */
-
-#include <ao.h>
-#include <ao_radio_spi.h>
-
-void
-main(void)
-{
- ao_clock_init();
-
- ao_led_init(LEDS_AVAILABLE);
-
- ao_task_init();
-
- ao_serial_init();
- ao_timer_init();
- ao_cmd_init();
- ao_spi_init();
- ao_radio_init();
- ao_aes_init();
- ao_config_init();
- ao_radio_slave_init();
- ao_start_scheduler();
-}