修正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"> <component name="ChangeListManager">
<list default="true" id="cea36e80-e289-4d69-9030-7186d540ac0e" name="更改" comment="减少eeprom延时"> <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$/.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$/Makefile" beforeDir="false" afterPath="$PROJECT_DIR$/Makefile" afterDir="false" />
<change beforePath="$PROJECT_DIR$/driver/i2c.c" beforeDir="false" afterPath="$PROJECT_DIR$/driver/i2c.c" 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> </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" />
@ -88,7 +89,7 @@
"node.js.selected.package.eslint": "(autodetect)", "node.js.selected.package.eslint": "(autodetect)",
"node.js.selected.package.tslint": "(autodetect)", "node.js.selected.package.tslint": "(autodetect)",
"nodejs_package_manager_path": "npm", "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", "structure.view.defaults.are.configured": "true",
"vue.rearranger.settings.migration": "true" "vue.rearranger.settings.migration": "true"
} }
@ -191,9 +192,9 @@
<recent_temporary> <recent_temporary>
<list> <list>
<item itemvalue="Makefile 目标.all" /> <item itemvalue="Makefile 目标.all" />
<item itemvalue="Makefile 目标.flash" />
<item itemvalue="Makefile 目标.clean" /> <item itemvalue="Makefile 目标.clean" />
<item itemvalue="Makefile 目标.build" /> <item itemvalue="Makefile 目标.build" />
<item itemvalue="Makefile 目标.flash" />
<item itemvalue="Makefile 目标.debug" /> <item itemvalue="Makefile 目标.debug" />
</list> </list>
</recent_temporary> </recent_temporary>
@ -262,14 +263,7 @@
<workItem from="1704363500769" duration="5676000" /> <workItem from="1704363500769" duration="5676000" />
<workItem from="1704370562673" duration="1618000" /> <workItem from="1704370562673" duration="1618000" />
<workItem from="1704421657950" duration="14943000" /> <workItem from="1704421657950" duration="14943000" />
<workItem from="1704442479624" duration="7979000" /> <workItem from="1704442479624" duration="15616000" />
</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>
</task> </task>
<task id="LOCAL-00059" summary="写频"> <task id="LOCAL-00059" summary="写频">
<created>1701739409050</created> <created>1701739409050</created>
@ -607,7 +601,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1704451604305</updated> <updated>1704451604305</updated>
</task> </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 /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
@ -677,4 +678,8 @@
</breakpoints> </breakpoints>
</breakpoint-manager> </breakpoint-manager>
</component> </component>
<component name="XSLT-Support.FileAssociations.UIState">
<expand />
<select />
</component>
</project> </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 #ifdef ENABLE_MDC1200_CONTACT
uint8_t contact_num=0; 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() void mdc1200_update_contact_num()
{ {
EEPROM_ReadBuffer(MDC_NUM_ADD, (uint8_t *)&contact_num, 1); 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); void MDC1200_init(void);
extern uint16_t MDC_ID; extern uint16_t MDC_ID;
uint16_t extractHex(const char *str); uint16_t extractHex(const char *str);
extern uint16_t MDC_ADD[4] ; extern uint16_t MDC_ADD[6] ;
#define MDC_NUM_ADD 0X1D00 #define MDC_NUM_ADD 0X1FFF
#define MAX_CONTACT_NUM 15 #define MAX_CONTACT_NUM 22
extern uint8_t contact_num; extern uint8_t contact_num;
#endif #endif