From 6d4ccdeab0b530bfd92e57e4cc7d7f2cf9225314 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 17 Feb 2015 02:09:49 +0100 Subject: moved old hhd70dongle codebase --- software/hhd70dongle.old/util.h | 45 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 software/hhd70dongle.old/util.h (limited to 'software/hhd70dongle.old/util.h') diff --git a/software/hhd70dongle.old/util.h b/software/hhd70dongle.old/util.h new file mode 100644 index 0000000..e93f96f --- /dev/null +++ b/software/hhd70dongle.old/util.h @@ -0,0 +1,45 @@ +/* + * + * mur.sat + * + * Somewhen in the year 20xx, mur.at will have a nano satellite launched + * into a low earth orbit (310 km above the surface of our planet). The + * satellite itself is a TubeSat personal satellite kit, developed and + * launched by interorbital systems. mur.sat is a joint venture of mur.at, + * ESC im Labor and realraum. + * + * Please visit the project hompage at sat.mur.at for further information. + * + * + * Copyright (C) 2012 Bernhard Tittelbach + * + * This file is part of mur.sat. + * + * mur.sat 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 3 of the License, or + * any later version. + * + * mur.sat 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 mur.sat. If not, see . + * + */ + +#ifndef MURSAT_util_h_INCLUDED +#define MURSAT_util_h_INCLUDED + +#define ADCMUX_INTERNALTEMP 0b00100111 +#define ADCMUX_ADC12 0b00100100 + +void reset(void); +void adc_on(void); +void adc_off(void); +uint8_t adc_read(uint8_t mux); +void debug_sprint_int16hex(char *buffer, int16_t num); + +#endif -- cgit v1.2.3