David Jung
/
MAX32664C_MAXM86146_Mode1_Optical
Mode1 Optical Validation
Diff: main.cpp
- Revision:
- 20:7fc26287beb7
- Parent:
- 19:3b19114527ce
- Child:
- 21:67d58af1ec56
--- a/main.cpp Fri Jun 11 21:44:13 2021 +0000 +++ b/main.cpp Tue Jun 15 23:15:34 2021 +0000 @@ -37,7 +37,7 @@ /****************************************************************************** * https://os.mbed.com/users/phonemacro/code/MAX32664C_Example_Host_Code * Tera Term output is set to 115200 baud rate. -* ver: 210611 +* ver: 210615 ******************************************************************************/ /****************************************************************************** @@ -51,9 +51,9 @@ /*****************************************************************************/ // define one and only one of the following three platforms -#define MAXM86146_CFG 1 // tested on MAXM86146EVSYS_sensorBrd+MAXM86161_ADAPTER_REVB+MAX32630FTHR +//#define MAXM86146_CFG 1 // tested on MAXM86146EVSYS_sensorBrd+MAXM86161_ADAPTER_REVB+MAX32630FTHR //#define MAXREFDES103_CFG -//#define MAXM86161_CFG 1 // tested on MAXM86161+MAX32630FTHR+v32.9.22 +#define MAXM86161_CFG 1 // tested on MAXM86161+MAX32630FTHR+v32.9.22, 32.13.12 /*****************************************************************************/ #include "max32630fthr.h" MAX32630FTHR pegasus(MAX32630FTHR::VIO_3V3); // Enable J1-pin2, 3.3V and set GPIO to 3.3v @@ -79,17 +79,13 @@ #ifdef old_msbl #ifdef EXTENDED_ALGO #define ALGO_SZ 52 // 52 bytes is the extended algo size for 3x.12.0 - //#define ALGO_SZ 56 // 56 bytes is the extended algo size for 3x.13.x #else #define ALGO_SZ 20 // 20 bytes is the algo normal size for 3x.12.0 - //#define ALGO_SZ 24 // 24 bytes is the algo normal size for 3x.13.x #endif #else #ifdef EXTENDED_ALGO - //#define ALGO_SZ 52 // 52 bytes is the extended algo size for 3x.12.0 #define ALGO_SZ 56 // 56 bytes is the extended algo size for 3x.13.x #else - //#define ALGO_SZ 20 // 20 bytes is the algo normal size for 3x.12.0 #define ALGO_SZ 24 // 24 bytes is the algo normal size for 3x.13.x #endif #endif @@ -366,6 +362,9 @@ #ifdef MAXREFDES103_CFG init_max20303_pmic(); #endif +#if defined(MAXM86161_CFG) // 32.13.12+ needs extra delay + thread_sleep_for(250); +#endif mfio = 0; wait_us(300);