1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117 |
- #ifndef USR_CONFIG_H
- #define USR_CONFIG_H
- // <<< Use Configuration Wizard in Context Menu >>>\n
- #define SHOES_NAME "SMART SHOE"
- #define SHOES_NAME_LEN 64
- #define HARDWARE_VERSION 0x1235
- #define SOFTWARE_VERSION 0x5679
- // <s> LEFT_NAME - 밤꺄츰냔
- #define LEFT_NAME "SH_BSP_1_6_1"
- #define LAST_NAME "LO"
- #define RIGHT_NAME LAST_NAME"_"LEFT_NAME
- // <h> 무묾
- // <q> WATCHDOG_ENANBLE - 역쳔뭍賈콘
- #ifndef WATCHDOG_ENANBLE
- #define WATCHDOG_ENANBLE 0
- #endif
- // <q> BLE_DFU_ENANBLE - 왕櫓�섬DFU
- #ifndef BLE_DFU_ENANBLE
- #define BLE_DFU_ENANBLE 0
- #endif
- // <o> BATTERY - 든넥휭좆朞嶝
- // <0=> 300ma/H
- // <1=> 400ma/H
- #ifndef BATTERY_CAPACITY
- #define BATTERY_CAPACITY 0
- #endif
- // <o> _IS_HOST - 寮닒朞嶝
- // <0=> 닒샙
- // <1=> 寮샙
- #ifndef _IS_HOST
- #define _IS_HOST 1
- #endif
- // <e> DEBUG_EN - 딧桿斤口
- #ifndef DEBUG_EN
- #define DEBUG_EN 1
- #endif
- #if DEBUG_EN
- // <q> DEBUG_LEDRUN - 頓契됐
- #ifndef DEBUG_LEDRUN
- #define DEBUG_LEDRUN 1
- #endif
- // <q> DEBUG_LEDRGB - RGB됐
- #ifndef DEBUG_LEDRGB
- #define DEBUG_LEDRGB 0
- #endif
- // <q> DEBUG_FPS - 댕琦뻔fps
- #ifndef DEBUG_FPS
- #define DEBUG_FPS 0
- #endif
- // <q> DEBUG_IMU - 딧桿斤口:IMU
- #ifndef DEBUG_IMU
- #define DEBUG_IMU 1
- #endif
- // <q> DEBUG_STEP - 셕꼍
- #ifndef DEBUG_STEP
- #define DEBUG_STEP 0
- #endif
- // <q> DEBUG_BLE_Client - ble 닒샙
- #ifndef DEBUG_BLE_Client
- #define DEBUG_BLE_Client 0
- #endif
- // <q> DEBUG_BLE_Host - ble 寮샙
- #ifndef DEBUG_BLE_Host
- #define DEBUG_BLE_Host 0
- #endif
- // <q> DEBUG_UART0 - UART0
- #ifndef DEBUG_UART0
- #define DEBUG_UART0 0
- #endif
- // <q> DEBUG_GAME_LED - 踏狗친駕苟돨LED寧刻
- #ifndef DEBUG_GAME_LED
- #define DEBUG_GAME_LED 0
- #endif
- // <q> DEBUG_ERROR - 딧桿斤口:DEBUG_ERROR
- #ifndef DEBUG_ERROR
- #define DEBUG_ERROR 0
- #endif
- #endif
- // </e>
- // <h> 눈먁포朞嶝
- // <e> 폭箕셕朞嶝
- // <o> PRESS_SENSOR - 폭箕셕朞嶝
- // <0=> MS5611
- #ifndef PRESS_SENSOR
- #define PRESS_SENSOR 0
- #endif
- // <o> MS5611_ADDR - 폭箕셕MS5611(H:0xEC L:0xEE)
- // <0xEE=> 됴든틱
- // <0xEC=> 멕든틱
- #ifndef MS5611_ADDR
- #define MS5611_ADDR 0xEC
- #endif
- // </e>
- // <e> 괌칟箕제눈먁포
- // <o> MEMPRESS_SENSOR - 괌칟箕제눈먁포
- // </e>
- // <e> 힛菉뒈늚눈먁포
- // <o> MEMPRESS_SENSOR - 힛菉뒈늚눈먁포
- // <0=> QMC58832L
- #ifndef Geomagnetism_SENSOR
- #define Geomagnetism_SENSOR 0
- #endif
- // </e>
- // </h>
- // <e> ProcessTime_EN - 窟넋珂쇌鞫刻
- #ifndef ProcessTime_EN
- #define ProcessTime_EN 0
- #endif
- #if ProcessTime_EN
- // <o> DisInterval - 窟넋珂쇌鞫刻쇌몰
- #define DisInterval 100
- #endif
- // </e>
- // </h>
- // <h> PCB겼朞嶝
- // <o> PCB_VERSION - PCB겼朞嶝
- // <0=> PCB_V1.0
- // <1=> PCB_V1.1
- // <2=> PCB_V1.2
- // <3=> PCB_V1.3
- // <4=> PCB_V1.4
- // <5=> PCB_V1.5
- // <6=> PCB_V1.6
- #ifndef PCB_VERSION
- #define PCB_VERSION 6
- #endif
- #if PCB_VERSION == 0
- // <h> PCB_V1.0
- // <o> PIN_TXD_BLE - 랙箇
- #ifndef PIN_TXD_BLE
- #define PIN_TXD_BLE 6
- #endif
- // <o> PIN_RXD_BLE - 쌈澗
- #ifndef PIN_RXD_BLE
- #define PIN_RXD_BLE 8
- #endif
- // <o> PIN_SCL - 珂爐多신
- #ifndef PIN_SCL
- #define PIN_SCL 23
- #endif
- // <o> PIN_SDA - 鑒앴多신
- #ifndef PIN_SDA
- #define PIN_SDA 22
- #endif
- // <o> PIN_LED_R - 븐됐
- #ifndef PIN_LED_R
- #define PIN_LED_R 29
- #endif
- // <o> PIN_LED_G - 쫄됐
- #ifndef PIN_LED_G
- #define PIN_LED_G 30
- #endif
- // <o> PIN_LED_B - 융됐
- #ifndef PIN_LED_B
- #define PIN_LED_B 31
- #endif
- // <o> PIN_LED_RUN - 頓契됐
- #ifndef PIN_LED_RUN
- #define PIN_LED_RUN 30
- #endif
- // <o> PIN_MT_EN - 든샙賈콘
- #ifndef PIN_MT_EN
- #define PIN_MT_EN 0
- #endif
- // <o> PIN_ADC_EN - ADC賈콘
- #ifndef PIN_ADC_EN
- #define PIN_ADC_EN 27
- #endif
- // <o> PIN_ADC_IN - ADC渴흙多신
- #ifndef PIN_ADC_IN
- #define PIN_ADC_IN 28
- #endif
- // <o> PIN_ADC_CHANNEL - ADC渴흙繫돛
- #ifndef PIN_ADC_CHANNEL
- #define PIN_ADC_CHANNEL 4
- #endif
- // <o> PIN_CHARGING - 攣瞳념든多신
- #ifndef PIN_CHARGING
- #define PIN_CHARGING 26
- #endif
- // <o> PIN_CHARGDONE - 념든供냥多신
- #ifndef PIN_CHARGDONE
- #define PIN_CHARGDONE 25
- #endif
- // <o> PIN_POWER_EN - 溝固든都역밑多신
- #ifndef PIN_POWER_EN
- #define PIN_POWER_EN 1
- #endif
- // <o> PIN_IMU_INT - IMU櫓뙤多신
- #ifndef PIN_IMU_INT
- #define PIN_IMU_INT 2
- #endif
- // </h>
- #endif
- #if PCB_VERSION == 1
- // <h> PCB_V1.1
- // <o> PIN_TXD_BLE - 랙箇
- #ifndef PIN_TXD_BLE
- #define PIN_TXD_BLE 12
- #endif
- // <o> PIN_RXD_BLE - 쌈澗
- #ifndef PIN_RXD_BLE
- #define PIN_RXD_BLE 11
- #endif
- // <o> PIN_SCL - 珂爐多신
- #ifndef PIN_SCL
- #define PIN_SCL 5
- #endif
- // <o> PIN_SDA - 鑒앴多신
- #ifndef PIN_SDA
- #define PIN_SDA 1
- #endif
- // <o> PIN_SCL_1 - 珂爐多신
- #ifndef PIN_SCL_1
- #define PIN_SCL_1 30
- #endif
- // <o> PIN_SDA_1 - 鑒앴多신
- #ifndef PIN_SDA_1
- #define PIN_SDA_1 31
- #endif
- // <o> PIN_LED_R - 븐됐
- #ifndef PIN_LED_R
- #define PIN_LED_R 19
- #endif
- // <o> PIN_LED_G - 쫄됐
- #ifndef PIN_LED_G
- #define PIN_LED_G 18
- #endif
- // <o> PIN_LED_B - 융됐
- #ifndef PIN_LED_B
- #define PIN_LED_B 16
- #endif
- // <o> PIN_LED_RUN - 頓契됐
- #ifndef PIN_LED_RUN
- #define PIN_LED_RUN 8
- #endif
- // <o> PIN_MT_EN - 든샙賈콘
- #ifndef PIN_MT_EN
- #define PIN_MT_EN 20
- #endif
- // <o> PIN_ADC_EN - ADC賈콘
- #ifndef PIN_ADC_EN
- #define PIN_ADC_EN 28
- #endif
- // <o> PIN_ADC_IN - ADC渴흙多신
- #ifndef PIN_ADC_IN
- #define PIN_ADC_IN 29
- #endif
- // <o> PIN_ADC_CHANNEL - ADC渴흙繫돛
- #ifndef PIN_ADC_CHANNEL
- #define PIN_ADC_CHANNEL 5
- #endif
- // <o> PIN_CHARGING - 攣瞳념든多신
- #ifndef PIN_CHARGING
- #define PIN_CHARGING 25
- #endif
- // <o> PIN_CHARGDONE - 념든供냥多신
- #ifndef PIN_CHARGDONE
- #define PIN_CHARGDONE 27
- #endif
- // <o> PIN_POWER_EN - 溝固든都역밑多신
- #ifndef PIN_POWER_EN
- #define PIN_POWER_EN 13
- #endif
- // <o> PIN_IMU_INT - IMU櫓뙤多신
- #ifndef PIN_IMU_INT
- #define PIN_IMU_INT 6
- #endif
- // <o> PIN_SEL - 璘塘糾혐롸多신
- #ifndef PIN_SEL
- #define PIN_SEL 26
- #endif
- // </h>
- #endif
- #if PCB_VERSION == 2
- // <h> PCB_V1.2
- // <o> PIN_TXD_BLE - 랙箇
- #ifndef PIN_TXD_BLE
- #define PIN_TXD_BLE 23
- #endif
- // <o> PIN_RXD_BLE - 쌈澗
- #ifndef PIN_RXD_BLE
- #define PIN_RXD_BLE 22
- #endif
- // <o> PIN_SCL - 珂爐多신
- #ifndef PIN_SCL
- #define PIN_SCL 10
- #endif
- // <o> PIN_SDA - 鑒앴多신
- #ifndef PIN_SDA
- #define PIN_SDA 9
- #endif
- // <o> PIN_SCL_1 - 珂爐多신
- #ifndef PIN_SCL_1
- #define PIN_SCL_1 30
- #endif
- // <o> PIN_SDA_1 - 鑒앴多신
- #ifndef PIN_SDA_1
- #define PIN_SDA_1 29
- #endif
- // <o> PIN_SCL_2 - 珂爐多신
- #ifndef PIN_SCL_2
- #define PIN_SCL_2 28
- #endif
- // <o> PIN_SDA_2 - 鑒앴多신
- #ifndef PIN_SDA_2
- #define PIN_SDA_2 27
- #endif
- // <o> PIN_SCL_3 - 珂爐多신
- #ifndef PIN_SCL_3
- #define PIN_SCL_3 26
- #endif
- // <o> PIN_SDA_3 - 鑒앴多신
- #ifndef PIN_SDA_3
- #define PIN_SDA_3 25
- #endif
- // <o> PIN_LED_R - 븐됐
- #ifndef PIN_LED_R
- #define PIN_LED_R 5
- #endif
- // <o> PIN_LED_G - 쫄됐
- #ifndef PIN_LED_G
- #define PIN_LED_G 4
- #endif
- // <o> PIN_LED_B - 융됐
- #ifndef PIN_LED_B
- #define PIN_LED_B 6
- #endif
- // <o> PIN_LED_RUN - 頓契됐
- #ifndef PIN_LED_RUN
- #define PIN_LED_RUN 6
- #endif
- // <o> PIN_MT_EN - 든샙賈콘
- #ifndef PIN_MT_EN
- #define PIN_MT_EN 7
- #endif
- // <o> PIN_ADC_EN - ADC賈콘
- #ifndef PIN_ADC_EN
- #define PIN_ADC_EN 0
- #endif
- // <o> PIN_ADC_IN - ADC渴흙多신
- #ifndef PIN_ADC_IN
- #define PIN_ADC_IN 2
- #endif
- // <o> PIN_ADC_CHANNEL - ADC渴흙繫돛
- #ifndef PIN_ADC_CHANNEL
- #define PIN_ADC_CHANNEL 0
- #endif
- // <o> PIN_CHARGING - 攣瞳념든多신
- #ifndef PIN_CHARGING
- #define PIN_CHARGING 31
- #endif
- // <o> PIN_CHARGDONE - 념든供냥多신
- #ifndef PIN_CHARGDONE
- #define PIN_CHARGDONE 1
- #endif
- // <o> PIN_POWER_EN - 溝固든都역밑多신
- #ifndef PIN_POWER_EN
- #define PIN_POWER_EN 3
- #endif
- // <o> PIN_IMU_INT - IMU櫓뙤多신
- #ifndef PIN_IMU_INT
- #define PIN_IMU_INT 8
- #endif
- // <o> PIN_SEL - 璘塘糾혐롸多신
- #ifndef PIN_SEL
- #define PIN_SEL 12
- #endif
- // </h>
- #endif
- #if PCB_VERSION == 3
- // <h> PCB_V1.3
- // <o> PIN_TXD_BLE - 랙箇
- #ifndef PIN_TXD_BLE
- #define PIN_TXD_BLE 23
- #endif
- // <o> PIN_RXD_BLE - 쌈澗
- #ifndef PIN_RXD_BLE
- #define PIN_RXD_BLE 22
- #endif
- // <o> PIN_SCL - 珂爐多신
- #ifndef PIN_SCL
- #define PIN_SCL 9
- #endif
- // <o> PIN_SDA - 鑒앴多신
- #ifndef PIN_SDA
- #define PIN_SDA 8
- #endif
- // <o> PIN_MPU9250_CS- CS多신
- #ifndef PIN_MPU9250_CS
- #define PIN_MPU9250_CS 10
- #endif
- // <o> PIN_MPU9250_MISO- MISO多신
- #ifndef PIN_MPU9250_MISO
- #define PIN_MPU9250_MISO 0
- #endif
- // <o> PIN_SCL_1 - 珂爐多신
- #ifndef PIN_SCL_1
- #define PIN_SCL_1 30
- #endif
- // <o> PIN_SDA_1 - 鑒앴多신
- #ifndef PIN_SDA_1
- #define PIN_SDA_1 29
- #endif
- // <o> PIN_SCL_2 - 珂爐多신
- #ifndef PIN_SCL_2
- #define PIN_SCL_2 28
- #endif
- // <o> PIN_SDA_2 - 鑒앴多신
- #ifndef PIN_SDA_2
- #define PIN_SDA_2 27
- #endif
- // <o> PIN_SCL_3 - 珂爐多신
- #ifndef PIN_SCL_3
- #define PIN_SCL_3 26
- #endif
- // <o> PIN_SDA_3 - 鑒앴多신
- #ifndef PIN_SDA_3
- #define PIN_SDA_3 25
- #endif
- // <o> PIN_LED_R - 븐됐
- #ifndef PIN_LED_R
- #define PIN_LED_R 5
- #endif
- // <o> PIN_LED_G - 쫄됐
- #ifndef PIN_LED_G
- #define PIN_LED_G 4
- #endif
- // <o> PIN_LED_B - 융됐
- #ifndef PIN_LED_B
- #define PIN_LED_B 6
- #endif
- // <o> PIN_LED_RUN - 頓契됐
- #ifndef PIN_LED_RUN
- #define PIN_LED_RUN 18
- #endif
- // <o> PIN_MT_EN - 든샙賈콘
- #ifndef PIN_MT_EN
- #define PIN_MT_EN 7
- #endif
- // <o> PIN_ADC_EN - ADC賈콘
- #ifndef PIN_ADC_EN
- #define PIN_ADC_EN 1
- #endif
- // <o> PIN_ADC_IN - ADC渴흙多신
- #ifndef PIN_ADC_IN
- #define PIN_ADC_IN 2
- #endif
- // <o> PIN_ADC_CHANNEL - ADC渴흙繫돛
- #ifndef PIN_ADC_CHANNEL
- #define PIN_ADC_CHANNEL 0
- #endif
- // <o> PIN_CHARGING - 攣瞳념든多신
- #ifndef PIN_CHARGING
- #define PIN_CHARGING 31
- #endif
- // <o> PIN_CHARGDONE - 념든供냥多신
- #ifndef PIN_CHARGDONE
- #define PIN_CHARGDONE 21
- #endif
- // <o> PIN_POWER_EN - 溝固든都역밑多신
- #ifndef PIN_POWER_EN
- #define PIN_POWER_EN 3
- #endif
- // <o> PIN_SEL - 璘塘糾혐롸多신
- #ifndef PIN_SEL
- #define PIN_SEL 12
- #endif
- // </h>
- #endif
- #if PCB_VERSION == 4
- // <h> PCB_V1.4
- // <o> PIN_LED_RUN - 頓契됐
- #ifndef PIN_LED_RUN
- #define PIN_LED_RUN 0
- #endif
- // <o> PIN_TXD_BLE - 랙箇
- #ifndef PIN_TXD_BLE
- #define PIN_TXD_BLE 31
- #endif
- // <o> PIN_RXD_BLE - 쌈澗
- #ifndef PIN_RXD_BLE
- #define PIN_RXD_BLE 30
- #endif
- // <o> PIN_LED_CONTROL - LED_CONTROL多신
- #ifndef PIN_LED_CONTROL
- #define PIN_LED_CONTROL 29
- #endif
- // <o> PIN_LED_ENABLE - LED_ENABLE多신
- #ifndef PIN_LED_ENABLE
- #define PIN_LED_ENABLE 25
- #endif
- // <o> PIN_SCL_1 - VL53L1X_SCL多신
- #ifndef PIN_SCL_1
- #define PIN_SCL_1 27
- #endif
- // <o> PIN_SDA_1 - VL53L1X_SDA多신
- #ifndef PIN_SDA_1
- #define PIN_SDA_1 26
- #endif
- // <o> PIN_SEL - 璘塘糾혐롸多신
- #ifndef PIN_SEL
- #define PIN_SEL 1
- #endif
- // <o> PIN_IO8 - IO8多신
- #ifndef PIN_IO8
- #define PIN_IO8 2
- #endif
- // <o> PIN_ADC_MEMBRANEPRESSURE1_IN - 1뵀괌칟箕제ADC渴흙多신
- #ifndef PIN_ADC_MEMBRANEPRESSURE1_IN
- #define PIN_ADC_MEMBRANEPRESSURE1_IN 3
- #endif
- // <o> PIN_ADC_MEMBRANEPRESSURE1_CHANNEL - 1뵀괌칟箕제ADC渴흙繫돛
- #ifndef PIN_ADC_MEMBRANEPRESSURE1_CHANNEL
- #define PIN_ADC_MEMBRANEPRESSURE1_CHANNEL 1
- #endif
- // <o> PIN_ADC_MEMBRANEPRESSURE2_IN - 2뵀괌칟箕제ADC渴흙多신
- #ifndef PIN_ADC_MEMBRANEPRESSURE2_IN
- #define PIN_ADC_MEMBRANEPRESSURE2_IN 28
- #endif
- // <o> PIN_ADC_MEMBRANEPRESSURE2_CHANNEL - 1뵀괌칟箕제ADC渴흙繫돛
- #ifndef PIN_ADC_MEMBRANEPRESSURE2_CHANNEL
- #define PIN_ADC_MEMBRANEPRESSURE2_CHANNEL 4
- #endif
- // <o> PIN_ADC_CHANNEL - ADC渴흙繫돛
- #ifndef PIN_ADC_CHANNEL
- #define PIN_ADC_CHANNEL 2
- #endif
- // <o> PIN_ADC_IN - ADC渴흙多신
- #ifndef PIN_ADC_IN
- #define PIN_ADC_IN 4
- #endif
- // <o> PIN_ADC_EN - ADC賈콘
- #ifndef PIN_ADC_EN
- #define PIN_ADC_EN 13
- #endif
- // <o> PIN_FLASH_D2 - FLASH_D2多신
- #ifndef PIN_FLASH_D2
- #define PIN_FLASH_D2 5
- #endif
- // <o> PIN_FLASH_CLK - FLASH_CLK多신
- #ifndef PIN_FLASH_CLK
- #define PIN_FLASH_CLK 6
- #endif
- // <o> PIN_FLASH_D1 - FLASH_D1多신
- #ifndef PIN_FLASH_D1
- #define PIN_FLASH_D1 7
- #endif
- // <o> PIN_FLASH_D3 - FLASH_D3多신
- #ifndef PIN_FLASH_D3
- #define PIN_FLASH_D3 8
- #endif
- // <o> PIN_FLASH_D0 - FLASH_D0多신
- #ifndef PIN_FLASH_D0
- #define PIN_FLASH_D0 9
- #endif
- // <o> PIN_FLASH_CMD - FLASH_CMD多신
- #ifndef PIN_FLASH_CMD
- #define PIN_FLASH_CMD 10
- #endif
- // <o> PIN_MT_EN - 든샙賈콘
- #ifndef PIN_MT_EN
- #define PIN_MT_EN 12
- #endif
- // <o> ACC_FIFO_ENABLE - 속醵똑FIFO친駕
- // <0=> 밑균
- // <1=> 역폘
- #ifndef ACC_FIFO_ENABLE
- #define ACC_FIFO_ENABLE 1
- #endif
- // <o> PIN_BMI_MISO - BMI_MISO多신
- #ifndef PIN_BMI_MISO
- #define PIN_BMI_MISO 14
- #endif
- // <o> PIN_BMI_MOSI - BMI_MOSI多신
- #ifndef PIN_BMI_MOSI
- #define PIN_BMI_MOSI 15
- #endif
- // <o> PIN_BMI_SCLK - BMI_SCLK多신
- #ifndef PIN_BMI_SCLK
- #define PIN_BMI_SCLK 16
- #endif
- // <o> PIN_BMI_nCS - BMI_nCS多신
- #ifndef PIN_BMI_nCS
- #define PIN_BMI_nCS 17
- #endif
- // <o> PIN_QMC5883_SCL - QMC5883_SCL多신
- #ifndef PIN_QMC5883_SCL
- #define PIN_QMC5883_SCL 18
- #endif
- // <o> PIN_QMC5883_SDA - QMC5883_SDA多신
- #ifndef PIN_QMC5883_SDA
- #define PIN_QMC5883_SDA 19
- #endif
- // <o> PIN_CHARGING - 攣瞳념든多신
- #ifndef PIN_CHARGING
- #define PIN_CHARGING 20
- #endif
- // <o> PIN_CHARGDONE - 념든供냥多신
- #ifndef PIN_CHARGDONE
- #define PIN_CHARGDONE 21
- #endif
- // </h>
- #endif
- #if PCB_VERSION == 5
- // <h> PCB_V1.5
- // <o> PIN_LED_RUN - 頓契됐
- #ifndef PIN_LED_RUN
- #define PIN_LED_RUN 11
- #endif
- // <o> PIN_MT_EN - 든샙賈콘
- #ifndef PIN_MT_EN
- #define PIN_MT_EN 12
- #endif
- // <o> PIN_TRXD_BLE_EN - 눔왯賈콘
- #ifndef PIN_TRXD_BLE_EN
- #define PIN_TRXD_BLE_EN 25
- #endif
- // <o> PIN_TXD_BLE - 눔왯랙箇
- #ifndef PIN_TXD_BLE
- #define PIN_TXD_BLE 31
- #endif
- // <o> PIN_RXD_BLE - 눔왯쌈澗
- #ifndef PIN_RXD_BLE
- #define PIN_RXD_BLE 30
- #endif
- // <o> PIN_LED_CONTROL - LED_CONTROL多신
- #ifndef PIN_LED_CONTROL
- #define PIN_LED_CONTROL 28
- #endif
- // <o> PIN_LED_ENABLE - LED_ENABLE多신
- #ifndef PIN_LED_ENABLE
- #define PIN_LED_ENABLE 29
- #endif
- // <o> PIN_SCL_1 - VL53L1X_SCL多신
- #ifndef PIN_SCL_1
- #define PIN_SCL_1 26
- #endif
- // <o> PIN_SDA_1 - VL53L1X_SDA多신
- #ifndef PIN_SDA_1
- #define PIN_SDA_1 27
- #endif
- // <o> PIN_SEL - 璘塘糾혐롸多신
- #ifndef PIN_SEL
- #define PIN_SEL 0
- #endif
- // <o> PIN_ADC_EN - 괌칟箕제ADC賈콘
- #ifndef PIN_ADC_MEMBRANEPRESSURE_EN
- #define PIN_ADC_MEMBRANEPRESSURE_EN 1
- #endif
- // <o> PIN_ADC_MEMBRANEPRESSURE1_IN - 품신괌칟箕제ADC渴흙多신
- #ifndef PIN_ADC_MEMBRANEPRESSURE1_IN
- #define PIN_ADC_MEMBRANEPRESSURE1_IN 3
- #endif
- // <o> PIN_ADC_MEMBRANEPRESSURE1_CHANNEL - 품신괌칟箕제ADC渴흙繫돛
- #ifndef PIN_ADC_MEMBRANEPRESSURE1_CHANNEL
- #define PIN_ADC_MEMBRANEPRESSURE1_CHANNEL 1
- #endif
- // <o> PIN_ADC_MEMBRANEPRESSURE2_IN - 빈신괌칟箕제ADC渴흙多신
- #ifndef PIN_ADC_MEMBRANEPRESSURE2_IN
- #define PIN_ADC_MEMBRANEPRESSURE2_IN 2
- #endif
- // <o> PIN_ADC_MEMBRANEPRESSURE2_CHANNEL - 빈신괌칟箕제ADC渴흙繫돛
- #ifndef PIN_ADC_MEMBRANEPRESSURE2_CHANNEL
- #define PIN_ADC_MEMBRANEPRESSURE2_CHANNEL 0
- #endif
- // <o> PIN_ADC_CHANNEL - ADC渴흙繫돛
- #ifndef PIN_ADC_CHANNEL
- #define PIN_ADC_CHANNEL 2
- #endif
- // <o> PIN_ADC_IN - 든넥ADC渴흙多신
- #ifndef PIN_ADC_IN
- #define PIN_ADC_IN 4
- #endif
- // <o> PIN_ADC_EN - 든넥ADC賈콘
- #ifndef PIN_ADC_EN
- #define PIN_ADC_EN 13
- #endif
- // <o> PIN_FLASH_D2 - FLASH_D2多신
- #ifndef PIN_FLASH_D2
- #define PIN_FLASH_D2 5
- #endif
- // <o> PIN_FLASH_CLK - FLASH_CLK多신
- #ifndef PIN_FLASH_CLK
- #define PIN_FLASH_CLK 6
- #endif
- // <o> PIN_FLASH_D1 - FLASH_D1多신
- #ifndef PIN_FLASH_D1
- #define PIN_FLASH_D1 7
- #endif
- // <o> PIN_FLASH_D3 - FLASH_D3多신
- #ifndef PIN_FLASH_D3
- #define PIN_FLASH_D3 8
- #endif
- // <o> PIN_FLASH_D0 - FLASH_D0多신
- #ifndef PIN_FLASH_D0
- #define PIN_FLASH_D0 9
- #endif
- // <o> PIN_FLASH_CMD - FLASH_CMD多신
- #ifndef PIN_FLASH_CMD
- #define PIN_FLASH_CMD 10
- #endif
- // <o> ACC_FIFO_ENABLE - 속醵똑FIFO친駕
- // <0=> 밑균
- // <1=> 역폘
- #ifndef ACC_FIFO_ENABLE
- #define ACC_FIFO_ENABLE 0
- #endif
- // <o> PIN_BMI_MISO - BMI_MISO多신
- #ifndef PIN_BMI_MISO
- #define PIN_BMI_MISO 14
- #endif
- // <o> PIN_BMI_MOSI - BMI_MOSI多신
- #ifndef PIN_BMI_MOSI
- #define PIN_BMI_MOSI 15
- #endif
- // <o> PIN_BMI_SCLK - BMI_SCLK多신
- #ifndef PIN_BMI_SCLK
- #define PIN_BMI_SCLK 16
- #endif
- // <o> PIN_BMI_nCS - BMI_nCS多신
- #ifndef PIN_BMI_nCS
- #define PIN_BMI_nCS 17
- #endif
- // <o> PIN_QMC5883_SCL - QMC5883_SCL多신
- #ifndef PIN_QMC5883_SCL
- #define PIN_QMC5883_SCL 18
- #endif
- // <o> PIN_QMC5883_SDA - QMC5883_SDA多신
- #ifndef PIN_QMC5883_SDA
- #define PIN_QMC5883_SDA 19
- #endif
- // <o> PIN_CHARGING - 攣瞳념든多신
- #ifndef PIN_CHARGING
- #define PIN_CHARGING 20
- #endif
- // <o> PIN_CHARGDONE - 념든供냥多신
- #ifndef PIN_CHARGDONE
- #define PIN_CHARGDONE 21
- #endif
- // </h>
- #endif
- #if PCB_VERSION == 6
- // <h> PCB_V1.6
- // <o> PIN_LED_RUN - 頓契됐
- #ifndef PIN_LED_RUN
- #define PIN_LED_RUN 7
- #endif
- // <o> PIN_MT_EN - 든샙賈콘
- #ifndef PIN_MT_EN
- #define PIN_MT_EN 0
- #endif
- // <o> PIN_TXD_BLE - 눔왯랙箇
- #ifndef PIN_TXD_BLE
- #define PIN_TXD_BLE 22
- #endif
- // <o> PIN_RXD_BLE - 눔왯쌈澗
- #ifndef PIN_RXD_BLE
- #define PIN_RXD_BLE 20
- #endif
- // <o> PIN_UNUSED - 괏즛多신
- #ifndef PIN_UNUSED
- #define PIN_UNUSED 19
- #endif
- // <o> PIN_LED_CONTROL - LED_CONTROL多신
- #ifndef PIN_LED_CONTROL
- #define PIN_LED_CONTROL 17
- #endif
- // <o> PIN_LED_ENABLE - LED_ENABLE多신
- #ifndef PIN_LED_ENABLE
- #define PIN_LED_ENABLE 31
- #endif
- // <o> PIN_SEL - 璘塘糾혐롸多신
- #ifndef PIN_SEL
- #define PIN_SEL 6
- #endif
- // <o> PIN_ADC_EN - 괌칟箕제ADC賈콘
- #ifndef PIN_ADC_MEMBRANEPRESSURE_EN
- #define PIN_ADC_MEMBRANEPRESSURE_EN 4
- #endif
- // <o> PIN_ADC_MEMBRANEPRESSURE1_IN - 품신괌칟箕제ADC渴흙多신
- #ifndef PIN_ADC_MEMBRANEPRESSURE1_IN
- #define PIN_ADC_MEMBRANEPRESSURE1_IN 3
- #endif
- // <o> PIN_ADC_MEMBRANEPRESSURE1_CHANNEL - 품신괌칟箕제ADC渴흙繫돛
- #ifndef PIN_ADC_MEMBRANEPRESSURE1_CHANNEL
- #define PIN_ADC_MEMBRANEPRESSURE1_CHANNEL 1
- #endif
- // <o> PIN_ADC_MEMBRANEPRESSURE2_IN - 빈신괌칟箕제ADC渴흙多신
- #ifndef PIN_ADC_MEMBRANEPRESSURE2_IN
- #define PIN_ADC_MEMBRANEPRESSURE2_IN 5
- #endif
- // <o> PIN_ADC_MEMBRANEPRESSURE2_CHANNEL - 빈신괌칟箕제ADC渴흙繫돛
- #ifndef PIN_ADC_MEMBRANEPRESSURE2_CHANNEL
- #define PIN_ADC_MEMBRANEPRESSURE2_CHANNEL 3
- #endif
- // <o> PIN_ADC_CHANNEL - ADC渴흙繫돛
- #ifndef PIN_ADC_CHANNEL
- #define PIN_ADC_CHANNEL 0
- #endif
- // <o> PIN_ADC_IN - 든넥ADC渴흙多신
- #ifndef PIN_ADC_IN
- #define PIN_ADC_IN 2
- #endif
- // <o> PIN_ADC_EN - 든넥ADC賈콘
- #ifndef PIN_ADC_EN
- #define PIN_ADC_EN 1
- #endif
- // <o> ACC_FIFO_ENABLE - 속醵똑FIFO친駕
- // <0=> 밑균
- // <1=> 역폘
- #ifndef ACC_FIFO_ENABLE
- #define ACC_FIFO_ENABLE 0
- #endif
- // <o> PIN_LSM_MISO - LSM_MISO多신
- #ifndef PIN_LSM_MISO
- #define PIN_LSM_MISO 25
- #endif
- // <o> PIN_LSM_MOSI - LSM_MOSI多신
- #ifndef PIN_LSM_MOSI
- #define PIN_LSM_MOSI 26
- #endif
- // <o> PIN_LSM_SCLK - LSM_SCLK多신
- #ifndef PIN_LSM_SCLK
- #define PIN_LSM_SCLK 27
- #endif
- // <o> PIN_LSM_nCS - LSM_nCS多신
- #ifndef PIN_LSM_nCS
- #define PIN_LSM_nCS 28
- #endif
- // <o> QMC6310_01_ENABLE - 棍꼬뒈늚셕01角뤠역폘
- // <0=> 밑균
- // <1=> 역폘
- #ifndef QMC6310_01_ENABLE
- #define QMC6310_01_ENABLE 0
- #endif
- // <o> PIN_QMC6310_01_SCL - QMC6310_01_SCL多신
- #ifndef PIN_QMC6310_01_SCL
- #define PIN_QMC6310_01_SCL 29
- #endif
- // <o> PIN_QMC6310_01_SDA - QMC6310_01_SDA多신
- #ifndef PIN_QMC6310_01_SDA
- #define PIN_QMC6310_01_SDA 30
- #endif
- // <o> QMC6310_02_ENABLE - 棍꼬뒈늚셕02角뤠역폘
- // <0=> 밑균
- // <1=> 역폘
- #ifndef QMC6310_02_ENABLE
- #define QMC6310_02_ENABLE 0
- #endif
- // <o> PIN_QMC6310_02_SCL - QMC6310_02_SCL多신
- #ifndef PIN_QMC6310_02_SCL
- #define PIN_QMC6310_02_SCL 18
- #endif
- // <o> PIN_QMC6310_02_SDA - QMC6310_02_SDA多신
- #ifndef PIN_QMC6310_02_SDA
- #define PIN_QMC6310_02_SDA 16
- #endif
- // <o> QMC6310_03_ENABLE - 棍꼬뒈늚셕03角뤠역폘
- // <0=> 밑균
- // <1=> 역폘
- #ifndef QMC6310_03_ENABLE
- #define QMC6310_03_ENABLE 0
- #endif
- // <o> PIN_QMC6310_03_SCL - QMC6310_03_SCL多신
- #ifndef PIN_QMC6310_03_SCL
- #define PIN_QMC6310_03_SCL 18
- #endif
- // <o> PIN_QMC6310_03_SDA - QMC6310_03_SDA多신
- #ifndef PIN_QMC6310_03_SDA
- #define PIN_QMC6310_03_SDA 16
- #endif
- // <o> PIN_CHARGING - 攣瞳념든多신
- #ifndef PIN_CHARGING
- #define PIN_CHARGING 8
- #endif
- // </h>
- #endif
- // </h>
- // <<< end of configuration section >>>
- #endif //SDK_CONFIG_H
|