Commit f1d2f970 authored by Jacques Labaisse's avatar Jacques Labaisse
Browse files

create slave_converter branch (extern variables!)

parent 4168e4c7
......@@ -34,7 +34,7 @@
float32_t v_ref = 10.0F;
float32_t v_send = 0.0F;
float32_t v_receive = 0.0F;
void main(void)
{
......
......@@ -45,7 +45,7 @@ float32_t vhigh_out = 0;
float32_t ihigh_out = 0;
extern float32_t v_ref;
extern float32_t v_send;
extern float32_t v_receive;
static float32_t load_dim = 1.0;
bool loadEnable = true;
......@@ -209,12 +209,12 @@ static DataNode data_nodes[] = {
/*{
"title": {
"en": "voltage_to_send"
"en": "voltage_to_receive"
},
"unit": "mV"
}*/
TS_NODE_FLOAT(0x8004, "v_send", &v_send, 2 ,
ID_OUTPUT, TS_ANY_R, PUB_SER | PUB_CAN),
TS_NODE_FLOAT(0x8004, "v_receive", &v_receive, 2 ,
ID_OUTPUT, TS_ANY_W, PUB_SER | PUBSUB_CTRL),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment