不足ファイル追加(voltable.c)

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@364 013db118-44a6-b54f-8bf7-843cb86687b1
This commit is contained in:
n2232 2011-08-09 04:36:59 +00:00
parent 6ec42747e1
commit 04622cbf03
3 changed files with 80 additions and 26 deletions

48
branches/sim/voltable.c Normal file
View File

@ -0,0 +1,48 @@
#include "jhl_defs.h"
#define _10db_
#ifdef _10db_
// max -10db
const u8 slider_to_codec[64] =
{
127, 126, 125, 124, 122, 121, 120, 119,
118, 117, 116, 114, 113, 112, 111, 110,
109, 108, 106, 105, 104, 103, 102, 101,
100, 98, 97, 96, 95, 94, 93, 92,
90, 89, 88, 87, 86, 85, 83, 82,
81, 80, 79, 78, 77, 75, 74, 73,
73, 72, 71, 70, 69, 67, 66, 65,
64, 63, 62, 61, 59, 58, 57, 56
};
#endif
#ifdef _15db_
// max -15db
const u8 slider_to_codec[64] =
{
127, 127, 127, 127, 127, 126, 125, 123,
122, 121, 120, 119, 118, 117, 116, 115,
114, 113, 112, 110, 109, 108, 107, 106,
105, 104, 103, 102, 101, 100, 99, 97,
96, 95, 94, 93, 92, 91, 90, 89,
88, 87, 86, 85, 84, 83, 82, 81,
80, 79, 78, 77, 76, 75, 74, 73,
71, 70, 69, 68, 67, 66, 66, 66
};
#endif
#ifdef _4db_
// max -4db
const u8 slider_to_codec[64] =
{
127, 127, 126, 125, 123, 122, 121, 119,
118, 117, 115, 114, 112, 111, 110, 108,
107, 106, 104, 103, 101, 100, 99, 97,
96, 94, 93, 92, 90, 89, 88, 86,
85, 83, 82, 81, 79, 78, 77, 75,
74, 72, 71, 70, 68, 67, 66, 64,
64, 63, 61, 60, 59, 57, 56, 54,
53, 52, 50, 49, 48, 46, 44, 44
};
#endif

View File

@ -1,23 +1,29 @@
[ProjectManager]
FrameMax=0
FrameX=2120
FrameY=52
FrameMax=1
FrameX=1989
FrameY=73
FrameCX=1293
FrameCY=1075
OpenFile1=task_sys.c,0,225,225,1395,726,0,369,0,0
OpenFile2=i2c_mcu.c,0,100,100,1346,822,0,213,0,0
OpenFile3=i2c_twl.c,0,175,175,1421,897,38,129,47,0
OpenFile4=main.c,0,225,225,1471,947,0,15,0,0
OpenFile5=kanaria.c,0,250,250,1496,972,0,3,20,0
OpenFile6=config.h,0,168,41,1338,542,34,14,34,0
OpenFile7=ProjectWindow
OpenFile3=main.c,0,225,225,1471,947,0,15,0,0
OpenFile4=kanaria.c,0,250,250,1496,972,0,3,20,0
OpenFile5=config.h,0,168,41,1338,542,34,14,34,0
OpenFile6=voltable.c,0,243,81,1216,712,0,34,35,0
OpenFile7=adc.c,0,136,32,1109,663,0,217,0,0
OpenFile8=sw.c,0,200,200,1446,922,0,27,0,0
OpenFile9=accero.c,0,25,25,998,656,0,256,0,0
OpenFile10=renge\renge.c,0,275,275,1521,997,0,147,0,0
OpenFile11=ProjectWindow
PrjPos=0,0,706,0,291
OpenFile8=voltable.c,0,243,81,1216,712,0,34,35,0
OpenFile9=adc.c,0,136,32,1109,663,0,217,0,0
OpenFile10=sw.c,0,200,200,1446,922,0,27,0,0
OpenFile11=task_misc.c,0,81,81,901,593,0,308,0,0
OpenFile12=OutputWindow
OutputPos=0,99,790,302,1540
OpenFile12=loader.c,0,300,300,1546,1022,0,372,0,0
OpenFile13=pm.c,0,325,325,1571,1047,0,863,14,0
OpenFile14=i2c_twl.c,0,175,175,1421,897,0,114,0,0
OpenFile15=pedo_alg_thre_det2.c,0,0,0,1246,722,6,453,6,0
OpenFile16=self_flash.c,0,350,350,1596,1072,21,487,21,0
OpenFile17=task_misc.c,0,672,66,1492,851,0,203,0,0
OpenFile18=OutputWindow
OutputPos=0,149,840,137,1375
ActivePRJ=yav_mcu_bsr.prj
[ProjectWindow]
ProjectWindowDispType=0

View File

@ -12,7 +12,7 @@ T=4e27babf
8=reboot.h
9=magic.h
[pm.c]
T=4e3b8b8d
T=4e3f6aaa
1=incs.h
2=adc.h
3=led.h
@ -22,11 +22,11 @@ T=4e3b8b8d
7=..\..\..\..\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r\fsl.h
8=fsl_user.h
[i2c_ctr.c]
T=4e36767a
T=4e3f5da0
1=config.h
2=incs.h
[main.c]
T=4e38f73a
T=4e3faf2b
1=incs_loader.h
2=WDT.h
3=rtc.h
@ -36,18 +36,18 @@ T=4e38f73a
7=adc.h
8=pool.h
[magic.c]
T=4e3b8e70
T=4e4097b0
1=config.h
2=magic.h
[WDT.c]
T=4e310743
1=incs_loader.h
[i2c_mcu.c]
T=4e310743
T=4e3f66f3
1=incs_loader.h
2=i2c_mcu.h
[i2c_twl.c]
T=4e37b65b
T=4e3f6b4b
1=config.h
2=incs.h
3=i2c_twl_defs.h
@ -60,7 +60,7 @@ T=4e310743
T=4e27d06d
1=incs.h
[vreg_ctr.c]
T=4e367ae2
T=4e3f7382
1=incs.h
2=vreg_ctr.h
3=rtc.h
@ -85,7 +85,7 @@ T=4e3b8b8d
4=led.h
5=vreg_twl.h
[renge\renge.c]
T=4e30b6fd
T=4e3f2a23
1=renge\renge.h
2=renge\renge_task_intval.h
3=renge\renge_task_immediate.h
@ -95,7 +95,7 @@ T=4e30b6fd
7=sim\simOnWin.h
8=bsr_system.h
[accero.c]
T=4e2fd5bb
T=4e3f67f3
1=config.h
2=incs.h
3=..\..\..\..\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r\math.h
@ -124,7 +124,7 @@ T=4e27b472
3=pm.h
4=accero.h
[task_misc.c]
T=4e3b8ea0
T=4e40909e
1=incs.h
2=renge\renge.h
3=pm.h
@ -134,7 +134,7 @@ T=4e3b8ea0
7=led.h
8=vreg_twl.h
[task_sys.c]
T=4e3a5f13
T=4e4097af
1=incs.h
2=i2c_twl.h
3=i2c_ctr.h
@ -228,7 +228,7 @@ T=4e310743
[WDT.h]
T=4e310743
[fsl_user.h]
T=4e310743
T=4e3f6a0c
[i2c_ctr.h]
T=4e310743
[pm.h]