Yuliya Smirnova
/
h7adc
stm32h7 udp server with adc
Diff: main.cpp
- Revision:
- 1:125ced0f8dd5
- Parent:
- 0:837bd71aa81c
--- a/main.cpp Wed Oct 21 21:02:41 2020 +0000 +++ b/main.cpp Mon Oct 26 18:37:57 2020 +0300 @@ -1,7 +1,7 @@ #include "mbed.h" #include "EthernetInterface.h" #include "LWIPStack.h" -#include "ADE7912.h" +#include "ADE7912/ADE7912.h" EthernetInterface net; @@ -36,6 +36,12 @@ int main() { struct ADE7912_Phase_Settings a_phase; + a_phase.CS_pin = 10;//SPI1_CS_Pin; + //a_phase.CS_port = SPI1_CS_GPIO_Port; + a_phase.freq = F_8KHZ; + a_phase.bandwidth = BW_2KHZ; + + thread.start(UDP_thread); while (true) {