comparison Discovery/Src/base.c @ 1032:33b91584d827 Puls_Integration

New CV Pulse: The basic infrastructure for external puls measurement via Bluetooth has been added. Precondition is an OSTC with an activated central role. The OSTC will then search for a BLE device with puls measurement service. Reading data and visualization is not implemented yet.
author Ideenmodellierer
date Mon, 28 Jul 2025 18:34:45 +0200
parents 5a690195b6b7
children 5f66e44d69f0
comparison
equal deleted inserted replaced
1031:cd4561c33758 1032:33b91584d827
499 #endif 499 #endif
500 if( bootToBootloader ) 500 if( bootToBootloader )
501 resetToFirmwareUpdate(); 501 resetToFirmwareUpdate();
502 502
503 tCCR_control(); 503 tCCR_control();
504
504 if( tComm_control() )// will stop while loop if tComm Mode started until exit from UART 505 if( tComm_control() )// will stop while loop if tComm Mode started until exit from UART
505 { 506 {
506 createDiveSettings(); 507 createDiveSettings();
507 updateMenu(); 508 updateMenu();
508 ext_flash_write_settings(0); 509 ext_flash_write_settings(0);
530 { 531 {
531 DoHousekeeping = housekeepingFrame(); 532 DoHousekeeping = housekeepingFrame();
532 } 533 }
533 if(DoDisplayRefresh) /* set every 100ms by timer interrupt */ 534 if(DoDisplayRefresh) /* set every 100ms by timer interrupt */
534 { 535 {
536 cv_heartbeat_Control();
537
535 DoDisplayRefresh = 0; 538 DoDisplayRefresh = 0;
536 539
537 updateSetpointStateUsed(); 540 updateSetpointStateUsed();
538 if(stateUsed == stateSimGetPointer()) 541 if(stateUsed == stateSimGetPointer())
539 { 542 {
725 728
726 static void RefreshDisplay() 729 static void RefreshDisplay()
727 { 730 {
728 SStateList status; 731 SStateList status;
729 get_globalStateList(&status); 732 get_globalStateList(&status);
733
734 if((status.base != 0) && (InfoLogger_isUpdated()))
735 {
736 openInfo_Logger();
737 get_globalStateList(&status);
738 }
739
730 switch(status.base) 740 switch(status.base)
731 { 741 {
732 case BaseHome: 742 case BaseHome:
733 tHome_refresh(); 743 tHome_refresh();
734 tM_check_content(); 744 tM_check_content();