Skip to content

Commit

Permalink
Aux Channels configuration unified.
Browse files Browse the repository at this point in the history
Channels 7-14 Endpoints added.
Channels 7-14 Sub trim added.
SNR added as channel value.
Version checking - initialization if different performed.
CAT01 disabled because of limited space.
  • Loading branch information
qba667 committed Jan 6, 2018
1 parent 4335fcd commit fb71f2a
Show file tree
Hide file tree
Showing 11 changed files with 331 additions and 192 deletions.
70 changes: 41 additions & 29 deletions source/MKL16Z64xxx4_flash.ld
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ SECTIONS
*(.mod_timerFormat);
*(.mod_armed);
*(.mod_defASL);
*(.mixPos);
}
.reserved_main 0x2800:
{
Expand All @@ -185,9 +186,18 @@ SECTIONS
.mod_configurePins_ASM 0xC0D2 : {
*(.mod_configurePins_ASM);
}
.mod_extraChannels_ASM 0xAC34 : {

/*
FREE SPACE AC34 AC57
*/

.mod_extraChannels_ASM 0xAB5C : {
*(.mod_extraChannels_ASM);
}
.reserved_after_code_extraChannels_ASM 0xAB9F : {
*(.reserved_after_code_extraChannels_ASM);
}

.mod_swB_ASM 0x2896 : {
*(.mod_swB_ASM);
}
Expand All @@ -209,6 +219,9 @@ SECTIONS
.mod_getSensorName2_ASM 0x376A : {
*(.mod_getSensorName2_ASM);
}
.mod_loadSettings_ASM 0xC070 : {
*(.mod_loadSettings_ASM);
}
.mod_printTimer_ASM 0xC1DE : {
*(.mod_printTimer_ASM);
}
Expand All @@ -226,6 +239,13 @@ SECTIONS
}


.mod_callCreatePacket1_ASM 0xA8D2 : {
*(.mod_callCreatePacket1_ASM);
}
.mod_callCreatePacket2_ASM 0xA8E8 : {
*(.mod_callCreatePacket2_ASM);
}

/*variables referenced from assembly*/

.mod_mainScreenIndexAddress 0xC9A0 : {
Expand Down Expand Up @@ -261,8 +281,6 @@ SECTIONS
.mod_code_5174_5353 0x5174 : {
*(.mod_varioSensorSelect);
*(.mod_configurePins);
*(.mod_createPacketCh1114);

}
.reserved_after_code_5174_5353 0x5354 : {
*(.reserved_after_code_5174_5353);
Expand All @@ -274,6 +292,7 @@ SECTIONS
*(.mod_acHelper);
*(.mod_displaySensors);
*(.mod_aslLabels);
*(.mod_loadSettingsExt);
}
.reserved_after_code_65C8_68A7 0x68A8 : {
*(.reserved_after_code_65C8_68A7);
Expand All @@ -296,22 +315,26 @@ SECTIONS
*(.mod_nextSensorID);
*(.mod_prevSensorID);
*(.mod_asm_aeabi_lmul);

}

.reserved_after_code_C9B0_CA4F 0xCA50 :
{
*(.reserved_after_code_C9B0_CA4F);
}

.mod_code_D50C_D5F7 0xD50C :
.mod_code_D510_D5EF 0xD50C :
{
*(.mod_checkTimerActive);
*(.mod_swBHandling);
*(.mod_swEHandling);
*(.mod_swBHandling);
}
.reserved_after_code_D50C_D5F7 0xD5F8 :
.mod_code_D560_D5EF 0xD560 :
{
*(.reserved_after_code_D50C_D5F7);
*(.mod_swEHandling);
*(.mod_checkTimerActive);
}

.reserved_after_code_D50C_D5EF 0xD5F0 :
{
*(.reserved_after_code_D510_D5EF);
}

. = ALIGN(4);
Expand All @@ -320,46 +343,35 @@ SECTIONS
{
*(.mod_customAlarmsCheck);
*(.mod_timerConfig);
*(.mod_channels1114);
*(.mod_SW_B_config);
*(.mod_getSWState);
*(.mod_extractConfig);
*(.mod_createPacketCh1114);
*(.mod_auxChannelsText);
}

.reserved_after_code_E140_E754 0xE754 :{
*(.reserved_after_code_E140_E754);
}


.TestCODE 0xB600 : /*moved while implementing sensors move it back to s_ALT*/
{
*(.altinit);
*(.altgetALT);
*(.altlogfix);
*(.altlog2fix);
KEEP(*(.TestCODE))

} > m_text
/*changes made on assembly level*/
.notImplemented_AUX_CHANNEL_PAGE 0xF4D0 :
{
*(.notImplemented_AUX_CHANNEL_PAGE*);
}

/*references to getAuxChannel from assembly do not move!*/
.mod_code_F66C_FF8F 0xF66C :
.mod_code_F4D0_FF8F 0xF4D0:
{
*(.mod_channels1114*);
*(.mod_getAuxChannel);
*(.mod_getSensorName);
*(.mod_batteryConfig);
*(.mod_printTimer);
*(.mod_formatSensorValue);
*(.mod_divMod);
*(.mod_parseCoord);
*(.mod_alarmConfig);
*(.mod_timerConfig);
*(.mod_modMenuListFun);
*(.mod_log2fix);
*(.mod_getALT);
*(.mod_asl);
*(.mod_mix);

}
. = ALIGN(1);
.mod_extraMenu 0xFFA8 : {
Expand Down
Binary file modified source/build/org.bin
Binary file not shown.
17 changes: 13 additions & 4 deletions source/build/source/subdir.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ ASM_SRCS += \
../source/printTimer1.asm \
../source/printTimer2.asm \
../source/formatSensorValue.asm \
../source/formatSensorValue2.asm
../source/formatSensorValue2.asm \
../source/loadSettings.asm \
../source/callCreatePacket1.asm \
../source/callCreatePacket2.asm


OBJS += \
./source/adc.o \
Expand Down Expand Up @@ -63,8 +67,10 @@ OBJS += \
./source/printTimer1.o \
./source/printTimer2.o \
./source/formatSensorValue.o \
./source/formatSensorValue2.o

./source/formatSensorValue2.o \
./source/loadSettings.o \
./source/callCreatePacket1.o \
./source/callCreatePacket2.o

C_DEPS += \
./source/adc.d \
Expand Down Expand Up @@ -96,7 +102,10 @@ ASM_DEPS += \
./source/printTimer1.d \
./source/printTimer2.d \
./source/formatSensorValue.d \
./source/formatSensorValue2.d
./source/formatSensorValue2.d \
./source/loadSettings.d \
./source/callCreatePacket1.d \
./source/callCreatePacket2.d

# Each subdirectory must supply rules for building sources it contributes
source/%.o: ../source/%.c
Expand Down
Loading

0 comments on commit fb71f2a

Please sign in to comment.