File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,9 @@ extern "C" unsigned int PINCOUNT_fn();
64
64
#define SPI_CK (33u)
65
65
#define SPI_CS_1 (34u)
66
66
#define SPI_CS_2 (35u)
67
+ /* +++++++++++++++++++++++++++++++++ SPI +++++++++++++++++++++++++++++++++++ */
68
+ #define LDAC1 (36u)
69
+ #define LDAC2 (37u)
67
70
68
71
/* ************************** UART CORE DEFINES **************************** */
69
72
#define SERIAL_HOWMANY 1
Original file line number Diff line number Diff line change @@ -64,6 +64,10 @@ extern "C" const PinMuxCfg_t g_pin_cfg[] = {
64
64
{BSP_IO_PORT_01_PIN_02, P102}, /* (33) SPI_CK */
65
65
{BSP_IO_PORT_01_PIN_03, P103}, /* (34) SPI_CS_1 */
66
66
{BSP_IO_PORT_01_PIN_04, P104}, /* (35) SPI_CS_2 */
67
+ /* +++++++++++++++++++++++++++++++++ SPI ++++++++++++++++++++++++++++++++ */
68
+ {BSP_IO_PORT_01_PIN_12, P112}, /* (36) LDAC1 */
69
+ {BSP_IO_PORT_03_PIN_03, P303}, /* (37) LDAC2 */
70
+
67
71
};
68
72
69
73
extern " C" const size_t g_pin_cfg_size = sizeof (g_pin_cfg);
@@ -105,6 +109,10 @@ void initVariant() {
105
109
digitalWrite (DIO_RTD_SWITCH_1,LOW);
106
110
digitalWrite (DIO_RTD_SWITCH_2,LOW);
107
111
112
+ pinMode (LDAC1,OUTPUT);
113
+ pinMode (LDAC2,OUTPUT);
114
+ digitalWrite (LDAC1,HIGH);
115
+ digitalWrite (LDAC2,HIGH);
108
116
109
117
110
118
You can’t perform that action at this time.
0 commit comments