TEST_CODE_ApplyTo2V1_API
Dependencies: SDFileSystem max32630fthr USBDevice
Diff: main.cpp
- Revision:
- 3:35b05d91568d
- Parent:
- 1:7530b7eb757a
- Child:
- 4:217334c3a5b2
--- a/main.cpp Thu May 28 02:32:15 2020 +0000 +++ b/main.cpp Mon Jun 22 05:27:48 2020 +0000 @@ -49,7 +49,7 @@ MAX32630FTHR pegasus(MAX32630FTHR::VIO_3V3); // Hardware serial port over DAPLink -Serial uart(P3_1, P3_0); +//Serial uart(P3_1, P3_0); I2C i2c_v(P3_4, P3_5); @@ -69,8 +69,10 @@ DigitalOut HIGH_EN(P5_6); DigitalOut A0(P4_0); -DigitalOut PULSE(P5_1); -DigitalOut DI(P5_2); +DigitalOut PULSE(P3_0); +DigitalOut DI(P3_1); + +DigitalOut TRIM_EN(P5_5); SDFileSystem sd(P0_5, P0_6, P0_4, P0_7, "sd"); // mosi, miso, sclk, cs #endif @@ -114,6 +116,7 @@ A0 = 0; DI = 0; PULSE = 0; + TRIM_EN = 0; #endif #ifdef OFILM @@ -134,10 +137,11 @@ SetVoltageAVDD(3.3); - //wait(1); - DUT_RegInit(); - wait(1); + wait(1); + //DUT_RegInit(); + //wait(1); //DUT_FirmwareInit(); + DeviceAllInit(0x68, 0xE2, 0x31); cmd_handle_thread.start(CmdHandleTask); coutinu_measure_thread.start(ContinuousMeasureReport);