LCOV - code coverage report
Current view: top level - safety/board - fake_stm.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 8 8
Test Date: 2025-03-01 06:35:52 Functions: 100.0 % 3 3

            Line data    Source code
       1              : // minimal code to fake a panda for tests
       2              : #include <stdio.h>
       3              : #include <stdint.h>
       4              : #include <stdlib.h>
       5              : 
       6              : #include "utils.h"
       7              : 
       8              : #define ALLOW_DEBUG
       9              : #define PANDA
      10              : 
      11          160 : void print(const char *a) {
      12          160 :   printf("%s", a);
      13          160 : }
      14              : 
      15           80 : void puth(unsigned int i) {
      16           80 :   printf("%u", i);
      17           80 : }
      18              : 
      19              : typedef struct {
      20              :   uint32_t CNT;
      21              : } TIM_TypeDef;
      22              : 
      23              : TIM_TypeDef timer;
      24              : TIM_TypeDef *MICROSECOND_TIMER = &timer;
      25              : uint32_t microsecond_timer_get(void);
      26              : 
      27      2444367 : uint32_t microsecond_timer_get(void) {
      28      2444367 :   return MICROSECOND_TIMER->CNT;
      29              : }
        

Generated by: LCOV version 2.0-1