From cbc941282074856fc6179761b70a0c9879b0b64d Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Tue, 11 Oct 2011 21:56:36 +0200 Subject: update firmware to @319 --- firmware/protocol.h | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'firmware/protocol.h') 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 -- cgit v1.2.1