
Repository for CDMS code
Dependencies: SimpleDMA mbed-rtos mbed eeprom
Fork of COM_MNG_TMTC_SIMPLE by
Revision 286:0f3a2a7ac295, committed 2016-08-03
- Comitter:
- ee12b079
- Date:
- Wed Aug 03 11:52:17 2016 +0000
- Parent:
- 285:fe33b39dd267
- Child:
- 287:a387337491f7
- Commit message:
- Testing SBC
Changed in this revision
DefinitionsAndGlobals.h | Show annotated file Show diff for this revision Revisions of this file |
adf.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/DefinitionsAndGlobals.h Mon Aug 01 22:02:48 2016 +0000 +++ b/DefinitionsAndGlobals.h Wed Aug 03 11:52:17 2016 +0000 @@ -206,6 +206,7 @@ DigitalOut RF_SW_CNTRL_BCN(RF_RELAY_CNTRL_BCN); DigitalOut RF_SW_CNTRL_TX(RF_RELAY_CNTRL_TX); + //COM_RX DigitalOut COM_RX_CNTRL(PIN72); DigitalOut COM_TX_CNTRL(PIN56); @@ -296,7 +297,7 @@ DigitalOut TRXY_EN (PIN84);//TRXY EN DigitalOut TRZ_EN (PIN88);//TRZ EN DigitalOut V_A_EN (PIN99);//TRZ FLT (no INTR capability) -DigitalOut sys_pwr_rst (PIN96);//PTD3 +DigitalOut sys_pwr_rst (PIN46,0);//PTD3 DigitalOut PYLD_DFF (PIN73);//PYLD_SW_PWR_EN_DIS DigitalOut PYLD_DFF_CLK (PIN65);//PL_3V3_EN_CLK
--- a/adf.h Mon Aug 01 22:02:48 2016 +0000 +++ b/adf.h Wed Aug 03 11:52:17 2016 +0000 @@ -7,7 +7,7 @@ bool buffer_state; bool finish_write_data; uint8_t signal = 0x00; -unsigned char bbram_buffer[66]={0x19,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x00,0xF4,0xC2,0x10,0xC0,0x00,0x30,0x31,0x07,0x00,0x01,0x00,0x7F,0x00,0x0B,0x37,0x00,0x00,0x40,0x0C,0x00,0x05,0x00,0x00,0x18,0x12,0x34,0x56,0x20,0x10,0xC4,0x14,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0xE0,0x00,0x10,0x04,0x00,0x00,0x00,0x00,0x00}; +unsigned char bbram_buffer[66]={0x19,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x00,0xF4,0xC2,0x10,0xC0,0x00,0x30,0x31,0x07,0x00,0x01,0x00,/*PA Level Byte*/0x67/*PA Parameters*/,0x00,0x0B,0x37,0x00,0x00,0x40,0x0C,0x00,0x05,0x00,0x00,0x18,0x12,0x34,0x56,0x20,0x10,0xC4,0x14,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0xE0,0x00,0x10,0x04,0x00,0x00,0x00,0x00,0x00}; bool data_irq_err=0; bool data_err= false; unsigned char temp_byte=0x00; @@ -576,6 +576,12 @@ configure_adf;\ send_data;\ CMD(CMD_PHY_TX);\ + /*PA MCR level*/;\ + gCS_ADF=0;\ + spi.write(0x1B);\ + spi.write(0x07);\ + spi.write(0x35);\ + gCS_ADF=1;\ wait_us(2000);\ while(loop_on){\ wait_us(20);\