Correct typo

This commit is contained in:
phl0 2017-01-19 21:54:21 +01:00
parent 1e7c06de45
commit eab91cca3a
No known key found for this signature in database
GPG Key ID: 48EA1E640798CA9A
1 changed files with 7 additions and 7 deletions

View File

@ -65,8 +65,8 @@ EXT_CLK PA15 input
#define PORT_P25 GPIOD #define PORT_P25 GPIOD
#define RCC_Per_P25 RCC_AHB1Periph_GPIOD #define RCC_Per_P25 RCC_AHB1Periph_GPIOD
#define PIN_DSTARcw GPIO_Pin_12 #define PIN_DSTAR GPIO_Pin_12
#define PORT_DSTARcw GPIOD #define PORT_DSTAR GPIOD
#define RCC_Per_DSTAR RCC_AHB1Periph_GPIOD #define RCC_Per_DSTAR RCC_AHB1Periph_GPIOD
#define PIN_DMR GPIO_Pin_13 #define PIN_DMR GPIO_Pin_13
@ -316,7 +316,7 @@ EXT_CLK PB8 input
const uint16_t DC_OFFSET = 2048U; const uint16_t DC_OFFSET = 2048U;
// Sampling frequency // Sampling frequency
#define SAMP_FREQ 24000 #define SAMP_FREQ 24000
extern "C" { extern "C" {
@ -500,7 +500,7 @@ void CIO::startInt()
// TIM2 output frequency // TIM2 output frequency
#if defined(EXTERNAL_OSC) #if defined(EXTERNAL_OSC)
timerInitStructure.TIM_Prescaler = (uint16_t) ((EXTERNAL_OSC/(2*SAMP_FREQ)) - 1); timerInitStructure.TIM_Prescaler = (uint16_t) ((EXTERNAL_OSC/(2*SAMP_FREQ)) - 1);
#else #else
timerInitStructure.TIM_Prescaler = (uint16_t) ((SystemCoreClock/(4*SAMP_FREQ)) - 1); timerInitStructure.TIM_Prescaler = (uint16_t) ((SystemCoreClock/(4*SAMP_FREQ)) - 1);
#endif #endif
@ -547,7 +547,7 @@ void CIO::interrupt()
DAC_SetChannel2Data(DAC_Align_12b_R, sample); DAC_SetChannel2Data(DAC_Align_12b_R, sample);
#else #else
DAC_SetChannel1Data(DAC_Align_12b_R, sample); DAC_SetChannel1Data(DAC_Align_12b_R, sample);
#endif #endif
// Read value from ADC1 and ADC2 // Read value from ADC1 and ADC2
if ((ADC_GetFlagStatus(ADC1, ADC_FLAG_EOC) == RESET)) { if ((ADC_GetFlagStatus(ADC1, ADC_FLAG_EOC) == RESET)) {
@ -595,7 +595,7 @@ void CIO::setDStarInt(bool on)
GPIO_WriteBit(PORT_DSTAR, PIN_DSTAR, on ? Bit_SET : Bit_RESET); GPIO_WriteBit(PORT_DSTAR, PIN_DSTAR, on ? Bit_SET : Bit_RESET);
} }
void CIO::setDMRInt(bool on) void CIO::setDMRInt(bool on)
{ {
GPIO_WriteBit(PORT_DMR, PIN_DMR, on ? Bit_SET : Bit_RESET); GPIO_WriteBit(PORT_DMR, PIN_DMR, on ? Bit_SET : Bit_RESET);
} }
@ -605,7 +605,7 @@ void CIO::setYSFInt(bool on)
GPIO_WriteBit(PORT_YSF, PIN_YSF, on ? Bit_SET : Bit_RESET); GPIO_WriteBit(PORT_YSF, PIN_YSF, on ? Bit_SET : Bit_RESET);
} }
void CIO::setP25Int(bool on) void CIO::setP25Int(bool on)
{ {
GPIO_WriteBit(PORT_P25, PIN_P25, on ? Bit_SET : Bit_RESET); GPIO_WriteBit(PORT_P25, PIN_P25, on ? Bit_SET : Bit_RESET);
} }