summaryrefslogtreecommitdiff
path: root/firmware/protocol.h
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2011-10-11 21:56:36 +0200
committerYves Fischer <yvesf-git@xapek.org>2011-10-11 21:56:36 +0200
commitcbc941282074856fc6179761b70a0c9879b0b64d (patch)
treeed15c6d9e20ceaf1ff01a05aa63054410bb8ed54 /firmware/protocol.h
parent324c5ba9098c1010d0aa8c1e26b95509878ce9f2 (diff)
downloadmini-octopus-cbc941282074856fc6179761b70a0c9879b0b64d.tar.gz
mini-octopus-cbc941282074856fc6179761b70a0c9879b0b64d.zip
update firmware to @319
Diffstat (limited to 'firmware/protocol.h')
-rw-r--r--firmware/protocol.h27
1 files changed, 20 insertions, 7 deletions
diff --git a/firmware/protocol.h b/firmware/protocol.h
index fce8eda..af2c6fb 100644
--- a/firmware/protocol.h
+++ b/firmware/protocol.h
@@ -42,18 +42,20 @@
#define CMD_IO_PORT_GET 0x19
#define CMD_IO_PIN_SET 0x1A
#define CMD_IO_PIN_GET 0x1B
+#define CMD_IO_SET_STATUS_LED 0x1C
#define CMD_ADC_INIT_PIN 0x20
-#define CMD_ADC_GET 0x21
-#define CMD_ADC_REF 0x22
-
+#define CMD_ADC_DEINIT_PIN 0x21
+#define CMD_ADC_GET 0x22
+#define CMD_ADC_REF 0x23
+
#define CMD_I2C_INIT 0x30
#define CMD_I2C_DEINIT 0x31
#define CMD_I2C_SET_BITRATE 0x32
-#define CMD_I2C_SEND_BYTE 0x34
-#define CMD_I2C_RECV_BYTES 0x35
-#define CMD_I2C_SEND_START 0x36
-#define CMD_I2C_SEND_STOP 0x37
+#define CMD_I2C_SEND 0x34
+#define CMD_I2C_RECV 0x35
+#define CMD_I2C_SEND_START 0x36
+#define CMD_I2C_SEND_STOP 0x37
#define CMD_SPI_INIT 0x40
#define CMD_SPI_DEINIT 0x41
@@ -78,6 +80,17 @@
#define CMD_UART_RECV 0x67
#define CMD_UART_SEND 0x68
+#define CMD_CAN_INIT 0x70
+#define CMD_CAN_DEINIT 0x71
+#define CMD_CAN_SEND_DATA 0x72
+#define CMD_CAN_ENABLE_MOB 0x73
+#define CMD_CAN_DISABLE_MOB 0x74
+#define CMD_CAN_SEND_REMOTE 0x75
+#define CMD_CAN_RECEIVE_DATA 0x76
+#define CMD_CAN_SET_AUTOREPLY 0x77
+
+#define CMD_EEPROM_READ_BYTES 0x80
+#define CMD_EEPROM_WRITE_BYTES 0x81
#define PARAM_ADC_AREF 0x01
#define PARAM_ADC_AVCC 0x02