Fix xml file (maybe)
This commit is contained in:
parent
a6d1afb0bf
commit
cd97face0f
@ -1,4 +1,5 @@
|
||||
#include "fan_speeeed.h"
|
||||
#include "uart.h"
|
||||
|
||||
void TCA0_init() {
|
||||
TCA0.SINGLE.INTCTRL = TCA_SINGLE_OVF_bm ;
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
|
||||
#define F_CPU 4E6
|
||||
//#define F_CPU 4E6
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -27,9 +27,6 @@
|
||||
|
||||
|
||||
int main() {
|
||||
|
||||
|
||||
|
||||
read_input_get_RPM();
|
||||
sei();
|
||||
init_uart((uint16_t)9600);
|
||||
|
||||
@ -7,11 +7,7 @@
|
||||
<itemPath>uart.h</itemPath>
|
||||
<itemPath>voltage.h</itemPath>
|
||||
<itemPath>fan_speeeed.h</itemPath>
|
||||
</logicalFolder>
|
||||
<logicalFolder name="ExternalFiles"
|
||||
displayName="Important Files"
|
||||
projectFiles="true">
|
||||
<itemPath>Makefile</itemPath>
|
||||
<itemPath>themistor-temp.h</itemPath>
|
||||
</logicalFolder>
|
||||
<logicalFolder name="LinkerScript"
|
||||
displayName="Linker Files"
|
||||
@ -24,11 +20,14 @@
|
||||
<itemPath>uart.c</itemPath>
|
||||
<itemPath>voltage.c</itemPath>
|
||||
<itemPath>fan_speeeed.c</itemPath>
|
||||
<itemPath>thermistor-temp.c</itemPath>
|
||||
</logicalFolder>
|
||||
<logicalFolder name="ExternalFiles"
|
||||
displayName="Important Files"
|
||||
projectFiles="false">
|
||||
<itemPath>Makefile</itemPath>
|
||||
</logicalFolder>
|
||||
</logicalFolder>
|
||||
<sourceRootList>
|
||||
<Elem>.</Elem>
|
||||
</sourceRootList>
|
||||
<projectmakefile>Makefile</projectmakefile>
|
||||
<confs>
|
||||
<conf name="default" type="2">
|
||||
@ -39,7 +38,7 @@
|
||||
<targetPluginBoard></targetPluginBoard>
|
||||
<platformTool>nEdbgTool</platformTool>
|
||||
<languageToolchain>XC8</languageToolchain>
|
||||
<languageToolchainVersion>2.46</languageToolchainVersion>
|
||||
<languageToolchainVersion>2.45</languageToolchainVersion>
|
||||
<platform>2</platform>
|
||||
</toolsSet>
|
||||
<packs>
|
||||
|
||||
@ -8,9 +8,7 @@
|
||||
<make-project-type>0</make-project-type>
|
||||
<sourceEncoding>ISO-8859-1</sourceEncoding>
|
||||
<make-dep-projects/>
|
||||
<sourceRootList>
|
||||
<sourceRootElem>.</sourceRootElem>
|
||||
</sourceRootList>
|
||||
<sourceRootList/>
|
||||
<confList>
|
||||
<confElem>
|
||||
<name>default</name>
|
||||
|
||||
@ -39,15 +39,3 @@ uint16_t internal_voltage_read() {
|
||||
|
||||
VREF.ADC0REF = VREF_REFSEL_VDD_gc;
|
||||
}
|
||||
|
||||
uint16_t diode_voltage_read(){
|
||||
/* Gets value for the diode */
|
||||
uint8_t adcVal = ADC0_read();
|
||||
return adcVal;
|
||||
}
|
||||
uint16_t internal_voltage_read() {
|
||||
/* Gets value for the internal voltage reffreance*/
|
||||
|
||||
VREF.ADC0REF = VREF_REFSEL_VDD_gc;
|
||||
return VREF_REFSEL_VDD_gc;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user