/** 
 * @file    debug.c
 * @brief   DEBUG module - variable definitions
 * @author  Eric Xu
 * @date    Oct 15 2025
 * @version 0.0.1
 *
 * @section LICENSES
 * Copyright (C) Morgan Advanced Programmable Systems, Inc.
 */

#include <zephyr/kernel.h>

#include "debug.h"

#ifdef CONFIG_DBG_STATS
atomic_t i2c_transfer_active = ATOMIC_INIT(0);

volatile uint32_t fifo_read_task_counter = 0;
volatile uint32_t read_shot_data_counter = 0;
volatile uint32_t read_into_dummy_counter = 0;
volatile uint32_t fifo_read_FTH_counter = 0;
volatile uint32_t read_shot_data_after_fifo_read_counter = 0;
volatile uint32_t fifo_waterM_total_hit_counter = 0;
volatile uint32_t fifo_waterM_hit_counter = 0;
volatile uint32_t fifo_overrun_counter = 0;
volatile uint32_t unread_words_before_read = 0;
volatile uint32_t unread_words_after_read = 0;
volatile uint32_t max_unread_words_before_read = 0;
volatile uint32_t max_unread_words_after_read = 0;

volatile uint32_t imu_task_during_i2c_counter = 0;
volatile uint32_t fsm_task_counter = 0;
volatile uint32_t fsm_task_during_i2c_counter = 0;
volatile uint32_t event_task_counter = 0;
volatile uint32_t event_task_during_i2c_counter = 0;
#endif
