mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-10-31 13:51:10 -04:00
コミット忘れ
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@127 013db118-44a6-b54f-8bf7-843cb86687b1
This commit is contained in:
parent
a159bca802
commit
953ab3e63a
84
trunk/pedo_lpf_coeff.h
Normal file
84
trunk/pedo_lpf_coeff.h
Normal file
@ -0,0 +1,84 @@
|
||||
#ifndef _pedo_coeff_h_
|
||||
#define _pedo_coeff_h_
|
||||
|
||||
// =========================================================
|
||||
#define TAP 64
|
||||
#define FIL_COEFF_QUANT 10
|
||||
const s8 lpf_coeff[]={
|
||||
/*
|
||||
Window Function Algorithm LPF
|
||||
Sampling Frequency = 100.0
|
||||
cutoff1 = 6.0000000
|
||||
Tap Count =64
|
||||
Kaiser Constant = 7.000000
|
||||
Quantized by 11 [bits]
|
||||
*/
|
||||
/* 0,// [0]
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
*/
|
||||
1,// 8
|
||||
2,
|
||||
2,
|
||||
3,
|
||||
3,
|
||||
2,
|
||||
0,
|
||||
-2,
|
||||
-5,// 16
|
||||
-9,
|
||||
-13,
|
||||
-16,
|
||||
-16,
|
||||
-13,
|
||||
-6,
|
||||
4,
|
||||
18,// 24
|
||||
37,
|
||||
56,
|
||||
77,
|
||||
95,
|
||||
110,
|
||||
119,
|
||||
122,
|
||||
119,// 32
|
||||
110,
|
||||
95,
|
||||
77,
|
||||
56,
|
||||
37,
|
||||
18,
|
||||
4,
|
||||
-6,// 40
|
||||
-13,
|
||||
-16,
|
||||
-16,
|
||||
-13,
|
||||
-9,
|
||||
-5,
|
||||
-2,
|
||||
0,// 48
|
||||
2,
|
||||
3,
|
||||
3,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
/*
|
||||
0,
|
||||
0,// 56
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
*/
|
||||
};
|
||||
#endif
|
||||
22
trunk/pool.h
Normal file
22
trunk/pool.h
Normal file
@ -0,0 +1,22 @@
|
||||
#ifndef _pool_h_
|
||||
#define _pool_h_
|
||||
|
||||
|
||||
#include "pedometer.h"
|
||||
|
||||
// 空いてるメモリ
|
||||
typedef struct {
|
||||
unsigned short pedo_log[ PEDOMETER_LOG_SIZE ];
|
||||
unsigned char vreg_c_free[ 24 ];
|
||||
}st_vreg_c_ext;
|
||||
|
||||
typedef union{
|
||||
st_vreg_c_ext vreg_c_ext;
|
||||
u8 self_update_work[ 256 ]; // 256以上はまとめ書きできない
|
||||
}uni_pool;
|
||||
|
||||
extern uni_pool pool;
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
9
trunk/self_flash.h
Normal file
9
trunk/self_flash.h
Normal file
@ -0,0 +1,9 @@
|
||||
#ifndef _self_flash_h_
|
||||
#define _self_flash_h_
|
||||
|
||||
|
||||
void firm_update();
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user