summaryrefslogtreecommitdiff
path: root/software/hhd70dongle.old/util.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2015-02-17 02:09:49 +0100
committerChristian Pointner <equinox@mur.at>2015-02-17 02:09:49 +0100
commit6d4ccdeab0b530bfd92e57e4cc7d7f2cf9225314 (patch)
tree93e1f9315060ccf31cb8c54a393a62cb7392a006 /software/hhd70dongle.old/util.h
parenthhd70: started refactoring of cc1101 code (diff)
moved old hhd70dongle codebase
Diffstat (limited to 'software/hhd70dongle.old/util.h')
-rw-r--r--software/hhd70dongle.old/util.h45
1 files changed, 45 insertions, 0 deletions
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 <xro@realraum.at>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#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