From 7e554dbbe9b157de1d0a0273c35ca66accf9159e Mon Sep 17 00:00:00 2001 From: payton Date: Fri, 28 Jul 2023 22:57:28 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=9B=B4=E6=96=B0=E6=B8=A9=E5=BA=A6=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sf_app/code/source/battery/sf_battery.c | 18 +++++++++--------- .../driver/na51089/source/mcu/sf_battery.c | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) mode change 100644 => 100755 code/application/source/sf_app/code/source/battery/sf_battery.c mode change 100644 => 100755 rtos/code/driver/na51089/source/mcu/sf_battery.c diff --git a/code/application/source/sf_app/code/source/battery/sf_battery.c b/code/application/source/sf_app/code/source/battery/sf_battery.c old mode 100644 new mode 100755 index 549b62082..261993248 --- a/code/application/source/sf_app/code/source/battery/sf_battery.c +++ b/code/application/source/sf_app/code/source/battery/sf_battery.c @@ -73,15 +73,15 @@ static INT16 cTemper = 0; const UINT16 Adc2TempTable[]= { - 0,1648,1721,1794,1867,1940,2013,2086,2159, 2232,2305, 2378,2451,2524,2597,2670,2743, 2816, 2889, 2968, - 3047,3126,3205,3284,3363,3442,3521,3600/*-15*/,3679,3758,3837,3916,3995,4074,4153,4232,4321/*-10*/, 4427,4533,4639, - 4745,4851,4957,5063,5169,5275,5381,5487,5593,5699,5805,5911,6017,6123,6238/*0*/,6334,6430,6526,6622,6718, - 6814,6910,7006,7102,7198,7294,7390,7486,7582,7678,7774,7870,7996,8063/*10*/,8182,8301,8420,8539,8658,8777, - 8896,9015,9134,9253,9372,9491,9610,9729,9848,9967,10128/*20*/,10221,10314,10407,10500,10593,10686,10779,10872,10965, - 11058,11151,11244,11337,11430,11480,11530,11580,11630/*30*/,11680,11730,11780,11830,11880,11930,11980,12032,12097,12162,12232, - 12302,12372,12442,12512,12582,12652,12722/*40*/,12769,12816,12863,12910,12957,13004,13051,13098,13145,13192,13239,13286,13333, - 13380,13427,13474,13521/*50*/,13591,13661,13731,13801,13871,13941,14011,14081,14151,14221,14291,14361,14431,14501,14571,14641, - 14711,14781,14851/*60*/,14941,15031,15111,15181,15251,15321,15391,15461,15531,15601,15671,15741,15811 + 0,225,230,235,240,245,250,256,260,265,269,274,276,278,279,280,285,290,295,301, + 306,308,317,327,348,359,369,380,390,412,422,438,449,454,464,470,491,507,517,523, + 528,544,575,586,591,612,623,634,655,665,676,692,723,734,755,766,771,781,797,818, + 850,882,887,898,919,961,982,1009,1019,1035,1040,1056,1067,1109,1114,1120,1136,1151,1183,1231, + 1246,1258,1268,1294,1320,1336,1368,1386,1405,1420,1474,1484,1516,1537,1553,1569,1585,1611,1622,1632, + 1643,1659,1685,1717,1738,1759,1791,1801,1812,1822,1844,1865,1902,1918,1923,1960,1979,1986,1997,2013, + 2023,2034,2050,2081,2102,2139,2150,2192,2213,2219,2224,2229,2240,2261,2272,2277,2282,2287,2303,2314, + 2340,2372,2388,2414,2425,2435,2462,2472,2483,2488,2508,2530,2552,2557,2578,2589,2599,2610,2615,2625, + 2631,2652,2663,2689,2696,2704,2710,2724,2735,2746,2755,2766,2776,2790,2800,2815 }; /************************************************* diff --git a/rtos/code/driver/na51089/source/mcu/sf_battery.c b/rtos/code/driver/na51089/source/mcu/sf_battery.c old mode 100644 new mode 100755 index 21bb2412c..3d6699928 --- a/rtos/code/driver/na51089/source/mcu/sf_battery.c +++ b/rtos/code/driver/na51089/source/mcu/sf_battery.c @@ -74,15 +74,15 @@ ID FLG_ID_SF_BSTTERY = 0; const UINT16 Adc2TempTable[]= { - 0,1648,1721,1794,1867,1940,2013,2086,2159, 2232,2305, 2378,2451,2524,2597,2670,2743, 2816, 2889, 2968, - 3047,3126,3205,3284,3363,3442,3521,3600/*-15*/,3679,3758,3837,3916,3995,4074,4153,4232,4321/*-10*/, 4427,4533,4639, - 4745,4851,4957,5063,5169,5275,5381,5487,5593,5699,5805,5911,6017,6123,6238/*0*/,6334,6430,6526,6622,6718, - 6814,6910,7006,7102,7198,7294,7390,7486,7582,7678,7774,7870,7996,8063/*10*/,8182,8301,8420,8539,8658,8777, - 8896,9015,9134,9253,9372,9491,9610,9729,9848,9967,10128/*20*/,10221,10314,10407,10500,10593,10686,10779,10872,10965, - 11058,11151,11244,11337,11430,11480,11530,11580,11630/*30*/,11680,11730,11780,11830,11880,11930,11980,12032,12097,12162,12232, - 12302,12372,12442,12512,12582,12652,12722/*40*/,12769,12816,12863,12910,12957,13004,13051,13098,13145,13192,13239,13286,13333, - 13380,13427,13474,13521/*50*/,13591,13661,13731,13801,13871,13941,14011,14081,14151,14221,14291,14361,14431,14501,14571,14641, - 14711,14781,14851/*60*/,14941,15031,15111,15181,15251,15321,15391,15461,15531,15601,15671,15741,15811 + 0,225,230,235,240,245,250,256,260,265,269,274,276,278,279,280,285,290,295,301, + 306,308,317,327,348,359,369,380,390,412,422,438,449,454,464,470,491,507,517,523, + 528,544,575,586,591,612,623,634,655,665,676,692,723,734,755,766,771,781,797,818, + 850,882,887,898,919,961,982,1009,1019,1035,1040,1056,1067,1109,1114,1120,1136,1151,1183,1231, + 1246,1258,1268,1294,1320,1336,1368,1386,1405,1420,1474,1484,1516,1537,1553,1569,1585,1611,1622,1632, + 1643,1659,1685,1717,1738,1759,1791,1801,1812,1822,1844,1865,1902,1918,1923,1960,1979,1986,1997,2013, + 2023,2034,2050,2081,2102,2139,2150,2192,2213,2219,2224,2229,2240,2261,2272,2277,2282,2287,2303,2314, + 2340,2372,2388,2414,2425,2435,2462,2472,2483,2488,2508,2530,2552,2557,2578,2589,2599,2610,2615,2625, + 2631,2652,2663,2689,2696,2704,2710,2724,2735,2746,2755,2766,2776,2790,2800,2815 }; #if SF_BATTERY_TEST == ENABLE