#include "protocol.h"
#include "cmd_ctor.h" // MAKE_CMD, REGISTER_CMD
#include "verstag.h"
+#include "hw/hw_adc.h"
+#include "hw/hw_input.h"
#include <drv/timer.h>
#include <drv/ser.h>
#include <kern/kfile.h>
-#include "hw_adc.h"
-#include "hw_input.h"
-
#include <stdlib.h>
#include <string.h>
-//#include <cmd_hunk.h>
-
-
// Define the format string for ADC
#define ADC_FORMAT_STR "dddd"
/**
* Send a NAK asking the host to send the current message again.
*
- * \param err human-readable description of the error for debug purposes.
+ * \a fd kfile handler for serial.
+ * \a err human-readable description of the error for debug purposes.
*/
INLINE void NAK(KFile *fd, const char *err)
{
0;
}), 0)
-/* Doutx sperimentale....... */
-MAKE_CMD(doutx, "d", "",
- ({
- sipo_putchar((uint8_t)args[1].l);
-
- //Store status of dout ports.
- reg_status_dout = (uint8_t)args[1].l;
- 0;
- }), 0)
/* Reset */
MAKE_CMD(reset, "", "",
//Set off all dout ports.
reg_status_dout = 0;
REGISTER_CMD(rdout);
- REGISTER_CMD(doutx);
REGISTER_CMD(reset);
REGISTER_CMD(din);
REGISTER_CMD(ain);