From 953ab3e63a882df2f7413eef53f061b2d946e29e Mon Sep 17 00:00:00 2001 From: N2232 Date: Fri, 16 Apr 2010 11:08:46 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=83=9F=E3=83=83=E3=83=88=E5=BF=98?= =?UTF-8?q?=E3=82=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- trunk/pedo_lpf_coeff.h | 84 ++++++++++++++++++++++++++++++++++++++++++ trunk/pool.h | 22 +++++++++++ trunk/self_flash.h | 9 +++++ 3 files changed, 115 insertions(+) create mode 100644 trunk/pedo_lpf_coeff.h create mode 100644 trunk/pool.h create mode 100644 trunk/self_flash.h diff --git a/trunk/pedo_lpf_coeff.h b/trunk/pedo_lpf_coeff.h new file mode 100644 index 0000000..f81d6c2 --- /dev/null +++ b/trunk/pedo_lpf_coeff.h @@ -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 diff --git a/trunk/pool.h b/trunk/pool.h new file mode 100644 index 0000000..1efe74b --- /dev/null +++ b/trunk/pool.h @@ -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 diff --git a/trunk/self_flash.h b/trunk/self_flash.h new file mode 100644 index 0000000..768565e --- /dev/null +++ b/trunk/self_flash.h @@ -0,0 +1,9 @@ +#ifndef _self_flash_h_ +#define _self_flash_h_ + + +void firm_update(); + + +#endif +