This follows:
Let's setup OVH RAID with BSD using their Bring Your Own Image (BYOI). Relevant docs:
This follows:
Let's setup OVH RAID with BSD using their Bring Your Own Image (BYOI). Relevant docs:
#include <stdio.h> | |
#include "system.h" | |
#include "altera_avalon_pio_regs.h" | |
#include "sys/alt_irq.h" | |
#define EGM_DISABLE 0 | |
#define EGM_ENABLE 1 | |
#define EGM_ENABLE_REG 0 | |
#define EGM_BUSY_REG 1 | |
#define EGM_PERIOD_REG 2 |
!~ UTCI, Version a 0.002, October 2009 | |
!~ Copyright (C) 2009 Peter Broede | |
!~ Program for calculating UTCI Temperature (UTCI) | |
!~ released for public use after termination of COST Action 730 | |
!~ replaces Version a 0.001, from September 2009 | |
!~ Version History: |
#include <stdio.h> | |
double calc_utci(double temp_air, double temp_rad, double humidity, | |
double wind_spd) | |
{ | |
double t_a = temp_air; | |
double d_t_r = temp_rad - temp_air; | |
double pa = humidity/10.0; /* humidity is in ehPa */ | |
double v = wind_spd; |