修正MDC联系人地址

This commit is contained in:
wu58430 2024-01-07 12:35:42 +08:00
parent 842d62da57
commit c69d3c5a96
4 changed files with 3037 additions and 17 deletions

31
.idea/workspace.xml generated
View file

@ -22,8 +22,9 @@
<component name="ChangeListManager">
<list default="true" id="cea36e80-e289-4d69-9030-7186d540ac0e" name="更改" comment="减少eeprom延时">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/driver/eeprom.c" beforeDir="false" afterPath="$PROJECT_DIR$/driver/eeprom.c" afterDir="false" />
<change beforePath="$PROJECT_DIR$/driver/i2c.c" beforeDir="false" afterPath="$PROJECT_DIR$/driver/i2c.c" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Makefile" beforeDir="false" afterPath="$PROJECT_DIR$/Makefile" afterDir="false" />
<change beforePath="$PROJECT_DIR$/main.c" beforeDir="false" afterPath="$PROJECT_DIR$/main.c" afterDir="false" />
<change beforePath="$PROJECT_DIR$/radio.c" beforeDir="false" afterPath="$PROJECT_DIR$/radio.c" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -88,7 +89,7 @@
"node.js.selected.package.eslint": "(autodetect)",
"node.js.selected.package.tslint": "(autodetect)",
"nodejs_package_manager_path": "npm",
"settings.editor.selected.configurable": "File.Encoding",
"settings.editor.selected.configurable": "language.cpp.clang-tidy",
"structure.view.defaults.are.configured": "true",
"vue.rearranger.settings.migration": "true"
}
@ -191,9 +192,9 @@
<recent_temporary>
<list>
<item itemvalue="Makefile 目标.all" />
<item itemvalue="Makefile 目标.flash" />
<item itemvalue="Makefile 目标.clean" />
<item itemvalue="Makefile 目标.build" />
<item itemvalue="Makefile 目标.flash" />
<item itemvalue="Makefile 目标.debug" />
</list>
</recent_temporary>
@ -262,14 +263,7 @@
<workItem from="1704363500769" duration="5676000" />
<workItem from="1704370562673" duration="1618000" />
<workItem from="1704421657950" duration="14943000" />
<workItem from="1704442479624" duration="7979000" />
</task>
<task id="LOCAL-00058" summary="写频">
<created>1701738979545</created>
<option name="number" value="00058" />
<option name="presentableId" value="LOCAL-00058" />
<option name="project" value="LOCAL" />
<updated>1701738979545</updated>
<workItem from="1704442479624" duration="15616000" />
</task>
<task id="LOCAL-00059" summary="写频">
<created>1701739409050</created>
@ -607,7 +601,14 @@
<option name="project" value="LOCAL" />
<updated>1704451604305</updated>
</task>
<option name="localTasksCounter" value="107" />
<task id="LOCAL-00107" summary="减少eeprom延时">
<created>1704451720350</created>
<option name="number" value="00107" />
<option name="presentableId" value="LOCAL-00107" />
<option name="project" value="LOCAL" />
<updated>1704451720350</updated>
</task>
<option name="localTasksCounter" value="108" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
@ -677,4 +678,8 @@
</breakpoints>
</breakpoint-manager>
</component>
<component name="XSLT-Support.FileAssociations.UIState">
<expand />
<select />
</component>
</project>

3015
MDC_WRITE/uvk5_cn.py Normal file

File diff suppressed because it is too large Load diff

View file

@ -535,7 +535,7 @@ uint16_t extractHex(const char *str) {
}
#ifdef ENABLE_MDC1200_CONTACT
uint8_t contact_num=0;
uint16_t MDC_ADD[4] = {0x1D48, 0x1D88, 0x1DC8,0x1F08};
uint16_t MDC_ADD[6] = {0x1D00, 0x1D40, 0x1D80,0x1DC0,0X1F90,0X1FD0};//SHIT ADDRESS COMBINE :(
void mdc1200_update_contact_num()
{
EEPROM_ReadBuffer(MDC_NUM_ADD, (uint8_t *)&contact_num, 1);

View file

@ -106,9 +106,9 @@ void MDC1200_process_rx(const uint16_t interrupt_bits);
void MDC1200_init(void);
extern uint16_t MDC_ID;
uint16_t extractHex(const char *str);
extern uint16_t MDC_ADD[4] ;
#define MDC_NUM_ADD 0X1D00
#define MAX_CONTACT_NUM 15
extern uint16_t MDC_ADD[6] ;
#define MDC_NUM_ADD 0X1FFF
#define MAX_CONTACT_NUM 22
extern uint8_t contact_num;
#endif