altos-avr: Completely replace the spi slave code
[fw/altos] / src-avr / ao_log_telescience.c
index ef5a1c97d3e03c386cea94968918e5f126c64028..62e0493c8c693b013e79b97863ce42993d9248fe 100644 (file)
  */
 
 #include "ao.h"
+#include "ao_product.h"
 
 static struct ao_task ao_log_task;
+//static struct ao_task ao_spi_task;
 
 uint8_t        ao_log_running;
 uint8_t                ao_log_mutex;
@@ -235,28 +237,17 @@ const struct ao_cmds ao_log_cmds[] = {
        { ao_log_set,   "L <0 off, 1 on>\0Set logging mode" },
        { ao_log_list,  "l\0List stored flight logs" },
        { ao_log_delete, "d 1\0Delete all stored flights" },
+       { ao_spi_slave_debug, "s\0Dump SPI slave data" },
        { 0,    NULL },
 };
 
-ISR(PCINT0_vect)
-{
-       ao_log_check_pin();
-}
-
 void
 ao_log_init(void)
 {
        ao_log_running = 0;
 
-       DDRB &= ~(1 << DDB0);
-
-       PORTB |= (1 << PORTB0);         /* Pull input up; require input to log */
-
-       PCMSK0 |= (1 << PCINT0);        /* Enable PCINT0 pin change */
-
-       PCICR |= (1 << PCIE0);          /* Enable pin change interrupt */
-
        ao_cmd_register(&ao_log_cmds[0]);
 
        ao_add_task(&ao_log_task, ao_log_telescience, "log");
+//     ao_add_task(&ao_spi_task, ao_spi_telescience, "spi");
 }