diff options
author | Bernhard Tittelbach <xro@realraum.at> | 2012-05-20 02:06:37 +0000 |
---|---|---|
committer | Bernhard Tittelbach <xro@realraum.at> | 2012-05-20 02:06:37 +0000 |
commit | d8865081d540d846bf83364724fd58e4428d2e29 (patch) | |
tree | 6dbc5933c27b7ebe9d4403a4eb14cd80c113ac6f /software | |
parent | fix write register bug (diff) |
../..
git-svn-id: https://svn.spreadspace.org/mur.sat@447 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software')
-rw-r--r-- | software/hhd70dongle/c1101lib.c | 2 | ||||
-rw-r--r-- | software/hhd70dongle/hhd70dongle.c | 21 |
2 files changed, 4 insertions, 19 deletions
diff --git a/software/hhd70dongle/c1101lib.c b/software/hhd70dongle/c1101lib.c index 9030f66..1b463ab 100644 --- a/software/hhd70dongle/c1101lib.c +++ b/software/hhd70dongle/c1101lib.c @@ -244,7 +244,7 @@ void c1101_init(void) //c1101_setFrequency(1091741,0,15); } -//f_XOSC = 25,978016865 Mhz +//f_XOSC = 26Mhz // freq: desired_carrier_freq [Hz] *2^16 / f_XOSC // freq_offset: desired frequency offset [Hz] *2^14 / f_XOSC // if_freq: desired intermidiate rx frequency [Hz] *2^10 / f_XOSC diff --git a/software/hhd70dongle/hhd70dongle.c b/software/hhd70dongle/hhd70dongle.c index 030e6c0..bc62dea 100644 --- a/software/hhd70dongle/hhd70dongle.c +++ b/software/hhd70dongle/hhd70dongle.c @@ -83,37 +83,22 @@ int main(void) //~ { //~ led_on(); //~ usb_rawhid_send((uint8_t*)"RX: GDO2 pin HIGH",100); + //~ usb_rawhid_send((uint8_t*)"c1101 rx bytes:",255); //~ debug_sprint_int16hex(write_buffer, c1101_spi_read_register(SPIC1101_ADDR_RXBYTES)); //~ usb_rawhid_send(write_buffer,255); - //~ //usb_rawhid_send((uint8_t*)"c1101 IOCFG2:",255); //~ c1101_recieveData(); //~ led_off(); //~ } - //~ usb_rawhid_send((uint8_t*)"c1101 rssi:",255); + usb_rawhid_send((uint8_t*)"c1101 rssi:",255); debug_sprint_int16hex(write_buffer, c1101_spi_read_register(SPIC1101_ADDR_RSSI)); usb_rawhid_send(write_buffer,255); - usb_rawhid_send((uint8_t*)"c1101 tx bytes:",255); + //~ usb_rawhid_send((uint8_t*)"c1101 tx bytes:",255); //~ debug_sprint_int16hex(write_buffer, c1101_spi_read_register(SPIC1101_ADDR_TXBYTES)); //~ usb_rawhid_send(write_buffer,255); //~ usb_rawhid_send((uint8_t*)"c1101 rx bytes:",255); //~ debug_sprint_int16hex(write_buffer, c1101_spi_read_register(SPIC1101_ADDR_RXBYTES)); //~ usb_rawhid_send(write_buffer,255); - //~ //usb_rawhid_send((uint8_t*)"c1101 IOCFG2:",255); - //~ //debug_sprint_int16hex(write_buffer, c1101_spi_read_register(SPIC1101_ADDR_IOCFG2)); - //~ //usb_rawhid_send(write_buffer,255); - //~ //usb_rawhid_send((uint8_t*)"c1101 IOCFG1:",255); - //~ //debug_sprint_int16hex(write_buffer, c1101_spi_read_register(SPIC1101_ADDR_IOCFG1)); - //~ //usb_rawhid_send(write_buffer,255); - //~ //usb_rawhid_send((uint8_t*)"c1101 IOCFG0:",255); - //~ //debug_sprint_int16hex(write_buffer, c1101_spi_read_register(SPIC1101_ADDR_IOCFG0)); - //~ //usb_rawhid_send(write_buffer,255); - //~ //usb_rawhid_send((uint8_t*)"c1101 FIFOTHR:",255); - //~ //debug_sprint_int16hex(write_buffer, c1101_spi_read_register(SPIC1101_ADDR_FIFOTHR)); - //~ //usb_rawhid_send(write_buffer,255); - //~ usb_rawhid_send((uint8_t*)"c1101 PKTLEN:",255); - //~ debug_sprint_int16hex(write_buffer, c1101_spi_read_register(SPIC1101_ADDR_PKTLEN)); - //~ usb_rawhid_send(write_buffer,255); c1101_spi_dump_registers_to_usb(); write_buffer[0]='T'; write_buffer[1]='e'; |