added dac support
This commit is contained in:
@ -95,8 +95,8 @@ void Set_LTEC(uint8_t, uint16_t);
|
||||
#define TECEN2_GPIO_Port GPIOA
|
||||
#define REF2_ON_Pin GPIO_PIN_3
|
||||
#define REF2_ON_GPIO_Port GPIOA
|
||||
#define DAC_TEC2_CS_Pin GPIO_PIN_4
|
||||
#define DAC_TEC2_CS_GPIO_Port GPIOA
|
||||
#define DAC_TEC2_CS_Pin GPIO_PIN_8
|
||||
#define DAC_TEC2_CS_GPIO_Port GPIOE
|
||||
#define DAC_LD2_CS_Pin GPIO_PIN_6
|
||||
#define DAC_LD2_CS_GPIO_Port GPIOA
|
||||
#define LD2_EN_Pin GPIO_PIN_4
|
||||
@ -190,6 +190,7 @@ void Set_LTEC(uint8_t, uint16_t);
|
||||
#define AD9102_CMD 10
|
||||
#define AD9833_CMD 11
|
||||
#define DS1809_CMD 12
|
||||
#define STM32_DAC_CMD 13
|
||||
|
||||
#define SD_ERR 0x01
|
||||
#define UART_ERR 0x02
|
||||
@ -215,6 +216,9 @@ void Set_LTEC(uint8_t, uint16_t);
|
||||
#define DS1809_CMD_HEADER 0xAAAA
|
||||
#define DS1809_CMD_8 10 // total bytes including header
|
||||
#define DS1809_CMD_WORDS 4 // data words (flags, count, pulse_ms, checksum)
|
||||
#define STM32_DAC_CMD_HEADER 0xBBBB
|
||||
#define STM32_DAC_CMD_8 10 // total bytes including header
|
||||
#define STM32_DAC_CMD_WORDS 4 // data words (flags, dac_code, reserved, checksum)
|
||||
|
||||
#define AD9102_ON_SPI2 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user