Renamed HR_C5000 driver sources
This commit is contained in:
parent
5c54de0fac
commit
20930cdc18
|
|
@ -193,7 +193,7 @@ md380_src = src + stm32f405_src + ['platform/drivers/display/HX8353_MDx.c',
|
||||||
'platform/drivers/tones/toneGenerator_MDx.c',
|
'platform/drivers/tones/toneGenerator_MDx.c',
|
||||||
'platform/drivers/baseband/SKY72310.c',
|
'platform/drivers/baseband/SKY72310.c',
|
||||||
'platform/drivers/baseband/radio_MD3x0.c',
|
'platform/drivers/baseband/radio_MD3x0.c',
|
||||||
'platform/drivers/baseband/HR-C5000_MD3x0.c',
|
'platform/drivers/baseband/HR_C5000.c',
|
||||||
'platform/targets/MD-380/platform.c']
|
'platform/targets/MD-380/platform.c']
|
||||||
|
|
||||||
md380_inc = inc + stm32f405_inc + ['platform/targets/MD-380']
|
md380_inc = inc + stm32f405_inc + ['platform/targets/MD-380']
|
||||||
|
|
@ -210,7 +210,7 @@ md390_src = src + stm32f405_src + ['platform/drivers/display/HX8353_MDx.c',
|
||||||
'platform/drivers/tones/toneGenerator_MDx.c',
|
'platform/drivers/tones/toneGenerator_MDx.c',
|
||||||
'platform/drivers/baseband/SKY72310.c',
|
'platform/drivers/baseband/SKY72310.c',
|
||||||
'platform/drivers/baseband/radio_MD3x0.c',
|
'platform/drivers/baseband/radio_MD3x0.c',
|
||||||
'platform/drivers/baseband/HR-C5000_MD3x0.c',
|
'platform/drivers/baseband/HR_C5000.c',
|
||||||
'platform/targets/MD-390/platform.c']
|
'platform/targets/MD-390/platform.c']
|
||||||
|
|
||||||
md390_inc = inc + stm32f405_inc + ['platform/targets/MD-390']
|
md390_inc = inc + stm32f405_inc + ['platform/targets/MD-390']
|
||||||
|
|
|
||||||
|
|
@ -18,12 +18,12 @@
|
||||||
* along with this program; if not, see <http://www.gnu.org/licenses/> *
|
* along with this program; if not, see <http://www.gnu.org/licenses/> *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include "HR-C5000_MD3x0.h"
|
|
||||||
#include <hwconfig.h>
|
#include <hwconfig.h>
|
||||||
#include <interfaces/gpio.h>
|
#include <interfaces/gpio.h>
|
||||||
#include <interfaces/delays.h>
|
#include <interfaces/delays.h>
|
||||||
#include <hwconfig.h>
|
#include <hwconfig.h>
|
||||||
#include <os.h>
|
#include <os.h>
|
||||||
|
#include "HR_C5000.h"
|
||||||
|
|
||||||
const uint8_t initSeq1[] = {0x00, 0x00, 0xFF, 0xB0, 0x00, 0x00, 0x00, 0x00};
|
const uint8_t initSeq1[] = {0x00, 0x00, 0xFF, 0xB0, 0x00, 0x00, 0x00, 0x00};
|
||||||
const uint8_t initSeq2[] =
|
const uint8_t initSeq2[] =
|
||||||
|
|
@ -18,20 +18,21 @@
|
||||||
* along with this program; if not, see <http://www.gnu.org/licenses/> *
|
* along with this program; if not, see <http://www.gnu.org/licenses/> *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#ifndef C5000_MD3x0_H
|
#ifndef HRC5000_H
|
||||||
#define C5000_MD3x0_H
|
#define HRC5000_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Driver for HR_C5000 chip in MD3x0 radios (MD380 and MD390)
|
* Driver for HR_C5000 "baseband" chip.
|
||||||
*
|
*
|
||||||
* WARNING: the PLL and DMR chips share the SPI MOSI line, thus particular care
|
* WARNING: on MD3x0 devices the PLL and DMR chips share the SPI MOSI line,
|
||||||
* has to be put to avoid them stomping reciprocally. This driver does not make
|
* thus particular care has to be put to avoid them stomping reciprocally.
|
||||||
* any check if a SPI transfer is already in progress, deferring the correct bus
|
* This driver does not make any check if a SPI transfer is already in progress,
|
||||||
* management to higher level modules. However, a function returning true if the
|
* deferring the correct bus management to higher level modules. However,
|
||||||
* bus is currently in use by this driver is provided.
|
* a function returning true if the bus is currently in use by this driver is
|
||||||
|
* provided.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -90,4 +91,4 @@ void C5000_stopAnalogTx();
|
||||||
*/
|
*/
|
||||||
bool C5000_spiInUse();
|
bool C5000_spiInUse();
|
||||||
|
|
||||||
#endif /* C5000_MD3x0_H */
|
#endif /* HRC5000_H */
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
#include <ADC1_MDx.h>
|
#include <ADC1_MDx.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "HR-C5000_MD3x0.h"
|
#include "HR_C5000.h"
|
||||||
#include "SKY72310.h"
|
#include "SKY72310.h"
|
||||||
|
|
||||||
static const freq_t IF_FREQ = 49950000; /* Intermediate frequency: 49.95MHz */
|
static const freq_t IF_FREQ = 49950000; /* Intermediate frequency: 49.95MHz */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue