Renamed HR_C5000 driver sources

This commit is contained in:
Silvano Seva 2021-01-30 15:06:42 +01:00
parent 5c54de0fac
commit 20930cdc18
4 changed files with 14 additions and 13 deletions

View File

@ -193,7 +193,7 @@ md380_src = src + stm32f405_src + ['platform/drivers/display/HX8353_MDx.c',
'platform/drivers/tones/toneGenerator_MDx.c',
'platform/drivers/baseband/SKY72310.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']
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/baseband/SKY72310.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']
md390_inc = inc + stm32f405_inc + ['platform/targets/MD-390']

View File

@ -18,12 +18,12 @@
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include "HR-C5000_MD3x0.h"
#include <hwconfig.h>
#include <interfaces/gpio.h>
#include <interfaces/delays.h>
#include <hwconfig.h>
#include <os.h>
#include "HR_C5000.h"
const uint8_t initSeq1[] = {0x00, 0x00, 0xFF, 0xB0, 0x00, 0x00, 0x00, 0x00};
const uint8_t initSeq2[] =

View File

@ -18,20 +18,21 @@
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#ifndef C5000_MD3x0_H
#define C5000_MD3x0_H
#ifndef HRC5000_H
#define HRC5000_H
#include <stdint.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
* has to be put to avoid them stomping reciprocally. This driver does not make
* any check if a SPI transfer is already in progress, deferring the correct bus
* management to higher level modules. However, a function returning true if the
* bus is currently in use by this driver is provided.
* WARNING: on MD3x0 devices the PLL and DMR chips share the SPI MOSI line,
* thus particular care has to be put to avoid them stomping reciprocally.
* This driver does not make any check if a SPI transfer is already in progress,
* deferring the correct bus management to higher level modules. However,
* 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();
#endif /* C5000_MD3x0_H */
#endif /* HRC5000_H */

View File

@ -28,7 +28,7 @@
#include <ADC1_MDx.h>
#include <string.h>
#include <stdlib.h>
#include "HR-C5000_MD3x0.h"
#include "HR_C5000.h"
#include "SKY72310.h"
static const freq_t IF_FREQ = 49950000; /* Intermediate frequency: 49.95MHz */