![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Mode1 Optical Validation
Diff: main.cpp
- Revision:
- 18:f4c95b1c0efc
- Parent:
- 17:0d6e99a0fd8d
- Child:
- 19:3b19114527ce
--- a/main.cpp Thu Jun 10 23:25:26 2021 +0000 +++ b/main.cpp Fri Jun 11 21:43:19 2021 +0000 @@ -53,7 +53,7 @@ // define one and only one of the following three platforms #define MAXM86146_CFG 1 // tested on MAXM86146EVSYS_sensorBrd+MAXM86161_ADAPTER_REVB+MAX32630FTHR //#define MAXREFDES103_CFG -//#define MAX86161_CFG 1 +//#define MAXM86161_CFG 1 // tested on MAXM86161+MAX32630FTHR+v32.9.22 /*****************************************************************************/ #include "max32630fthr.h" MAX32630FTHR pegasus(MAX32630FTHR::VIO_3V3); // Enable J1-pin2, 3.3V and set GPIO to 3.3v @@ -74,13 +74,26 @@ #endif #define ACCEL_SZ 6 // accel #define SENSOR_SZ (PPG_SZ+ACCEL_SZ) -#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 + +//#define old_msbl 1 // 3x.12.0 +#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 - //#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 + #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 + #ifdef ALGO_ONLY #define TTL_SZ (ALGO_SZ) #else