*/
#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;
{ 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");
}