Commit 79d710ae authored by Martin Enriquez's avatar Martin Enriquez

Workspace para los ejemplos

parent f49269a2
!SESSION 2015-11-30 11:21:48.470 -----------------------------------------------
eclipse.buildId=4.5.1.M20150904-0015
java.version=1.7.0_79
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=es_AR
Framework arguments: -product org.eclipse.epp.package.cpp.product
Command-line arguments: -data /home/martin/Documentos/Digitales III/proyecto-digitales/ejemplos-td-2 -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.cpp.product
!ENTRY org.eclipse.cdt.core 1 0 2015-11-30 11:26:06.252
!MESSAGE Indexed 'Remoto-con-8' (3 sources, 24 headers) in 2,56 sec: 596 declarations; 1.656 references; 1 unresolved inclusions; 1 syntax errors; 52 unresolved names (2,3 %)
*** SESSION nov. 30, 2015 11:22:04.27 ------------------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="no"?><SharedRoot><SharedProperty id="" value=""/></SharedRoot>
\ No newline at end of file
11:27:53 **** Incremental Build of configuration Release for project Remoto-con-8 ****
make all
Building file: ../nrf24l01.c
Invoking: AVR Compiler
avr-gcc -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega8 -DF_CPU=8000000UL -MMD -MP -MF"nrf24l01.d" -MT"nrf24l01.o" -c -o "nrf24l01.o" "../nrf24l01.c"
Finished building: ../nrf24l01.c
Building target: Remoto-con-8.elf
Invoking: AVR C Linker
avr-gcc -Wl,-Map,Remoto-con-8.map -mmcu=atmega8 -o "Remoto-con-8.elf" ./main.o ./mcu.o ./nrf24l01.o
Finished building target: Remoto-con-8.elf
Invoking: AVR Create Extended Listing
avr-objdump -h -S Remoto-con-8.elf >"Remoto-con-8.lss"
Finished building: Remoto-con-8.lss
Create Flash image (ihex format)
avr-objcopy -R .eeprom -R .fuse -R .lock -R .signature -O ihex Remoto-con-8.elf "Remoto-con-8.hex"
Finished building: Remoto-con-8.hex
Create eeprom image (ihex format)
avr-objcopy -j .eeprom --no-change-warnings --change-section-lma .eeprom=0 -O ihex Remoto-con-8.elf "Remoto-con-8.eep"
Finished building: Remoto-con-8.eep
Invoking: Print Size
avr-size --format=avr --mcu=atmega8 Remoto-con-8.elf
AVR Memory Usage
----------------
Device: atmega8
Program: 1490 bytes (18.2% Full)
(.text + .data + .bootloader)
Data: 14 bytes (1.4% Full)
(.data + .bss + .noinit)
Finished building: sizedummy
11:27:54 Build Finished (took 695ms)
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<section name="completion_proposal_size">
</section>
<section name="org.eclipse.cdt.ui.text.hover.CMacroExpansionExploration">
</section>
</section>
11:27:53 **** Incremental Build of configuration Release for project Remoto-con-8 ****
make all
Building file: ../nrf24l01.c
Invoking: AVR Compiler
avr-gcc -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega8 -DF_CPU=8000000UL -MMD -MP -MF"nrf24l01.d" -MT"nrf24l01.o" -c -o "nrf24l01.o" "../nrf24l01.c"
Finished building: ../nrf24l01.c
Building target: Remoto-con-8.elf
Invoking: AVR C Linker
avr-gcc -Wl,-Map,Remoto-con-8.map -mmcu=atmega8 -o "Remoto-con-8.elf" ./main.o ./mcu.o ./nrf24l01.o
Finished building target: Remoto-con-8.elf
Invoking: AVR Create Extended Listing
avr-objdump -h -S Remoto-con-8.elf >"Remoto-con-8.lss"
Finished building: Remoto-con-8.lss
Create Flash image (ihex format)
avr-objcopy -R .eeprom -R .fuse -R .lock -R .signature -O ihex Remoto-con-8.elf "Remoto-con-8.hex"
Finished building: Remoto-con-8.hex
Create eeprom image (ihex format)
avr-objcopy -j .eeprom --no-change-warnings --change-section-lma .eeprom=0 -O ihex Remoto-con-8.elf "Remoto-con-8.eep"
Finished building: Remoto-con-8.eep
Invoking: Print Size
avr-size --format=avr --mcu=atmega8 Remoto-con-8.elf
AVR Memory Usage
----------------
Device: atmega8
Program: 1490 bytes (18.2% Full)
(.text + .data + .bootloader)
Data: 14 bytes (1.4% Full)
(.data + .bss + .noinit)
Finished building: sizedummy
avrtarget/ClockFrequency=8000000
avrtarget/ExtRAMSize=0
avrtarget/ExtendedRAM=false
avrtarget/MCUType=atmega328p
avrtarget/UseEEPROM=false
avrtarget/UseExtendedRAMforHeap=true
avrtarget/avrdude/BitBangDelay=
avrtarget/avrdude/Bitclock=
avrtarget/avrdude/EEPROMFile=
avrtarget/avrdude/EEPROMFromConfig=true
avrtarget/avrdude/FlashFile=
avrtarget/avrdude/FlashFromConfig=true
avrtarget/avrdude/NoChipErase=false
avrtarget/avrdude/NoSigCheck=false
avrtarget/avrdude/NoVerify=false
avrtarget/avrdude/NoWrite=false
avrtarget/avrdude/OtherOptions=
avrtarget/avrdude/ProgrammerID=programmerconfig.1
avrtarget/avrdude/UseCounter=false
avrtarget/avrdude/WriteEEPROM=false
avrtarget/avrdude/WriteFlash=true
avrtarget/perConfig=false
eclipse.preferences.version=1
/*
* nRF24L01.c
*
* Created on: 24/08/2014
* Autor: Andrs, Oscar / Corbaln Damin, / Fanelli, Javier
* Brief: Comunicacin inalmrbica con nrF24L01+
*
*
*/
#include "nRF24L01.h"
#include "hardware.h"
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "comunicacion.h"
char WriteByteSPI(unsigned char cData)
{
SPDR = cData;
while(!(SPSR & (1<<SPIF)));
return SPDR;
}
void PCINT12_interrupt_init(void)
{
DDRD &= ~(1 << DDD2); // INT0 (PD2)como entrada
MCUCR |= (1 << ISC01); // INT0 en falling edge
MCUCR &= ~(1 << ISC00);
MCUCR &= ~(1 << ISC10); // INT0 en falling edge
GICR |= (1 << INT0); //Habilito la interrupcin
}
uint8_t GetReg(uint8_t reg) //Funcin para leer un registro reg
{
_delay_us(10);
CSN = 0;
_delay_us(10);
WriteByteSPI(R_REGISTER + reg);
_delay_us(10);
reg = WriteByteSPI(NOP);
_delay_us(10);
CSN = 1;
return reg;
}
uint8_t *WriteToNrf(uint8_t ReadWrite, uint8_t reg, uint8_t *val, uint8_t antVal) //Funcin de lectura o escritura
//"W o R" (Escribir o leer), "reg" (el registro), "*val" (valor a escribir) & "antVal" (cantidad de enteros a escribir)
{
cli();
if (ReadWrite == W)
{
reg = W_REGISTER + reg;
}
static uint8_t ret[dataLen];
_delay_us(10);
CSN = 0;
_delay_us(10);
WriteByteSPI(reg);
_delay_us(10);
int i;
for(i=0; i<antVal; i++)
{
if (ReadWrite == R && reg != W_TX_PAYLOAD)
{
ret[i]=WriteByteSPI(NOP);
_delay_us(10);
}
else
{
WriteByteSPI(val[i]);
_delay_us(10);
}
}
CSN = 1;
sei();
return ret;
}
void nrf24L01_init(void)
{
//_delay_ms(100);
uint8_t val[5];
val[0]=0x03;
WriteToNrf(W, EN_AA, val, 1); //Habilito auto ACK en P0
val[0]=0x2F;
WriteToNrf(W, SETUP_RETR, val, 1); //Configuro la retransmisin con un ARD=705useg y ARC=15
val[0]=0x03;
WriteToNrf(W, EN_RXADDR, val, 1); //Habilito el P0
val[0]=0x03;
WriteToNrf(W, SETUP_AW, val, 1); //Seteo 5 bytes de longitud de direccin
val[0]=FREC_ON_OFF;
WriteToNrf(W, RF_CH, val, 1); //Seteo el canal de frecuencia 2,502 GHz
val[0]=0x26;
WriteToNrf(W, RF_SETUP, val, 1); //Seteo vel de transmisin en 250Kb/s y potencia en 0dBm
int i;
for(i=0; i<5; i++)
{
val[i]=0x12; //Nmero de direccin
}
WriteToNrf(W, RX_ADDR_P0, val, 5); //Cargo la direccin del RX
for(i=0; i<5; i++)
{
val[i]=0x13; //Nmero de direccin
}
WriteToNrf(W, RX_ADDR_P1, val, 5); //Cargo la direccin del RX
for(i=0; i<5; i++)
{
val[i]=0x12; //Nmero de direccin
}
WriteToNrf(W, TX_ADDR, val, 5); //Cargo la direccin del TX
// Configuracin de capacidad de la carga til (payload) - Esttica de 1 - 32 bytes
val[0]=dataLen;
WriteToNrf(W, RX_PW_P0, val, 1);
val[0]=dataLen;
WriteToNrf(W, RX_PW_P1, val, 1);
val[0]=0x7E; //Configuracin de modo, TX=7E - RX=1F
WriteToNrf(W, CONFIG, val, 1);
//_delay_ms(100);
}
void reset(void)
{
_delay_us(10);
CSN = 0;
_delay_us(10);
WriteByteSPI(W_REGISTER + STATUS);
_delay_us(10);
WriteByteSPI(0b01110000);
_delay_us(10);
CSN = 1;
}
void receive_payload(void)
{
sei();
CE = 1;
_delay_ms(1000);
CE = 0;
cli();
}
void transmit_payload(uint8_t * W_buff)
{
WriteToNrf(R, FLUSH_TX, W_buff, 0);
WriteToNrf(R, W_TX_PAYLOAD, W_buff, dataLen);
sei();
_delay_ms(10);
CE = 1;
_delay_ms(1);
CE = 0;
_delay_ms(10);
}
void Modo_TX(void)
{
uint8_t val[5];
val[0]=0x7E; //Configuracin de modo, TX=7E - RX=1F
WriteToNrf(W, CONFIG, val, 1);
CE=0;
}
void Modo_RX(void)
{
uint8_t val[5];
val[0]=0x1F; //Configuracin de modo, TX=7E - RX=1F
WriteToNrf(W, CONFIG, val, 1);
}
void Set_frec(uint8_t frecuencia)
{
uint8_t val[5];
val[0]= frecuencia;
WriteToNrf(W, RF_CH, val, 1);
}
void Cambio_Pipe(unsigned char direccion)
{
uint8_t val[5];
int i;
for(i=0; i<5; i++)
{
val[i]=direccion; //Nmero de direccin
}
WriteToNrf(W, TX_ADDR, val, 5); //Cargo la direccin del TX
}
avrdude/configs/programmerconfig.1/baudrate=
avrdude/configs/programmerconfig.1/description=Default AVRDude Programmer Configuration. Modify as required for your setup.
avrdude/configs/programmerconfig.1/name=USb Tiny
avrdude/configs/programmerconfig.1/otherOptions=
avrdude/configs/programmerconfig.1/port=
avrdude/configs/programmerconfig.1/postAvrdudeDelayMs=
avrdude/configs/programmerconfig.1/ppresetline=
avrdude/configs/programmerconfig.1/ppvccline=
avrdude/configs/programmerconfig.1/programmer=usbtiny
avrdudepropertypage/previewexpanded=false
avrdudepropertypage/weight_preview_collapsed=50
avrdudepropertypage/weight_preview_expanded=20
avrdudepropertypage/weight_top_collapsed=950
avrdudepropertypage/weight_top_expanded=80
avrpaths//systempath/AVRDUDE=/usr/bin
avrpaths//systempath/AVRGCC=/usr/bin
avrpaths//systempath/MAKE=/usr/bin
eclipse.preferences.version=1
eclipse.preferences.version=1
properties/Remoto-con-8.de.innot.avreclipse.project.winavr.elf_2.1.0.1262828699/de.innot.avreclipse.configuration.app.debug.778590158=de.innot.avreclipse.tool.compiler.winavr.app.debug.549760019\=rebuildState\\\=true\\n\nde.innot.avreclipse.tool.archiver.winavr.base.1379298470\=rebuildState\\\=true\\n\nde.innot.avreclipse.tool.objdump.winavr.app.debug.2134030833\=rebuildState\\\=true\\n\nde.innot.avreclipse.tool.cppcompiler.app.debug.1111476749\=rebuildState\\\=true\\n\nde.innot.avreclipse.tool.avrdude.app.debug.1135963343\=rebuildState\\\=true\\n\nde.innot.avreclipse.toolchain.winavr.app.debug.137889296\=rebuildState\\\=true\\n\nde.innot.avreclipse.tool.linker.winavr.app.debug.1433690630\=rebuildState\\\=true\\n\nde.innot.avreclipse.tool.objcopy.eeprom.winavr.app.debug.1636383508\=rebuildState\\\=true\\n\nde.innot.avreclipse.tool.cpplinker.app.debug.585723663\=rebuildState\\\=true\\n\nde.innot.avreclipse.tool.size.winavr.app.debug.1266263190\=rebuildState\\\=true\\n\nde.innot.avreclipse.tool.objcopy.flash.winavr.app.debug.357672161\=rebuildState\\\=true\\n\nde.innot.avreclipse.tool.assembler.winavr.app.debug.1257280941\=rebuildState\\\=true\\n\n
properties/Remoto-con-8.de.innot.avreclipse.project.winavr.elf_2.1.0.1262828699/de.innot.avreclipse.configuration.app.release.1779968999=de.innot.avreclipse.toolchain.winavr.app.release.1312885341\=rebuildState\\\=true\\n\nde.innot.avreclipse.tool.avrdude.app.release.284150720\=rebuildState\\\=false\\n\nde.innot.avreclipse.configuration.app.release.1779968999\=rcState\\\=0\\nrebuildState\\\=false\\n\nde.innot.avreclipse.tool.objcopy.flash.winavr.app.release.514372223\=rebuildState\\\=false\\n\nde.innot.avreclipse.tool.assembler.winavr.app.release.1084032695\=rebuildState\\\=false\\n\nde.innot.avreclipse.tool.cppcompiler.app.release.56821018\=rebuildState\\\=false\\n\nde.innot.avreclipse.tool.cpplinker.app.release.1922873100\=rebuildState\\\=false\\n\nde.innot.avreclipse.tool.linker.winavr.app.release.663633750\=rebuildState\\\=false\\n\nde.innot.avreclipse.tool.compiler.winavr.app.release.267869074\=rebuildState\\\=false\\n\nde.innot.avreclipse.tool.size.winavr.app.release.103266651\=rebuildState\\\=false\\n\nde.innot.avreclipse.tool.archiver.winavr.base.1129623902\=rebuildState\\\=false\\n\nde.innot.avreclipse.tool.objcopy.eeprom.winavr.app.release.813507816\=rebuildState\\\=false\\n\nde.innot.avreclipse.tool.objdump.winavr.app.release.709511077\=rebuildState\\\=false\\n\n
eclipse.preferences.version=1
org.eclipse.mylyn.cdt.ui.run.count.3_3_0=1
content_assist_disabled_computers=org.eclipse.cdt.ui.parserProposalCategory\u0000org.eclipse.cdt.ui.textProposalCategory\u0000
eclipse.preferences.version=1
spelling_locale_initialized=true
useAnnotationsPrefPage=true
useQuickDiffPrefPage=true
GitRepositoriesView.GitDirectories=/home/martin/Documentos/Digitales III/proyecto-digitales/.git\:
eclipse.preferences.version=1
eclipse.preferences.version=1
org.eclipse.mylyn.monitor.activity.tracking.enabled.checked=true
eclipse.preferences.version=1
migrated.task.repositories.secure.store=true
org.eclipse.mylyn.tasks.ui.filters.nonmatching=true
org.eclipse.mylyn.tasks.ui.filters.nonmatching.encouraged=true
eclipse.preferences.version=1
org.eclipse.rse.systemtype.local.systemType.defaultUserId=martin
eclipse.preferences.version=1
org.eclipse.rse.preferences.order.connections=martin-Inspiron-1750.Local
eclipse.preferences.version=1
org.eclipse.team.ui.first_time=false
eclipse.preferences.version=1
overviewRuler_migration=migrated_3.1
PROBLEMS_FILTERS_MIGRATE=true
eclipse.preferences.version=1
platformState=1448890966608
quickStart=false
tipsAndTricks=true
//org.eclipse.ui.commands/state/org.eclipse.ui.navigator.resources.nested.changeProjectPresentation/org.eclipse.ui.commands.radioState=false
eclipse.preferences.version=1
This source diff could not be displayed because it is too large. You can view the blob instead.
 fingerprintactionmessage
problemUrlbugIdbugUrl
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"version": "v1",
"title": "Eclipse.org Error Reporting Server",
"description": "Automated Error Reporting for eclipse.org",
"timestamp": 1448893322380,
"ttl": 20160,
"helpUrl": "https://wiki.eclipse.org/EPP/Logging",
"feedbackUrl": "https://docs.google.com/a/codetrails.com/forms/d/1wd9AzydLv_TMa7ZBXHO7zQIhZjZCJRNMed-6J4fVNsc/viewform",
"aboutUrl": "https://dev.eclipse.org/recommenders/community/confess/#/about",
"submitUrl": "https://dev.eclipse.org/recommenders/community/confess/0.6/reports/",
"maxReportSize": 5242880,
"problemsUrl": "https://www.eclipse.org/downloads/download.php?r\u003d1\u0026file\u003d/technology/epp/logging/problems.zip",
"problemsTtl": 20160,
"queryUrl": "https://dev.eclipse.org/recommenders/community/confess/0.6/query/",
"connectTimeout": 10000,
"socketTimeout": 100000,
"acceptedProducts": [
"org.eclipse.*"
],
"acceptedPlugins": [
"org.eclipse.*",
"org.apache.log4j.*",
"com.codetrails.*"
],
"acceptedPackages": [
"org.eclipse.*",
"org.apache.*",
"java.*",
"javax.*",
"javafx.*",
"sun.*",
"com.sun.*",
"com.codetrails.*",
"com.google.*",
"org.osgi.*",
"ch.qos.*",
"org.slf4j.*"
],
"acceptOtherPackages": true,
"acceptUiFreezes": true,
"ignoredStatuses": [
"org.eclipse.equinox.p2.*::",
"org.eclipse.epp.mpc.ui:java.io.IOException:",
"org.eclipse.epp.mpc.ui:java.net.SocketTimeoutException:",
"org.eclipse.oomph.setup.core:$org.apache.http.ConnectionClosedException:",
"org.eclipse.ui::Conflicting handlers for*",
"org.eclipse.jface:java.io.IOException:Unable to resolve plug-in*",
"org.eclipse.core.runtime::Invalid input url*",
"org.eclipse.core.filesystem::Could not move*",
"org.eclipse.core.filesystem::Could not delete*",
"org.eclipse.pde.core::The current target platform contains errors*",
":org.eclipse.equinox.security.storage.StorageException:",
":org.eclipse.ecf.filetransfer.*:",
":java.net.*:"
],
"problemsZipLastDownloadTimestamp": 1448893353240
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<setup:Workspace
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
name="workspace"/>
# RSE DOM Node
00-name=martin-Inspiron-1750\:local.files
01-type=FilterPool
03-attr.default=true
03-attr.deletable=true
03-attr.id=local.files
03-attr.nonRenamable=false
03-attr.owningParentName=null
03-attr.release=200
03-attr.singleFilterStringOnly=false
03-attr.singleFilterStringOnlyESet=false
03-attr.stringsCaseSensitive=true
03-attr.supportsDuplicateFilterStrings=false
03-attr.supportsNestedFilters=true
03-attr.type=default
06-child.00000.00-name=My Home
06-child.00000.01-type=Filter
06-child.00000.03-attr.default=false
06-child.00000.03-attr.filterType=default
06-child.00000.03-attr.id=My Home
06-child.00000.03-attr.nonChangable=false
06-child.00000.03-attr.nonDeletable=false
06-child.00000.03-attr.nonRenamable=false
06-child.00000.03-attr.promptable=false
06-child.00000.03-attr.relativeOrder=0
06-child.00000.03-attr.release=200
06-child.00000.03-attr.singleFilterStringOnly=false
06-child.00000.03-attr.stringsCaseSensitive=true
06-child.00000.03-attr.stringsNonChangable=false
06-child.00000.03-attr.supportsDuplicateFilterStrings=false
06-child.00000.03-attr.supportsNestedFilters=true
06-child.00000.06-child.00000.00-name=/home/martin/*
06-child.00000.06-child.00000.01-type=FilterString
06-child.00000.06-child.00000.03-attr.default=false
06-child.00000.06-child.00000.03-attr.string=/home/martin/*
06-child.00000.06-child.00000.03-attr.type=default
06-child.00001.00-name=Root
06-child.00001.01-type=Filter
06-child.00001.03-attr.default=false
06-child.00001.03-attr.filterType=default
06-child.00001.03-attr.id=Root
06-child.00001.03-attr.nonChangable=false
06-child.00001.03-attr.nonDeletable=false
06-child.00001.03-attr.nonRenamable=false
06-child.00001.03-attr.promptable=false
06-child.00001.03-attr.relativeOrder=0
06-child.00001.03-attr.release=200
06-child.00001.03-attr.singleFilterStringOnly=false