mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-01-15 06:45:05 +00:00
update
This commit is contained in:
parent
2afb530e8b
commit
44e5c82cdc
8 changed files with 57 additions and 31 deletions
|
@ -20,7 +20,12 @@
|
||||||
</configurations>
|
</configurations>
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="cea36e80-e289-4d69-9030-7186d540ac0e" name="更改" comment="110" />
|
<list default="true" id="cea36e80-e289-4d69-9030-7186d540ac0e" name="更改" comment="中英文字符对齐">
|
||||||
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/app.c" beforeDir="false" afterPath="$PROJECT_DIR$/app/app.c" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/driver/bk4819.c" beforeDir="false" afterPath="$PROJECT_DIR$/driver/bk4819.c" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/ui/helper.c" beforeDir="false" afterPath="$PROJECT_DIR$/ui/helper.c" afterDir="false" />
|
||||||
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
|
@ -216,20 +221,10 @@
|
||||||
<workItem from="1702175521208" duration="2000" />
|
<workItem from="1702175521208" duration="2000" />
|
||||||
<workItem from="1702774207484" duration="5418000" />
|
<workItem from="1702774207484" duration="5418000" />
|
||||||
<workItem from="1702793061935" duration="4377000" />
|
<workItem from="1702793061935" duration="4377000" />
|
||||||
</task>
|
<workItem from="1702805980399" duration="8706000" />
|
||||||
<task id="LOCAL-00039" summary="MDC RX">
|
<workItem from="1702888356614" duration="3552000" />
|
||||||
<created>1701690633183</created>
|
<workItem from="1702896385700" duration="1302000" />
|
||||||
<option name="number" value="00039" />
|
<workItem from="1702910927065" duration="2432000" />
|
||||||
<option name="presentableId" value="LOCAL-00039" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1701690633183</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00040" summary="MDC RX">
|
|
||||||
<created>1701691499718</created>
|
|
||||||
<option name="number" value="00040" />
|
|
||||||
<option name="presentableId" value="LOCAL-00040" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1701691499718</updated>
|
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00041" summary="MDC RX">
|
<task id="LOCAL-00041" summary="MDC RX">
|
||||||
<created>1701692190748</created>
|
<created>1701692190748</created>
|
||||||
|
@ -560,7 +555,21 @@
|
||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1702798230173</updated>
|
<updated>1702798230173</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="88" />
|
<task id="LOCAL-00088" summary="中英文字符对齐">
|
||||||
|
<created>1702808870233</created>
|
||||||
|
<option name="number" value="00088" />
|
||||||
|
<option name="presentableId" value="LOCAL-00088" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1702808870234</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00089" summary="中英文字符对齐">
|
||||||
|
<created>1702809094564</created>
|
||||||
|
<option name="number" value="00089" />
|
||||||
|
<option name="presentableId" value="LOCAL-00089" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1702809094564</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="90" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TypeScriptGeneratedFilesManager">
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
|
@ -587,7 +596,6 @@
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="VcsManagerConfiguration">
|
<component name="VcsManagerConfiguration">
|
||||||
<MESSAGE value="修复切换调制模式时亚音消失问题" />
|
|
||||||
<MESSAGE value="按键锁定改回以前逻辑" />
|
<MESSAGE value="按键锁定改回以前逻辑" />
|
||||||
<MESSAGE value="mdc tx end test" />
|
<MESSAGE value="mdc tx end test" />
|
||||||
<MESSAGE value="test create" />
|
<MESSAGE value="test create" />
|
||||||
|
@ -612,6 +620,7 @@
|
||||||
<MESSAGE value="MDC PY" />
|
<MESSAGE value="MDC PY" />
|
||||||
<MESSAGE value="赞助" />
|
<MESSAGE value="赞助" />
|
||||||
<MESSAGE value="110" />
|
<MESSAGE value="110" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="110" />
|
<MESSAGE value="中英文字符对齐" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="中英文字符对齐" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
|
@ -46,11 +46,9 @@ static const uint8_t U8RssiMap[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static const uint16_t scanStepValues[] = {
|
static const uint16_t scanStepValues[] = {
|
||||||
1, 10, 50, 100,
|
1, 10, 50, 100, 250, 500, 625, 833,
|
||||||
|
1000, 1250, 1500, 2000, 2500, 5000, 10000,
|
||||||
250, 500, 625, 833, 1000, 1250, 2500, 10000,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const uint16_t scanStepBWRegValues[] = {
|
static const uint16_t scanStepBWRegValues[] = {
|
||||||
// RX RXw TX BW
|
// RX RXw TX BW
|
||||||
// 0b0 000 000 001 01 1000
|
// 0b0 000 000 001 01 1000
|
||||||
|
@ -111,7 +109,10 @@ typedef enum ScanStep {
|
||||||
S_STEP_8_33kHz,
|
S_STEP_8_33kHz,
|
||||||
S_STEP_10_0kHz,
|
S_STEP_10_0kHz,
|
||||||
S_STEP_12_5kHz,
|
S_STEP_12_5kHz,
|
||||||
|
S_STEP_15_0kHz,
|
||||||
|
S_STEP_20_0kHz,
|
||||||
S_STEP_25_0kHz,
|
S_STEP_25_0kHz,
|
||||||
|
S_STEP_50_0kHz,
|
||||||
S_STEP_100_0kHz,
|
S_STEP_100_0kHz,
|
||||||
} ScanStep;
|
} ScanStep;
|
||||||
|
|
||||||
|
|
|
@ -488,8 +488,9 @@ void BK4819_SetCTCSSFrequency(uint32_t FreqControlWord)
|
||||||
// Enable Auto CDCSS Bw Mode
|
// Enable Auto CDCSS Bw Mode
|
||||||
// Enable Auto CTCSS Bw Mode
|
// Enable Auto CTCSS Bw Mode
|
||||||
// CTCSS/CDCSS Tx Gain1 Tuning = 74
|
// CTCSS/CDCSS Tx Gain1 Tuning = 74
|
||||||
//
|
//亚音
|
||||||
Config = 0x904A; // 1 0 0 1 0 0 0 0 0 1001010
|
// Config = 0x904A; // 1 0 0 1 0 0 0 0 0 1001010
|
||||||
|
Config = 0x9033;
|
||||||
}
|
}
|
||||||
BK4819_WriteRegister(BK4819_REG_51, Config);
|
BK4819_WriteRegister(BK4819_REG_51, Config);
|
||||||
|
|
||||||
|
@ -1421,7 +1422,10 @@ void BK4819_GenTail(uint8_t Tail)
|
||||||
void BK4819_EnableCDCSS(void)
|
void BK4819_EnableCDCSS(void)
|
||||||
{
|
{
|
||||||
BK4819_GenTail(0); // CTC134
|
BK4819_GenTail(0); // CTC134
|
||||||
BK4819_WriteRegister(BK4819_REG_51, 0x804A);
|
//亚音
|
||||||
|
// BK4819_WriteRegister(BK4819_REG_51, 0x804A);
|
||||||
|
BK4819_WriteRegister(BK4819_REG_51, 0x8033);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void BK4819_EnableCTCSS(void)
|
void BK4819_EnableCTCSS(void)
|
||||||
|
@ -1470,8 +1474,10 @@ void BK4819_EnableCTCSS(void)
|
||||||
// <6:0> 0 CTCSS/CDCSS Tx Gain1 Tuning
|
// <6:0> 0 CTCSS/CDCSS Tx Gain1 Tuning
|
||||||
// 0 = min
|
// 0 = min
|
||||||
// 127 = max
|
// 127 = max
|
||||||
|
//亚音
|
||||||
|
// BK4819_WriteRegister(BK4819_REG_51, 0x904A); // 1 0 0 1 0 0 0 0 0 1001010
|
||||||
|
BK4819_WriteRegister(BK4819_REG_51, 0x9033); // 1 0 0 1 0 0 0 0 0 1001010
|
||||||
|
|
||||||
BK4819_WriteRegister(BK4819_REG_51, 0x904A); // 1 0 0 1 0 0 0 0 0 1001010
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t BK4819_GetRSSI(void)
|
uint16_t BK4819_GetRSSI(void)
|
||||||
|
|
|
@ -80,19 +80,22 @@ const uint16_t gStepFrequencyTable[] = {
|
||||||
[STEP_0_5kHz] = 50,
|
[STEP_0_5kHz] = 50,
|
||||||
[STEP_1kHz] = 100,
|
[STEP_1kHz] = 100,
|
||||||
[STEP_1_25kHz] = 125,
|
[STEP_1_25kHz] = 125,
|
||||||
|
[STEP_9kHz] = 900,
|
||||||
[STEP_15kHz] = 1500,
|
[STEP_15kHz] = 1500,
|
||||||
|
[STEP_20kHz] = 2000,
|
||||||
[STEP_30kHz] = 3000,
|
[STEP_30kHz] = 3000,
|
||||||
[STEP_50kHz] = 5000,
|
[STEP_50kHz] = 5000,
|
||||||
[STEP_100kHz] = 10000,
|
[STEP_100kHz] = 10000,
|
||||||
[STEP_125kHz] = 12500,
|
[STEP_125kHz] = 12500,
|
||||||
|
[STEP_200kHz] = 20000,
|
||||||
[STEP_250kHz] = 25000,
|
[STEP_250kHz] = 25000,
|
||||||
[STEP_500kHz] = 50000
|
[STEP_500kHz] = 50000
|
||||||
};
|
};
|
||||||
|
|
||||||
const STEP_Setting_t StepSortedIndexes[] = {
|
const STEP_Setting_t StepSortedIndexes[] = {
|
||||||
STEP_0_01kHz, STEP_0_05kHz, STEP_0_1kHz, STEP_0_25kHz, STEP_0_5kHz, STEP_1kHz, STEP_1_25kHz, STEP_2_5kHz, STEP_5kHz, STEP_6_25kHz,
|
STEP_0_01kHz, STEP_0_05kHz, STEP_0_1kHz, STEP_0_25kHz, STEP_0_5kHz, STEP_1kHz, STEP_1_25kHz, STEP_2_5kHz, STEP_5kHz, STEP_6_25kHz,
|
||||||
STEP_8_33kHz, STEP_10kHz, STEP_12_5kHz, STEP_15kHz, STEP_25kHz, STEP_30kHz, STEP_50kHz, STEP_100kHz,
|
STEP_8_33kHz, STEP_9kHz, STEP_10kHz, STEP_12_5kHz, STEP_15kHz, STEP_20kHz, STEP_25kHz, STEP_30kHz, STEP_50kHz, STEP_100kHz,
|
||||||
STEP_125kHz, STEP_250kHz, STEP_500kHz
|
STEP_125kHz, STEP_200kHz, STEP_250kHz, STEP_500kHz
|
||||||
};
|
};
|
||||||
|
|
||||||
STEP_Setting_t FREQUENCY_GetStepIdxFromSortedIdx(uint8_t sortedIdx)
|
STEP_Setting_t FREQUENCY_GetStepIdxFromSortedIdx(uint8_t sortedIdx)
|
||||||
|
|
|
@ -43,6 +43,7 @@ typedef enum {
|
||||||
|
|
||||||
extern const freq_band_table_t frequencyBandTable[];
|
extern const freq_band_table_t frequencyBandTable[];
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
// standard steps
|
||||||
STEP_2_5kHz,
|
STEP_2_5kHz,
|
||||||
STEP_5kHz,
|
STEP_5kHz,
|
||||||
STEP_6_25kHz,
|
STEP_6_25kHz,
|
||||||
|
@ -50,6 +51,7 @@ typedef enum {
|
||||||
STEP_12_5kHz,
|
STEP_12_5kHz,
|
||||||
STEP_25kHz,
|
STEP_25kHz,
|
||||||
STEP_8_33kHz,
|
STEP_8_33kHz,
|
||||||
|
// custom steps
|
||||||
STEP_0_01kHz,
|
STEP_0_01kHz,
|
||||||
STEP_0_05kHz,
|
STEP_0_05kHz,
|
||||||
STEP_0_1kHz,
|
STEP_0_1kHz,
|
||||||
|
@ -57,11 +59,14 @@ typedef enum {
|
||||||
STEP_0_5kHz,
|
STEP_0_5kHz,
|
||||||
STEP_1kHz,
|
STEP_1kHz,
|
||||||
STEP_1_25kHz,
|
STEP_1_25kHz,
|
||||||
|
STEP_9kHz,
|
||||||
STEP_15kHz,
|
STEP_15kHz,
|
||||||
|
STEP_20kHz,
|
||||||
STEP_30kHz,
|
STEP_30kHz,
|
||||||
STEP_50kHz,
|
STEP_50kHz,
|
||||||
STEP_100kHz,
|
STEP_100kHz,
|
||||||
STEP_125kHz,
|
STEP_125kHz,
|
||||||
|
STEP_200kHz,
|
||||||
STEP_250kHz,
|
STEP_250kHz,
|
||||||
STEP_500kHz,
|
STEP_500kHz,
|
||||||
STEP_N_ELEM
|
STEP_N_ELEM
|
||||||
|
|
|
@ -41,6 +41,8 @@
|
||||||
| 豫BG6OIJ | 支付宝打赏 | ¥9.90 | 2023-12-17 |
|
| 豫BG6OIJ | 支付宝打赏 | ¥9.90 | 2023-12-17 |
|
||||||
| *转 | 微信打赏 | ¥6.66 | 2023-12-17 |
|
| *转 | 微信打赏 | ¥6.66 | 2023-12-17 |
|
||||||
| *了 | 微信打赏 | ¥5.00 | 2023-12-17 |
|
| *了 | 微信打赏 | ¥5.00 | 2023-12-17 |
|
||||||
|
| 大磊 | 微信打赏 | ¥0.10 | 2023-12-17 |
|
||||||
|
| sal | 微信打赏 | **¥100.00** | 2023-12-18 |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -136,7 +136,7 @@ void SETTINGS_InitEEPROM(void)
|
||||||
gEeprom.VOICE_PROMPT = (Data[0] < 3) ? Data[0] : VOICE_PROMPT_ENGLISH;
|
gEeprom.VOICE_PROMPT = (Data[0] < 3) ? Data[0] : VOICE_PROMPT_ENGLISH;
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_RSSI_BAR
|
#ifdef ENABLE_RSSI_BAR
|
||||||
if((Data[1] < 200 && Data[1] > 90) && (Data[2] < Data[1]-9 && Data[2] > 50)) {
|
if((Data[1] < 200 && Data[1] > 90) && (Data[2] < Data[1]-9 && Data[1] < 160 && Data[2] > 50)) {
|
||||||
gEeprom.S0_LEVEL = Data[1];
|
gEeprom.S0_LEVEL = Data[1];
|
||||||
gEeprom.S9_LEVEL = Data[2];
|
gEeprom.S9_LEVEL = Data[2];
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,7 +117,7 @@ void UI_PrintStringSmall(const char *pString, uint8_t Start, uint8_t End, uint8_
|
||||||
|
|
||||||
else if (chn_flag[j] != 255) {
|
else if (chn_flag[j] != 255) {
|
||||||
flag_move = 1;
|
flag_move = 1;
|
||||||
sum_pixel += 12;
|
sum_pixel += 13;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ void UI_PrintStringSmall(const char *pString, uint8_t Start, uint8_t End, uint8_
|
||||||
}
|
}
|
||||||
memcpy(pFb + now_pixel + 1, &gFontChinese[0], 11);
|
memcpy(pFb + now_pixel + 1, &gFontChinese[0], 11);
|
||||||
memcpy(pFb1 + now_pixel + 1, &gFontChinese[11], 11);
|
memcpy(pFb1 + now_pixel + 1, &gFontChinese[11], 11);
|
||||||
now_pixel += 12;
|
now_pixel += 13;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue