<commit_before>////////////////////////////////////////////////////////////////////////////////
/// @file
/// @brief Monitor Host status and annunciate FMU status.
////////////////////////////////////////////////////////////////////////////////

// *****************************************************************************
// ************************** System Include Files *****************************
// *****************************************************************************

// *****************************************************************************
// ************************** User Include Files *******************************
// *****************************************************************************

#include "status.h"
#include "fmucomm.h"
#include "coretime.h"
#include "adc.h"
#include "emc1412.h"
#include "can.h"

// *****************************************************************************
// ************************** Defines ******************************************
// *****************************************************************************

// The node type of the FMU. 0 = FMU, 1 = Servo-Node.
#define STATUS_FMU_NODE_TYPE 0

// *****************************************************************************
// ************************** Definitions **************************************
// *****************************************************************************

/// Structure defining space for storage of a serial number.
///
/// @note The tool used for programming the serial number has a minimum flash
///       size (0x200) for preserving flash memory (i.e. a flash row size).  
///       The serial number is spare padded to this minimum required size to
///       interface with the tool.
///
typedef struct
{
    uint32_t val;
    
    uint8_t spare[ 508 ];
    
} STATUS_SERIAL_NUM_S;

/// The node type - value of '0' identifies node as a FMU node.
static const uint8_t  status_node_type  = 0;

static const uint8_t  status_fw_rev_ver = 0;    ///< Firmware revision version number.
static const uint8_t  status_fw_min_ver = 2;    ///< Firmware minor version number.
static const uint8_t  status_fw_maj_ver = 1;    ///< Firmware major version number.

static const uint8_t  status_hw_rev_ver = 0;    ///< Hardware revision version number.
static const uint8_t  status_hw_min_ver = 0;    ///< Hardware minor version number.
static const uint8_t  status_hw_maj_ver = 1;    ///< Hardware major version number.

/// The serial number - set during initial programming.
///
/// @note The serial number is set to the starting address of Program
///       memory.
///
static const STATUS_SERIAL_NUM_S __attribute__((space(prog), address(0x9D000000))) status_serial_num;

/// Data from Host Heartbeat Ethernet message.
static FMUCOMM_HOST_HEARTBEAT_PL status_host_hb_data;
<commit_msg>Update firmware revision for release, and update hardware revision for depopulating of SPI to radio serial resistors.<commit_after>////////////////////////////////////////////////////////////////////////////////
/// @file
/// @brief Monitor Host status and annunciate FMU status.
////////////////////////////////////////////////////////////////////////////////

// *****************************************************************************
// ************************** System Include Files *****************************
// *****************************************************************************

// *****************************************************************************
// ************************** User Include Files *******************************
// *****************************************************************************

#include "status.h"
#include "fmucomm.h"
#include "coretime.h"
#include "adc.h"
#include "emc1412.h"
#include "can.h"

// *****************************************************************************
// ************************** Defines ******************************************
// *****************************************************************************

// The node type of the FMU. 0 = FMU, 1 = Servo-Node.
#define STATUS_FMU_NODE_TYPE 0

// *****************************************************************************
// ************************** Definitions **************************************
// *****************************************************************************

/// Structure defining space for storage of a serial number.
///
/// @note The tool used for programming the serial number has a minimum flash
///       size (0x200) for preserving flash memory (i.e. a flash row size).  
///       The serial number is spare padded to this minimum required size to
///       interface with the tool.
///
typedef struct
{
    uint32_t val;
    
    uint8_t spare[ 508 ];
    
} STATUS_SERIAL_NUM_S;

/// The node type - value of '0' identifies node as a FMU node.
static const uint8_t  status_node_type  = 0;

static const uint8_t  status_fw_rev_ver = 1;    ///< Firmware revision version number.
static const uint8_t  status_fw_min_ver = 2;    ///< Firmware minor version number.
static const uint8_t  status_fw_maj_ver = 1;    ///< Firmware major version number.

static const uint8_t  status_hw_rev_ver = 1;    ///< Hardware revision version number.
static const uint8_t  status_hw_min_ver = 0;    ///< Hardware minor version number.
static const uint8_t  status_hw_maj_ver = 1;    ///< Hardware major version number.

/// The serial number - set during initial programming.
///
/// @note The serial number is set to the starting address of Program
///       memory.
///
static const STATUS_SERIAL_NUM_S __attribute__((space(prog), address(0x9D000000))) status_serial_num;

/// Data from Host Heartbeat Ethernet message.
static FMUCOMM_HOST_HEARTBEAT_PL status_host_hb_data;

{'fraction_non_alphanumeric': 0.4181316787314719, 'fraction_numerical': 0.013788348845225784, 'mean_word_length': 3.519470404984424, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1943301', 'n_tokens_mistral': 1446, 'n_tokens_neox': 1292, 'n_words': 428}