#include <stdlib.h>
#include <string.h>
 
#include "mcu.h"
 
#define EXECUTION_TIME_US 500
 
#define GET_TEMPERATURE_EP  12
#define SEND_TEMPERATURE_EP 13
 
static uint32_t m_temperature = 0;
 
uint32_t send_temperature(void)
{
        .
bytes = (
const uint8_t *) &m_temperature,
 
        .num_bytes = sizeof(m_temperature),
        .src_endpoint = SEND_TEMPERATURE_EP,
        .dest_endpoint = SEND_TEMPERATURE_EP,
    };
 
 
}
 
 
static void temp_interrupt_handler(void)
{
    NRF_TEMP->INTENCLR = 1;
    if (NRF_TEMP->EVENTS_DATARDY != 0)
    {
        m_temperature = NRF_TEMP->TEMP;
    }
    else
    {
        m_temperature = 0;
    }
 
    
                                    EXECUTION_TIME_US);
}
 
                        const shared_data_item_t * item,
{
    (void) item;
    (void) data;
 
    m_temperature = 0;
    NRF_TEMP->TASKS_START = 1;
    NRF_TEMP->INTENSET = 1;
}
 
static shared_data_item_t unicast_packets_filter =
{
    .cb = unicastDataReceivedCb,
    .filter = {
        
        .src_endpoint = -1,
        .dest_endpoint = GET_TEMPERATURE_EP,
        .multicast_cb = NULL
    }
};
 
{
    (void) functions;
 
    
    {
        
        
        return;
    }
 
    
 
    
 
    
    lib_state->startStack();
}