X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Flib%2Fbcm2835.h;fp=src%2Flib%2Fbcm2835.h;h=84c1f2dc079211a5c479cf24da86d6fd031a8885;hp=0000000000000000000000000000000000000000;hb=ca30742ed33315bdd0620d7a6ef417ab7405a0ba;hpb=a2bce14963ee379e9f5b5e745304129b651e7352 diff --git a/src/lib/bcm2835.h b/src/lib/bcm2835.h new file mode 100644 index 0000000..84c1f2d --- /dev/null +++ b/src/lib/bcm2835.h @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2017 jeanfi@gmail.com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301 USA + */ + +/* + * Retrieve temperature from the chip BCM2835 which is mostly + * used by the Raspberry PI3 and not support by lmsensor. + */ +#ifndef _PSENSOR_BCM2835_H_ +#define _PSENSOR_BCM2835_H_ + +#include +#include + +static inline bool bcm2835_is_supported(void) { return true; } + +void bcm2835_psensor_list_update(struct psensor **); +void bcm2835_psensor_list_append(struct psensor ***, int); +void bcm2835_cleanup(void); + +#endif