src/occ_405/amec/amec_sensors_centaur.c
// Function Specification
//
// Name: amec_update_centaur_temp_sensors
//
// Description: Updates thermal sensors that have data grabbed by the centaur.
//
// Thread: RealTime Loop
//
// End Function Specification
Function Specification
Name: amec_update_centaur_temp_sensors

Updates thermal sensors that have data grabbed by the centaur.



End Function Specification
Function Specification Name : amec_update_centaur_temp_sensors Updates thermal sensors that have data grabbed by the centaur . End Function Specification
void amec_update_centaur_temp_sensors(void)
{
    uint32_t k, l_hot;
    for(l_hot = 0, k=0; k < MAX_NUM_CENTAURS; k++)
    {
        if(g_amec->proc[0].memctl[k].centaur.centaur_hottest.cur_temp > l_hot)
        {
            l_hot = g_amec->proc[0].memctl[k].centaur.centaur_hottest.cur_temp;
        }
    }
    sensor_update(&g_amec->proc[0].temp2mscent,l_hot);
    AMEC_DBG("HotCentaur=%d\n",l_hot);
    for(l_hot = 0, k=0; k < MAX_NUM_CENTAURS; k++)
    {
        if(g_amec->proc[0].memctl[k].centaur.tempdimmax.sample > l_hot)
        {
            l_hot = g_amec->proc[0].memctl[k].centaur.tempdimmax.sample;
        }
    }
    sensor_update(&g_amec->proc[0].tempdimmthrm,l_hot);
    AMEC_DBG("HotDimm=%d\n",l_hot);
}
void amec_update_centaur_temp_sensors ( void ) { uint32_t k , l_hot ; for ( l_hot = 0 , k = 0 ; k < MAX_NUM_CENTAURS ; k ++ ) { if ( g_amec -> proc [ 0 ] . memctl [ k ] . centaur . centaur_hottest . cur_temp > l_hot ) { l_hot = g_amec -> proc [ 0 ] . memctl [ k ] . centaur . centaur_hottest . cur_temp ; } } sensor_update ( & g_amec -> proc [ 0 ] . temp2mscent , l_hot ) ; AMEC_DBG ( " \n " , l_hot ) ; for ( l_hot = 0 , k = 0 ; k < MAX_NUM_CENTAURS ; k ++ ) { if ( g_amec -> proc [ 0 ] . memctl [ k ] . centaur . tempdimmax . sample > l_hot ) { l_hot = g_amec -> proc [ 0 ] . memctl [ k ] . centaur . tempdimmax . sample ; } } sensor_update ( & g_amec -> proc [ 0 ] . tempdimmthrm , l_hot ) ; AMEC_DBG ( " \n " , l_hot ) ; }
Function Specification
Name: amec_update_centaur_temp_sensors
Function Specification Name : amec_update_centaur_temp_sensors
// ----------------------------------------------------------- // Find hottest temperature from all centaurs for this Proc chip // ----------------------------------------------------------- // -------------------------------------------------------- // Find hottest temperature from all DIMMs for this Proc chip // --------------------------------------------------------