Adding the avr-rss2 platform based on AtMega256RFR2

This commit is contained in:
Robert Olsson 2016-02-22 20:46:07 +01:00
parent d3980668ee
commit ce8e87d60e
91 changed files with 9349 additions and 0 deletions

View file

@ -0,0 +1,16 @@
/* Copyright Robert Olsson */
#define V_IN_FACTOR 0.006256 /* 6.4/1023 */
#define V_IN_FACTOR_NONE 0.001564 /* 1.6/1023 */
#define SCHOTTKY_DROP 0.29
#define V_IN_FACTOR_SCHOTTKY 0.0292 /* 30.19-SCHOTTKY_DROP/1023 schottky corr */
uint16_t
adc_read(uint8_t pin);
double
adc_read_v_in(void);
double
adc_read_a1(void);
double
adc_read_a2(void);