mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-18 07:58:13 +08:00
修改了Web后台的部分界面,增加了HAmqtt中的总电量传感器,后台新增mqtt上报频率设置
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Generated by MTK Easy PinMux Tool Version 1.0.4 for 7687. Copyright MediaTek Inc. (C) 2015.
|
||||
* Thu Jun 30 15:06:22 2016
|
||||
* Do Not Modify the File.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Filename:
|
||||
* ---------
|
||||
* ***.*
|
||||
*
|
||||
* Project:
|
||||
* --------
|
||||
*
|
||||
* Description:
|
||||
* ------------
|
||||
*
|
||||
* Author:
|
||||
* -------
|
||||
*
|
||||
*============================================================================
|
||||
****************************************************************************/
|
||||
#ifndef _EPT_EINT_DRV_H
|
||||
#define _EPT_EINT_DRV_H
|
||||
|
||||
|
||||
#endif /* _EPT_EINT_DRV_H */
|
||||
|
||||
|
||||
650
mico-os/platform/MCU/MTK7697/apps/bootloader/inc/ept_gpio_drv.h
Normal file
650
mico-os/platform/MCU/MTK7697/apps/bootloader/inc/ept_gpio_drv.h
Normal file
@@ -0,0 +1,650 @@
|
||||
/*
|
||||
* Generated by MTK Easy PinMux Tool Version 1.0.4 for 7687. Copyright MediaTek Inc. (C) 2015.
|
||||
* Thu Jun 30 15:06:22 2016
|
||||
* Do Not Modify the File.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Filename:
|
||||
* ---------
|
||||
* ***.*
|
||||
*
|
||||
* Project:
|
||||
* --------
|
||||
*
|
||||
* Description:
|
||||
* ------------
|
||||
*
|
||||
* Author:
|
||||
* -------
|
||||
*
|
||||
*============================================================================
|
||||
****************************************************************************/
|
||||
#ifndef _EPT_GPIO_DRV_H
|
||||
#define _EPT_GPIO_DRV_H
|
||||
|
||||
|
||||
#define MODE_0 0
|
||||
#define MODE_1 1
|
||||
#define MODE_2 2
|
||||
#define MODE_3 3
|
||||
#define MODE_4 4
|
||||
#define MODE_5 5
|
||||
#define MODE_6 6
|
||||
#define MODE_7 7
|
||||
#define MODE_8 8
|
||||
#define MODE_9 9
|
||||
#define MODE_NC 0
|
||||
#define OUTPUT_ENABLE 1
|
||||
#define OUTPUT_DISABLE 0
|
||||
#define IES_ENABLE 1
|
||||
#define IES_DISABLE 0
|
||||
#define PULL_UP_ENABLE 1
|
||||
#define PULL_UP_DISABLE 0
|
||||
#define PULL_DOWN_ENABLE 1
|
||||
#define PULL_DOWN_DISABLE 0
|
||||
#define GPIO_PORTNULL_MODE 0
|
||||
#define GPIO_PORTNULL_OE 0
|
||||
#define GPIO_PORTNULL_IES 0
|
||||
#define GPIO_PORTNULL_PULL_UP 0
|
||||
#define GPIO_PORTNULL_PULL_DOWN 0
|
||||
#define GPIO_PORTNULL_OUTPUT 0
|
||||
|
||||
#define GPIO_PORT0_MODE MODE_7 // 7:UART1_RTS_CM4
|
||||
#define GPIO_PORT1_MODE MODE_7 // 7:UART1_CTS_CM4
|
||||
#define GPIO_PORT2_MODE MODE_7 // 7:UART1_RX_CM4
|
||||
#define GPIO_PORT3_MODE MODE_7 // 7:UART1_TX_CM4
|
||||
#define GPIO_PORT4_MODE MODE_7 // 7:SPI_DATA0_EXT
|
||||
#define GPIO_PORT5_MODE MODE_7 // 7:SPI_DATA1_EXT
|
||||
#define GPIO_PORT6_MODE MODE_8 // 8:GPIO6
|
||||
#define GPIO_PORT7_MODE MODE_7 // 7:SPI_CS_EXT
|
||||
#define GPIO_PORT8_MODE MODE_8 // 8:GPIO8
|
||||
#define GPIO_PORT9_MODE MODE_8 // 8:GPIO9
|
||||
#define GPIO_PORT10_MODE MODE_8 // 8:GPIO10
|
||||
#define GPIO_PORT11_MODE MODE_8 // 8:GPIO11
|
||||
#define GPIO_PORT12_MODE MODE_8 // 8:GPIO12
|
||||
#define GPIO_PORT13_MODE MODE_8 // 8:GPIO13
|
||||
#define GPIO_PORT14_MODE MODE_8 // 8:GPIO14
|
||||
#define GPIO_PORT15_MODE MODE_8 // 8:GPIO15
|
||||
#define GPIO_PORT16_MODE MODE_8 // 8:GPIO16
|
||||
#define GPIO_PORT17_MODE MODE_8 // 8:GPIO17
|
||||
#define GPIO_PORT18_MODE MODE_8 // 8:GPIO18
|
||||
#define GPIO_PORT19_MODE MODE_8 // 8:GPIO19
|
||||
#define GPIO_PORT20_MODE MODE_8 // 8:GPIO20
|
||||
#define GPIO_PORT21_MODE MODE_8 // 8:GPIO21
|
||||
#define GPIO_PORT22_MODE MODE_8 // 8:GPIO22
|
||||
#define GPIO_PORT23_MODE MODE_8 // 8:GPIO23
|
||||
#define GPIO_PORT24_MODE MODE_7 // 7:SPI_DATA2_EXT
|
||||
#define GPIO_PORT25_MODE MODE_7 // 7:SPI_DATA3_EXT
|
||||
#define GPIO_PORT26_MODE MODE_7 // 7:SPI_CLK_EXT
|
||||
#define GPIO_PORT27_MODE MODE_4 // 4:I2C1_CLK
|
||||
#define GPIO_PORT28_MODE MODE_4 // 4:I2C1_DATA
|
||||
#define GPIO_PORT29_MODE MODE_8 // 8:GPIO29
|
||||
#define GPIO_PORT30_MODE MODE_8 // 8:GPIO30
|
||||
#define GPIO_PORT31_MODE MODE_8 // 8:GPIO31
|
||||
#define GPIO_PORT32_MODE MODE_8 // 8:GPIO32
|
||||
#define GPIO_PORT33_MODE MODE_8 // 8:GPIO33
|
||||
#define GPIO_PORT34_MODE MODE_8 // 8:GPIO34
|
||||
#define GPIO_PORT35_MODE MODE_NC
|
||||
#define GPIO_PORT36_MODE MODE_7 // 7:UART2_RX_CM4
|
||||
#define GPIO_PORT37_MODE MODE_7 // 7:UART2_TX_CM4
|
||||
#define GPIO_PORT38_MODE MODE_8 // 8:GPIO38
|
||||
#define GPIO_PORT39_MODE MODE_8 // 8:GPIO39
|
||||
#define GPIO_PORT40_MODE MODE_8 // 8:GPIO40
|
||||
#define GPIO_PORT41_MODE MODE_8 // 8:GPIO41
|
||||
#define GPIO_PORT42_MODE MODE_8 // 8:GPIO42
|
||||
#define GPIO_PORT43_MODE MODE_8 // 8:GPIO43
|
||||
#define GPIO_PORT44_MODE MODE_8 // 8:GPIO44
|
||||
#define GPIO_PORT45_MODE MODE_8 // 8:GPIO45
|
||||
#define GPIO_PORT46_MODE MODE_8 // 8:GPIO46
|
||||
#define GPIO_PORT47_MODE MODE_8 // 8:GPIO47
|
||||
#define GPIO_PORT48_MODE MODE_8 // 8:GPIO48
|
||||
#define GPIO_PORT49_MODE MODE_8 // 8:GPIO49
|
||||
#define GPIO_PORT50_MODE MODE_8 // 8:GPIO50
|
||||
#define GPIO_PORT51_MODE MODE_8 // 8:GPIO51
|
||||
#define GPIO_PORT52_MODE MODE_8 // 8:GPIO52
|
||||
#define GPIO_PORT53_MODE MODE_8 // 8:GPIO53
|
||||
#define GPIO_PORT54_MODE MODE_8 // 8:GPIO54
|
||||
#define GPIO_PORT55_MODE MODE_8 // 8:GPIO55
|
||||
#define GPIO_PORT56_MODE MODE_8 // 8:GPIO56
|
||||
#define GPIO_PORT57_MODE MODE_8 // 8:GPIO57
|
||||
#define GPIO_PORT58_MODE MODE_8 // 8:GPIO58
|
||||
#define GPIO_PORT59_MODE MODE_6 // 6:SWD_DIO
|
||||
#define GPIO_PORT60_MODE MODE_6 // 6:SWD_CLK
|
||||
#define GPIO_PORT61_MODE MODE_8 // 8:GPIO61
|
||||
#define GPIO_PORT62_MODE MODE_8 // 8:GPIO62
|
||||
#define GPIO_PORT63_MODE MODE_8 // 8:GPIO63
|
||||
#define GPIO_PORT64_MODE MODE_8 // 8:GPIO64
|
||||
#define GPIO_PORT65_MODE MODE_8 // 8:GPIO65
|
||||
#define GPIO_PORT66_MODE MODE_8 // 8:GPIO66
|
||||
#define GPIO_PORT67_MODE MODE_8 // 8:GPIO67
|
||||
#define GPIO_PORT68_MODE MODE_8 // 8:GPIO68
|
||||
#define GPIO_PORT69_MODE MODE_8 // 8:GPIO69
|
||||
#define GPIO_PORT70_MODE MODE_8 // 8:GPIO70
|
||||
#define GPIO_PORT71_MODE MODE_8 // 8:GPIO71
|
||||
#define GPIO_PORT72_MODE MODE_8 // 8:GPIO72
|
||||
|
||||
|
||||
// Input
|
||||
#define GPIO_PORT0_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT0_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT1_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT1_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT2_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT2_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT3_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT3_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT4_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT4_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT5_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT5_IES IES_ENABLE
|
||||
// Output
|
||||
#define GPIO_PORT6_OE OUTPUT_ENABLE
|
||||
#define GPIO_PORT6_IES IES_DISABLE
|
||||
// Input
|
||||
#define GPIO_PORT7_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT7_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT8_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT8_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT9_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT9_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT10_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT10_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT11_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT11_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT12_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT12_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT13_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT13_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT14_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT14_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT15_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT15_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT16_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT16_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT17_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT17_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT18_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT18_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT19_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT19_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT20_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT20_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT21_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT21_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT22_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT22_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT23_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT23_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT24_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT24_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT25_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT25_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT26_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT26_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT27_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT27_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT28_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT28_IES IES_ENABLE
|
||||
// Output
|
||||
#define GPIO_PORT29_OE OUTPUT_ENABLE
|
||||
#define GPIO_PORT29_IES IES_DISABLE
|
||||
// Output
|
||||
#define GPIO_PORT30_OE OUTPUT_ENABLE
|
||||
#define GPIO_PORT30_IES IES_DISABLE
|
||||
// Output
|
||||
#define GPIO_PORT31_OE OUTPUT_ENABLE
|
||||
#define GPIO_PORT31_IES IES_DISABLE
|
||||
// Output
|
||||
#define GPIO_PORT32_OE OUTPUT_ENABLE
|
||||
#define GPIO_PORT32_IES IES_DISABLE
|
||||
// Output
|
||||
#define GPIO_PORT33_OE OUTPUT_ENABLE
|
||||
#define GPIO_PORT33_IES IES_DISABLE
|
||||
// Output
|
||||
#define GPIO_PORT34_OE OUTPUT_ENABLE
|
||||
#define GPIO_PORT34_IES IES_DISABLE
|
||||
// Input
|
||||
#define GPIO_PORT35_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT35_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT36_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT36_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT37_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT37_IES IES_ENABLE
|
||||
// Output
|
||||
#define GPIO_PORT38_OE OUTPUT_ENABLE
|
||||
#define GPIO_PORT38_IES IES_DISABLE
|
||||
// Output
|
||||
#define GPIO_PORT39_OE OUTPUT_ENABLE
|
||||
#define GPIO_PORT39_IES IES_DISABLE
|
||||
// Input
|
||||
#define GPIO_PORT40_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT40_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT41_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT41_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT42_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT42_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT43_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT43_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT44_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT44_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT45_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT45_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT46_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT46_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT47_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT47_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT48_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT48_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT49_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT49_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT50_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT50_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT51_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT51_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT52_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT52_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT53_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT53_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT54_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT54_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT55_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT55_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT56_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT56_IES IES_ENABLE
|
||||
// Output
|
||||
#define GPIO_PORT57_OE OUTPUT_ENABLE
|
||||
#define GPIO_PORT57_IES IES_DISABLE
|
||||
// Output
|
||||
#define GPIO_PORT58_OE OUTPUT_ENABLE
|
||||
#define GPIO_PORT58_IES IES_DISABLE
|
||||
// Input
|
||||
#define GPIO_PORT59_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT59_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT60_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT60_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT61_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT61_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT62_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT62_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT63_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT63_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT64_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT64_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT65_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT65_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT66_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT66_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT67_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT67_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT68_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT68_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT69_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT69_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT70_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT70_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT71_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT71_IES IES_ENABLE
|
||||
// Input
|
||||
#define GPIO_PORT72_OE OUTPUT_DISABLE
|
||||
#define GPIO_PORT72_IES IES_ENABLE
|
||||
|
||||
|
||||
#define GPIO_PORT0_OUTPUT 0
|
||||
#define GPIO_PORT1_OUTPUT 0
|
||||
#define GPIO_PORT2_OUTPUT 0
|
||||
#define GPIO_PORT3_OUTPUT 0
|
||||
#define GPIO_PORT4_OUTPUT 0
|
||||
#define GPIO_PORT5_OUTPUT 0
|
||||
#define GPIO_PORT6_OUTPUT 1
|
||||
#define GPIO_PORT7_OUTPUT 0
|
||||
#define GPIO_PORT8_OUTPUT 0
|
||||
#define GPIO_PORT9_OUTPUT 0
|
||||
#define GPIO_PORT10_OUTPUT 0
|
||||
#define GPIO_PORT11_OUTPUT 0
|
||||
#define GPIO_PORT12_OUTPUT 0
|
||||
#define GPIO_PORT13_OUTPUT 0
|
||||
#define GPIO_PORT14_OUTPUT 0
|
||||
#define GPIO_PORT15_OUTPUT 0
|
||||
#define GPIO_PORT16_OUTPUT 0
|
||||
#define GPIO_PORT17_OUTPUT 0
|
||||
#define GPIO_PORT18_OUTPUT 0
|
||||
#define GPIO_PORT19_OUTPUT 0
|
||||
#define GPIO_PORT20_OUTPUT 0
|
||||
#define GPIO_PORT21_OUTPUT 0
|
||||
#define GPIO_PORT22_OUTPUT 0
|
||||
#define GPIO_PORT23_OUTPUT 0
|
||||
#define GPIO_PORT24_OUTPUT 0
|
||||
#define GPIO_PORT25_OUTPUT 0
|
||||
#define GPIO_PORT26_OUTPUT 0
|
||||
#define GPIO_PORT27_OUTPUT 0
|
||||
#define GPIO_PORT28_OUTPUT 0
|
||||
#define GPIO_PORT29_OUTPUT 0
|
||||
#define GPIO_PORT30_OUTPUT 0
|
||||
#define GPIO_PORT31_OUTPUT 0
|
||||
#define GPIO_PORT32_OUTPUT 0
|
||||
#define GPIO_PORT33_OUTPUT 0
|
||||
#define GPIO_PORT34_OUTPUT 0
|
||||
#define GPIO_PORT35_OUTPUT 0
|
||||
#define GPIO_PORT36_OUTPUT 0
|
||||
#define GPIO_PORT37_OUTPUT 0
|
||||
#define GPIO_PORT38_OUTPUT 1
|
||||
#define GPIO_PORT39_OUTPUT 0
|
||||
#define GPIO_PORT40_OUTPUT 0
|
||||
#define GPIO_PORT41_OUTPUT 0
|
||||
#define GPIO_PORT42_OUTPUT 0
|
||||
#define GPIO_PORT43_OUTPUT 0
|
||||
#define GPIO_PORT44_OUTPUT 0
|
||||
#define GPIO_PORT45_OUTPUT 0
|
||||
#define GPIO_PORT46_OUTPUT 0
|
||||
#define GPIO_PORT47_OUTPUT 0
|
||||
#define GPIO_PORT48_OUTPUT 0
|
||||
#define GPIO_PORT49_OUTPUT 0
|
||||
#define GPIO_PORT50_OUTPUT 0
|
||||
#define GPIO_PORT51_OUTPUT 0
|
||||
#define GPIO_PORT52_OUTPUT 0
|
||||
#define GPIO_PORT53_OUTPUT 0
|
||||
#define GPIO_PORT54_OUTPUT 0
|
||||
#define GPIO_PORT55_OUTPUT 0
|
||||
#define GPIO_PORT56_OUTPUT 0
|
||||
#define GPIO_PORT57_OUTPUT 0
|
||||
#define GPIO_PORT58_OUTPUT 0
|
||||
#define GPIO_PORT59_OUTPUT 0
|
||||
#define GPIO_PORT60_OUTPUT 0
|
||||
#define GPIO_PORT61_OUTPUT 0
|
||||
#define GPIO_PORT62_OUTPUT 0
|
||||
#define GPIO_PORT63_OUTPUT 0
|
||||
#define GPIO_PORT64_OUTPUT 0
|
||||
#define GPIO_PORT65_OUTPUT 0
|
||||
#define GPIO_PORT66_OUTPUT 0
|
||||
#define GPIO_PORT67_OUTPUT 0
|
||||
#define GPIO_PORT68_OUTPUT 0
|
||||
#define GPIO_PORT69_OUTPUT 0
|
||||
#define GPIO_PORT70_OUTPUT 0
|
||||
#define GPIO_PORT71_OUTPUT 0
|
||||
#define GPIO_PORT72_OUTPUT 0
|
||||
|
||||
|
||||
// Disable
|
||||
#define GPIO_PORT0_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT0_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT1_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT1_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Enable:_Pull_Up
|
||||
#define GPIO_PORT2_PULL_UP PULL_UP_ENABLE
|
||||
#define GPIO_PORT2_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT3_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT3_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT4_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT4_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT5_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT5_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT6_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT6_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT7_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT7_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT8_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT8_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT9_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT9_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT10_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT10_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT11_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT11_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT12_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT12_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT13_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT13_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT14_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT14_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT15_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT15_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT16_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT16_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT17_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT17_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT18_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT18_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT19_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT19_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT20_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT20_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT21_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT21_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT22_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT22_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT23_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT23_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Disable
|
||||
#define GPIO_PORT24_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT24_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT25_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT25_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT26_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT26_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT27_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT27_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT28_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT28_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT29_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT29_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT30_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT30_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT31_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT31_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT32_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT32_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT33_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT33_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT34_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT34_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT35_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT35_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Up
|
||||
#define GPIO_PORT36_PULL_UP PULL_UP_ENABLE
|
||||
#define GPIO_PORT36_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT37_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT37_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT38_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT38_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT39_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT39_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT40_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT40_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT41_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT41_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT42_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT42_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT43_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT43_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT44_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT44_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT45_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT45_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT46_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT46_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT47_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT47_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT48_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT48_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT49_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT49_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT50_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT50_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT51_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT51_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT52_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT52_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT53_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT53_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT54_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT54_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT55_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT55_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT56_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT56_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Disable
|
||||
#define GPIO_PORT57_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT57_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Disable
|
||||
#define GPIO_PORT58_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT58_PULL_DOWN PULL_DOWN_DISABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT59_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT59_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT60_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT60_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT61_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT61_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT62_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT62_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT63_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT63_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT64_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT64_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT65_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT65_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT66_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT66_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT67_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT67_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT68_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT68_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT69_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT69_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT70_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT70_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT71_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT71_PULL_DOWN PULL_DOWN_ENABLE
|
||||
// Enable:_Pull_Down
|
||||
#define GPIO_PORT72_PULL_UP PULL_UP_DISABLE
|
||||
#define GPIO_PORT72_PULL_DOWN PULL_DOWN_ENABLE
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /* _EPT_GPIO_DRV_H */
|
||||
|
||||
|
||||
56
mico-os/platform/MCU/MTK7697/apps/bootloader/inc/flash_map.h
Normal file
56
mico-os/platform/MCU/MTK7697/apps/bootloader/inc/flash_map.h
Normal file
@@ -0,0 +1,56 @@
|
||||
/* Copyright Statement:
|
||||
*
|
||||
* (C) 2005-2016 MediaTek Inc. All rights reserved.
|
||||
*
|
||||
* This software/firmware and related documentation ("MediaTek Software") are
|
||||
* protected under relevant copyright laws. The information contained herein
|
||||
* is confidential and proprietary to MediaTek Inc. ("MediaTek") and/or its licensors.
|
||||
* Without the prior written permission of MediaTek and/or its licensors,
|
||||
* any reproduction, modification, use or disclosure of MediaTek Software,
|
||||
* and information contained herein, in whole or in part, shall be strictly prohibited.
|
||||
* You may only use, reproduce, modify, or distribute (as applicable) MediaTek Software
|
||||
* if you have agreed to and been bound by the applicable license agreement with
|
||||
* MediaTek ("License Agreement") and been granted explicit permission to do so within
|
||||
* the License Agreement ("Permitted User"). If you are not a Permitted User,
|
||||
* please cease any access or use of MediaTek Software immediately.
|
||||
* BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
|
||||
* THAT MEDIATEK SOFTWARE RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES
|
||||
* ARE PROVIDED TO RECEIVER ON AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL
|
||||
* WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
|
||||
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
|
||||
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
|
||||
* SUPPLIED WITH MEDIATEK SOFTWARE, AND RECEIVER AGREES TO LOOK ONLY TO SUCH
|
||||
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. RECEIVER EXPRESSLY ACKNOWLEDGES
|
||||
* THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES
|
||||
* CONTAINED IN MEDIATEK SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK
|
||||
* SOFTWARE RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR
|
||||
* STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND
|
||||
* CUMULATIVE LIABILITY WITH RESPECT TO MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
|
||||
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE MEDIATEK SOFTWARE AT ISSUE,
|
||||
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY RECEIVER TO
|
||||
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
|
||||
*/
|
||||
|
||||
#ifndef __FLASH_MAP_H__
|
||||
#define __FLASH_MAP_H__
|
||||
|
||||
|
||||
#define FLASH_LOADER_SIZE 0x8000 /* 32KB */
|
||||
#define FLASH_COMM_CONF_SIZE 0x0000 /* 0KB, dummy for 97 restore default build */
|
||||
#define FLASH_STA_CONF_SIZE 0x0000 /* 0KB, dummy for 97 restore default build */
|
||||
#define FLASH_AP_CONF_SIZE 0x0000 /* 0KB, dummy for 97 restore default build */
|
||||
#define FLASH_N9_RAM_CODE_SIZE 0x71000 /* 452KB */
|
||||
#define FLASH_CM4_XIP_CODE_SIZE 0x1ED000 /* 1972KB */
|
||||
#define FLASH_TMP_SIZE 0x18A000 /* 1576KB */
|
||||
#define FLASH_USR_CONF_SIZE 0x10000 /* 64KB */
|
||||
|
||||
#define CM4_FLASH_LOADER_ADDR 0x0
|
||||
#define CM4_FLASH_COMM_CONF_ADDR (CM4_FLASH_LOADER_ADDR + FLASH_LOADER_SIZE) /* dummy for 97 restore default build */
|
||||
#define CM4_FLASH_N9_RAMCODE_ADDR (CM4_FLASH_LOADER_ADDR + FLASH_LOADER_SIZE)
|
||||
#define CM4_FLASH_CM4_ADDR (CM4_FLASH_N9_RAMCODE_ADDR + FLASH_N9_RAM_CODE_SIZE)
|
||||
#define CM4_FLASH_TMP_ADDR (CM4_FLASH_CM4_ADDR + FLASH_CM4_XIP_CODE_SIZE)
|
||||
#define CM4_FLASH_USR_CONF_ADDR (CM4_FLASH_TMP_ADDR + FLASH_TMP_SIZE)
|
||||
|
||||
|
||||
#endif // __FLASH_MAP_H__
|
||||
@@ -0,0 +1,108 @@
|
||||
/* Copyright Statement:
|
||||
*
|
||||
* (C) 2005-2016 MediaTek Inc. All rights reserved.
|
||||
*
|
||||
* This software/firmware and related documentation ("MediaTek Software") are
|
||||
* protected under relevant copyright laws. The information contained herein
|
||||
* is confidential and proprietary to MediaTek Inc. ("MediaTek") and/or its licensors.
|
||||
* Without the prior written permission of MediaTek and/or its licensors,
|
||||
* any reproduction, modification, use or disclosure of MediaTek Software,
|
||||
* and information contained herein, in whole or in part, shall be strictly prohibited.
|
||||
* You may only use, reproduce, modify, or distribute (as applicable) MediaTek Software
|
||||
* if you have agreed to and been bound by the applicable license agreement with
|
||||
* MediaTek ("License Agreement") and been granted explicit permission to do so within
|
||||
* the License Agreement ("Permitted User"). If you are not a Permitted User,
|
||||
* please cease any access or use of MediaTek Software immediately.
|
||||
* BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
|
||||
* THAT MEDIATEK SOFTWARE RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES
|
||||
* ARE PROVIDED TO RECEIVER ON AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL
|
||||
* WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
|
||||
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
|
||||
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
|
||||
* SUPPLIED WITH MEDIATEK SOFTWARE, AND RECEIVER AGREES TO LOOK ONLY TO SUCH
|
||||
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. RECEIVER EXPRESSLY ACKNOWLEDGES
|
||||
* THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES
|
||||
* CONTAINED IN MEDIATEK SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK
|
||||
* SOFTWARE RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR
|
||||
* STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND
|
||||
* CUMULATIVE LIABILITY WITH RESPECT TO MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
|
||||
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE MEDIATEK SOFTWARE AT ISSUE,
|
||||
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY RECEIVER TO
|
||||
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
|
||||
*/
|
||||
|
||||
#ifndef __HAL_FEATURE_CONFIG_H__
|
||||
#define __HAL_FEATURE_CONFIG_H__
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* module ON or OFF feature option,only option in this temple
|
||||
*****************************************************************************/
|
||||
|
||||
//#define HAL_ACCDET_MODULE_ENABLED
|
||||
#define HAL_ADC_MODULE_ENABLED
|
||||
#define HAL_AES_MODULE_ENABLED
|
||||
//#define HAL_AUDIO_MODULE_ENABLED
|
||||
#define HAL_CACHE_MODULE_ENABLED
|
||||
#define HAL_DES_MODULE_ENABLED
|
||||
#define HAL_EINT_MODULE_ENABLED
|
||||
#define HAL_FLASH_MODULE_ENABLED
|
||||
#define HAL_GDMA_MODULE_ENABLED
|
||||
#define HAL_GPC_MODULE_ENABLED
|
||||
#define HAL_GPIO_MODULE_ENABLED
|
||||
#define HAL_GPT_MODULE_ENABLED
|
||||
#define HAL_I2C_MASTER_MODULE_ENABLED
|
||||
#define HAL_I2S_MODULE_ENABLED
|
||||
#define HAL_IRRX_MODULE_ENABLED
|
||||
#define HAL_IRTX_MODULE_ENABLED
|
||||
//#define HAL_ISINK_MODULE_ENABLED
|
||||
//#define HAL_KEYPAD_MODULE_ENABLED
|
||||
#define HAL_MD5_MODULE_ENABLED
|
||||
//#define HAL_MPU_MODULE_ENABLED
|
||||
#define HAL_NVIC_MODULE_ENABLED
|
||||
#define HAL_PWM_MODULE_ENABLED
|
||||
#define HAL_RTC_MODULE_ENABLED
|
||||
//#define HAL_SD_MODULE_ENABLED
|
||||
//#define HAL_SDIO_MODULE_ENABLED
|
||||
#define HAL_SHA_MODULE_ENABLED
|
||||
#define HAL_SPI_MASTER_MODULE_ENABLED
|
||||
//#define HAL_SPI_SLAVE_MODULE_ENABLED
|
||||
#define HAL_TRNG_MODULE_ENABLED
|
||||
#define HAL_UART_MODULE_ENABLED
|
||||
#define HAL_WDT_MODULE_ENABLED
|
||||
|
||||
#define MTK_HAL_PLAIN_LOG_ENABLE
|
||||
/*****************************************************************************
|
||||
* module sub features define
|
||||
*****************************************************************************/
|
||||
|
||||
#ifdef HAL_PWM_MODULE_ENABLED
|
||||
#define HAL_PWM_FEATURE_SINGLE_SOURCE_CLOCK /*please not to modify*/
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef HAL_RTC_MODULE_ENABLED
|
||||
#define HAL_RTC_FEATURE_SLEEP /*please not to modify*/
|
||||
#endif
|
||||
|
||||
#ifdef HAL_UART_MODULE_ENABLED
|
||||
#define HAL_UART_FEATURE_VFIFO_DMA_TIMEOUT /*please not to modify*/
|
||||
#endif
|
||||
|
||||
#ifdef HAL_I2S_MODULE_ENABLED
|
||||
#define HAL_I2S_EXTENDED /*please not to modify*/
|
||||
#define HAL_I2S_SUPPORT_VFIFO /*please not to modify*/
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __HAL_FEATURE_CONFIG_H__ */
|
||||
|
||||
Reference in New Issue
Block a user