mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-14 14:08:19 +08:00
修复代码错误
This commit is contained in:
0
mico-os/board/EMW3081/bootloaderLinkerForIAR.icf
Normal file → Executable file
0
mico-os/board/EMW3081/bootloaderLinkerForIAR.icf
Normal file → Executable file
0
mico-os/board/EMW3081/build_info.h
Normal file → Executable file
0
mico-os/board/EMW3081/build_info.h
Normal file → Executable file
0
mico-os/board/EMW3081/fw_loader_main.c
Normal file → Executable file
0
mico-os/board/EMW3081/fw_loader_main.c
Normal file → Executable file
@@ -104,12 +104,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_1,
|
||||
|
||||
0
mico-os/board/EMW3081/platform_autoconf.h
Normal file → Executable file
0
mico-os/board/EMW3081/platform_autoconf.h
Normal file → Executable file
0
mico-os/board/EMW3081/platform_config.h
Normal file → Executable file
0
mico-os/board/EMW3081/platform_config.h
Normal file → Executable file
0
mico-os/board/EMW3081/platform_opts.h
Normal file → Executable file
0
mico-os/board/EMW3081/platform_opts.h
Normal file → Executable file
@@ -102,12 +102,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_1,
|
||||
|
||||
@@ -102,12 +102,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_1,
|
||||
|
||||
@@ -26,7 +26,7 @@ NAME := Board_EMW5031
|
||||
WLAN_CHIP := mw30x
|
||||
WLAN_CHIP_REVISION := _uapsta
|
||||
WLAN_CHIP_FAMILY := MW3xx
|
||||
WLAN_CHIP_FIRMWARE_VER := 14.76.36.p103
|
||||
WLAN_CHIP_FIRMWARE_VER := 14.76.36.p84
|
||||
|
||||
MODULE := 5031
|
||||
HOST_MCU_FAMILY := MW3xx
|
||||
|
||||
0
mico-os/board/EMW5031/flash_prog.elf
Normal file → Executable file
0
mico-os/board/EMW5031/flash_prog.elf
Normal file → Executable file
0
mico-os/board/EMW5031/platform.c
Normal file → Executable file
0
mico-os/board/EMW5031/platform.c
Normal file → Executable file
8
mico-os/board/EMW5031/platform.h
Normal file → Executable file
8
mico-os/board/EMW5031/platform.h
Normal file → Executable file
@@ -139,14 +139,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_1,
|
||||
MICO_IIS_2,
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_1,
|
||||
|
||||
0
mico-os/board/EMW5031/platform_config.h
Normal file → Executable file
0
mico-os/board/EMW5031/platform_config.h
Normal file → Executable file
@@ -26,7 +26,7 @@ NAME := Board_MK3031
|
||||
WLAN_CHIP := mw30x
|
||||
WLAN_CHIP_REVISION := _uapsta
|
||||
WLAN_CHIP_FAMILY := MW3xx
|
||||
WLAN_CHIP_FIRMWARE_VER := 14.76.36.p103
|
||||
WLAN_CHIP_FIRMWARE_VER := 14.76.36.p84
|
||||
|
||||
MODULE := 3031
|
||||
HOST_MCU_FAMILY := MW3xx
|
||||
@@ -58,8 +58,6 @@ ifndef NO_WIFI_FIRMWARE
|
||||
WIFI_FIRMWARE := $(MICO_OS_PATH)/resources/wifi_firmware/$(WLAN_CHIP)/$(WLAN_CHIP)$(WLAN_CHIP_REVISION)$(WLAN_CHIP_BIN_TYPE)-$(WLAN_CHIP_FIRMWARE_VER).bin
|
||||
endif
|
||||
|
||||
FILESYSTEM_IMAGE := build/$(APP_FULL)@$(PLATFORM)/resources/filesystem.bin
|
||||
|
||||
VALID_OSNS_COMBOS := mocOS@mocIP NoRTOS@LwIP
|
||||
VALID_TLS := mocSSL wolfSSL
|
||||
|
||||
|
||||
BIN
mico-os/board/MK3031/flash_prog.elf
Normal file → Executable file
BIN
mico-os/board/MK3031/flash_prog.elf
Normal file → Executable file
Binary file not shown.
@@ -72,8 +72,8 @@ PIN FUN1 FUN2 FUN3 FUN4
|
||||
21/24 UART1_TXD GPIO_44 ADC0_2
|
||||
22/25 UART1_RXD GPIO_45 ADC0_3
|
||||
23 GPIO_6
|
||||
26A2 I2C1_SDA GPIO_9
|
||||
27A1 I2C1_SCL GPIO_10
|
||||
26A1 I2C1_SDA GPIO_9
|
||||
27A2 I2C1_SCL GPIO_10
|
||||
28A3 GPIO_26 32K_OUT
|
||||
29A4 GND
|
||||
30B1 GPIO_43 ADC0_1
|
||||
@@ -139,14 +139,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_1,
|
||||
MICO_IIS_2,
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_1,
|
||||
@@ -196,6 +188,7 @@ typedef enum
|
||||
MICO_PARTITION_USER = 7,
|
||||
} mico_user_partition_t;
|
||||
|
||||
|
||||
#define STDIO_UART MICO_UART_1
|
||||
#define STDIO_UART_BAUDRATE (115200)
|
||||
|
||||
|
||||
0
mico-os/board/MK3031/platform_config.h
Normal file → Executable file
0
mico-os/board/MK3031/platform_config.h
Normal file → Executable file
@@ -26,7 +26,7 @@ NAME := Board_MK3031B
|
||||
WLAN_CHIP := mw30x
|
||||
WLAN_CHIP_REVISION := _uapsta
|
||||
WLAN_CHIP_FAMILY := MW3xx
|
||||
WLAN_CHIP_FIRMWARE_VER := 14.76.36.p103
|
||||
WLAN_CHIP_FIRMWARE_VER := 14.76.36.p84
|
||||
|
||||
MODULE := 3031B
|
||||
HOST_MCU_FAMILY := MW3xx
|
||||
|
||||
0
mico-os/board/MK3031B/flash_prog.elf
Normal file → Executable file
0
mico-os/board/MK3031B/flash_prog.elf
Normal file → Executable file
@@ -139,14 +139,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_1,
|
||||
MICO_IIS_2,
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_1,
|
||||
|
||||
@@ -82,12 +82,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_1,
|
||||
|
||||
@@ -83,12 +83,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_1,
|
||||
@@ -101,17 +95,6 @@ typedef enum
|
||||
MICO_PWM_NONE,
|
||||
} mico_pwm_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_GTIMER_1,
|
||||
MICO_GTIMER_2,
|
||||
MICO_GTIMER_3,
|
||||
MICO_GTIMER_4,
|
||||
MICO_GTIMER_5,
|
||||
MICO_GTIMER_MAX, /* Denotes the total number of GTIMER port aliases. Not a valid GTIMER alias */
|
||||
MICO_GTIMER_NONE,
|
||||
} mico_gtimer_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_ADC_1,
|
||||
|
||||
@@ -85,10 +85,6 @@
|
||||
* Platform provide OTA temporary partition as secondary application partition */
|
||||
//#define MICO_ENABLE_SECONDARY_APPLICATION
|
||||
|
||||
/************************************************************************
|
||||
* Support Easylink&softap mode */
|
||||
#define MICO_EASYLINK_AND_SOFTAP_ENABLED
|
||||
|
||||
/******************************************************
|
||||
* Enumerations
|
||||
******************************************************/
|
||||
|
||||
@@ -82,12 +82,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_3,
|
||||
|
||||
@@ -250,12 +250,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_1,
|
||||
|
||||
0
mico-os/board/MK3165/flash_prog.elf
Normal file → Executable file
0
mico-os/board/MK3165/flash_prog.elf
Normal file → Executable file
@@ -33,7 +33,7 @@ APP_OFFSET:= 0xC000
|
||||
|
||||
#ate firmware
|
||||
ATE_BIN_FILE := $(MICO_OS_PATH)/resources/ate_firmware/3165/ate.bin
|
||||
ATE_OFFSET:= 0x80000
|
||||
ATE_OFFSET:= 0x7FFFF
|
||||
|
||||
#wifi firmware
|
||||
|
||||
|
||||
@@ -255,12 +255,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_MAX, /* Denotes the total number of PWM port aliases. Not a valid PWM alias */
|
||||
|
||||
0
mico-os/board/MK3166/flash_prog.elf
Normal file → Executable file
0
mico-os/board/MK3166/flash_prog.elf
Normal file → Executable file
@@ -267,12 +267,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_MAX, /* Denotes the total number of PWM port aliases. Not a valid PWM alias */
|
||||
|
||||
@@ -267,12 +267,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_MAX, /* Denotes the total number of PWM port aliases. Not a valid PWM alias */
|
||||
|
||||
0
mico-os/board/MK3238/flash_prog.elf
Normal file → Executable file
0
mico-os/board/MK3238/flash_prog.elf
Normal file → Executable file
@@ -252,12 +252,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_MAX, /* Denotes the total number of PWM port aliases. Not a valid PWM alias */
|
||||
|
||||
0
mico-os/board/MK3239/flash_prog.elf
Normal file → Executable file
0
mico-os/board/MK3239/flash_prog.elf
Normal file → Executable file
@@ -32,8 +32,6 @@ APP_BIN_FILE :=$(BIN_OUTPUT_FILE)
|
||||
APP_OFFSET:= 0x8000
|
||||
|
||||
#ate firmware
|
||||
ATE_BIN_FILE := $(MICO_OS_PATH)/resources/ate_firmware/3165/ate.bin
|
||||
ATE_OFFSET:= 0x100000
|
||||
|
||||
#wifi firmware
|
||||
|
||||
@@ -47,4 +45,4 @@ gen_standard_images: build_done
|
||||
$(QUIET)$(RM) $(MOC_ALL_BIN_OUTPUT_FILE)
|
||||
$(PYTHON) $(GEN_COMMON_BIN_OUTPUT_FILE_SCRIPT) -o $(MOC_ALL_BIN_OUTPUT_FILE) -f $(BOOT_OFFSET) $(BOOT_BIN_FILE)
|
||||
$(PYTHON) $(GEN_COMMON_BIN_OUTPUT_FILE_SCRIPT) -o $(MOC_ALL_BIN_OUTPUT_FILE) -f $(APP_OFFSET) $(APP_BIN_FILE)
|
||||
$(PYTHON) $(GEN_COMMON_BIN_OUTPUT_FILE_SCRIPT) -o $(MOC_ALL_BIN_OUTPUT_FILE) -f $(ATE_OFFSET) $(ATE_BIN_FILE)
|
||||
|
||||
|
||||
@@ -315,22 +315,22 @@ const mico_logic_partition_t mico_partitions[] =
|
||||
.partition_length = 0x60000, //384k bytes
|
||||
.partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_DIS,
|
||||
},
|
||||
// [MICO_PARTITION_PARAMETER_1] =
|
||||
// {
|
||||
// .partition_owner = MICO_FLASH_QSPI,
|
||||
// .partition_description = "PARAMETER1",
|
||||
// .partition_start_addr = 0x0,
|
||||
// .partition_length = 0x1000, // 4k bytes
|
||||
// .partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_EN,
|
||||
// },
|
||||
// [MICO_PARTITION_PARAMETER_2] =
|
||||
// {
|
||||
// .partition_owner = MICO_FLASH_QSPI,
|
||||
// .partition_description = "PARAMETER2",
|
||||
// .partition_start_addr = 0x1000,
|
||||
// .partition_length = 0x1000, //4k bytes
|
||||
// .partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_EN,
|
||||
// },
|
||||
[MICO_PARTITION_PARAMETER_1] =
|
||||
{
|
||||
.partition_owner = MICO_FLASH_QSPI,
|
||||
.partition_description = "PARAMETER1",
|
||||
.partition_start_addr = 0x0,
|
||||
.partition_length = 0x1000, // 4k bytes
|
||||
.partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_EN,
|
||||
},
|
||||
[MICO_PARTITION_PARAMETER_2] =
|
||||
{
|
||||
.partition_owner = MICO_FLASH_QSPI,
|
||||
.partition_description = "PARAMETER2",
|
||||
.partition_start_addr = 0x1000,
|
||||
.partition_length = 0x1000, //4k bytes
|
||||
.partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_EN,
|
||||
},
|
||||
[MICO_PARTITION_RF_FIRMWARE] =
|
||||
{
|
||||
.partition_owner = MICO_FLASH_QSPI,
|
||||
@@ -352,25 +352,9 @@ const mico_logic_partition_t mico_partitions[] =
|
||||
.partition_owner = MICO_FLASH_QSPI,
|
||||
.partition_description = "FILESYS",
|
||||
.partition_start_addr = 0x118000,
|
||||
.partition_length = 0x0E0000, //896k bytes
|
||||
.partition_length = 0x0E8000, //928k bytes
|
||||
.partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_EN,
|
||||
},
|
||||
[MICO_PARTITION_PARAMETER_1] =
|
||||
{
|
||||
.partition_owner = MICO_FLASH_QSPI,
|
||||
.partition_description = "PARAMETER1",
|
||||
.partition_start_addr = 0x1F8000,
|
||||
.partition_length = 0x4000, // 16k bytes
|
||||
.partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_EN,
|
||||
},
|
||||
[MICO_PARTITION_PARAMETER_2] =
|
||||
{
|
||||
.partition_owner = MICO_FLASH_QSPI,
|
||||
.partition_description = "PARAMETER2",
|
||||
.partition_start_addr = 0x1FC000,
|
||||
.partition_length = 0x4000, //16k bytes
|
||||
.partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_EN,
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
#if defined ( USE_MICO_SPI_FLASH )
|
||||
|
||||
@@ -257,12 +257,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_MAX, /* Denotes the total number of PWM port aliases. Not a valid PWM alias */
|
||||
|
||||
@@ -260,12 +260,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_MAX, /* Denotes the total number of PWM port aliases. Not a valid PWM alias */
|
||||
|
||||
0
mico-os/board/MK3288/flash_prog.elf
Normal file → Executable file
0
mico-os/board/MK3288/flash_prog.elf
Normal file → Executable file
@@ -91,12 +91,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_R,
|
||||
|
||||
0
mico-os/board/MK3297/flash_prog.elf
Normal file → Executable file
0
mico-os/board/MK3297/flash_prog.elf
Normal file → Executable file
@@ -95,12 +95,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_1,
|
||||
|
||||
0
mico-os/board/MKF205/flash_prog.elf
Normal file → Executable file
0
mico-os/board/MKF205/flash_prog.elf
Normal file → Executable file
@@ -263,12 +263,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_1,
|
||||
|
||||
@@ -101,12 +101,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_1,
|
||||
|
||||
0
mico-os/board/MKLPC5410x/flash_prog.elf
Normal file → Executable file
0
mico-os/board/MKLPC5410x/flash_prog.elf
Normal file → Executable file
@@ -115,12 +115,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_0,
|
||||
|
||||
@@ -102,12 +102,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_1,
|
||||
|
||||
0
mico-os/board/NUCLEO_F411RE/bootloaderLinkerForIAR.icf
Normal file → Executable file
0
mico-os/board/NUCLEO_F411RE/bootloaderLinkerForIAR.icf
Normal file → Executable file
0
mico-os/board/NUCLEO_F411RE/flash_prog.elf
Normal file → Executable file
0
mico-os/board/NUCLEO_F411RE/flash_prog.elf
Normal file → Executable file
@@ -101,12 +101,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_MAX, /* Denotes the total number of PWM port aliases. Not a valid PWM alias */
|
||||
|
||||
@@ -116,16 +116,8 @@ const platform_gpio_t platform_gpio_pins[] =
|
||||
[MICO_GPIO_20] = { GPIOC, 4 },//PASS,Arduino_A4,WIFI WAKEIN
|
||||
[MICO_GPIO_22] = { GPIOC, 5 },//PASS,Arduino_A5,WIFI WAKEOUT
|
||||
|
||||
[MICO_USART3_RX] = { GPIOD, 9 },//PASS,STDIO_UART_RX,USART3_RX,Nucleo STLK_RX
|
||||
[MICO_USART3_TX] = { GPIOD, 8 },//PASS,STDIO_UART_TX,USART3_TX,Nucleo STLK_TX
|
||||
[MICO_USART_NBIOT_TX] = { GPIOA, 9 },
|
||||
[MICO_USART_NBIOT_RX] = { GPIOA, 10},
|
||||
[MICO_USART_NBIOT_RTS] = { GPIOA, 12},
|
||||
[MICO_USART_NBIOT_CTS] = { GPIOA, 11},
|
||||
[MICO_GPIO_POWER] = { GPIOD, 2 },
|
||||
[MICO_GPIO_GPRS_START] = { GPIOB, 5 },
|
||||
[MICO_GPIO_GPRS_RST] = { GPIOA, 8 },
|
||||
[MICO_GPIO_GPRS_WAKEUP] = { GPIOA, 1 },
|
||||
[MICO_USART3_RX] = { GPIOD, 9 },//PASS,STDIO_UART_RX,USART3_RX,Nucleo STLK_RX
|
||||
[MICO_USART3_TX] = { GPIOD, 8 },//PASS,STDIO_UART_TX,USART3_TX,Nucleo STLK_TX
|
||||
};
|
||||
|
||||
const platform_pwm_t *platform_pwm_peripherals = NULL;
|
||||
@@ -191,11 +183,11 @@ const platform_uart_t platform_uart_peripherals[] =
|
||||
.tx_dma_config =
|
||||
{
|
||||
.controller = DMA2,
|
||||
.stream = DMA2_Stream6,
|
||||
.stream = DMA2_Stream7,
|
||||
.channel = DMA_Channel_5,
|
||||
.irq_vector = DMA2_Stream6_IRQn,
|
||||
.complete_flags = DMA_HISR_TCIF6,
|
||||
.error_flags = ( DMA_HISR_TEIF6 | DMA_HISR_FEIF6 ),
|
||||
.irq_vector = DMA2_Stream7_IRQn,
|
||||
.complete_flags = DMA_HISR_TCIF7,
|
||||
.error_flags = ( DMA_HISR_TEIF7 | DMA_HISR_FEIF7 ),
|
||||
},
|
||||
.rx_dma_config =
|
||||
{
|
||||
@@ -207,32 +199,6 @@ const platform_uart_t platform_uart_peripherals[] =
|
||||
.error_flags = ( DMA_LISR_TEIF1 | DMA_LISR_FEIF1 | DMA_LISR_DMEIF1 ),
|
||||
},
|
||||
},
|
||||
[MICO_UART_3] =
|
||||
{
|
||||
.port = USART1,
|
||||
.pin_tx = &platform_gpio_pins[MICO_USART_NBIOT_TX],
|
||||
.pin_rx = &platform_gpio_pins[MICO_USART_NBIOT_RX],
|
||||
.pin_cts = NULL,
|
||||
.pin_rts = NULL,
|
||||
.tx_dma_config =
|
||||
{
|
||||
.controller = DMA2,
|
||||
.stream = DMA2_Stream7,
|
||||
.channel = DMA_Channel_4,
|
||||
.irq_vector = DMA2_Stream7_IRQn,
|
||||
.complete_flags = DMA_HISR_TCIF7,
|
||||
.error_flags = ( DMA_HISR_TEIF7 | DMA_HISR_FEIF7 ),
|
||||
},
|
||||
.rx_dma_config =
|
||||
{
|
||||
.controller = DMA2,
|
||||
.stream = DMA2_Stream5,
|
||||
.channel = DMA_Channel_4,
|
||||
.irq_vector = DMA2_Stream5_IRQn,
|
||||
.complete_flags = DMA_HISR_TCIF5,
|
||||
.error_flags = ( DMA_HISR_TEIF5 | DMA_HISR_FEIF5 | DMA_HISR_DMEIF5 ),
|
||||
},
|
||||
},
|
||||
};
|
||||
platform_uart_driver_t platform_uart_drivers[MICO_UART_MAX];
|
||||
|
||||
@@ -423,7 +389,6 @@ const platform_spi_t wifi_spi =
|
||||
|
||||
|
||||
|
||||
|
||||
/******************************************************
|
||||
* Interrupt Handler Definitions
|
||||
******************************************************/
|
||||
@@ -444,24 +409,14 @@ MICO_RTOS_DEFINE_ISR( USART3_IRQHandler )
|
||||
platform_uart_irq( &platform_uart_drivers[MICO_UART_1] );
|
||||
}
|
||||
|
||||
MICO_RTOS_DEFINE_ISR( USART1_IRQHandler )
|
||||
{
|
||||
platform_uart_irq( &platform_uart_drivers[MICO_UART_3] );
|
||||
}
|
||||
|
||||
MICO_RTOS_DEFINE_ISR( DMA1_Stream4_IRQHandler )
|
||||
{
|
||||
platform_uart_tx_dma_irq( &platform_uart_drivers[MICO_UART_1] );
|
||||
}
|
||||
|
||||
MICO_RTOS_DEFINE_ISR( DMA2_Stream6_IRQHandler )
|
||||
{
|
||||
platform_uart_tx_dma_irq( &platform_uart_drivers[MICO_UART_2] );
|
||||
}
|
||||
|
||||
MICO_RTOS_DEFINE_ISR( DMA2_Stream7_IRQHandler )
|
||||
{
|
||||
platform_uart_tx_dma_irq( &platform_uart_drivers[MICO_UART_3] );
|
||||
platform_uart_tx_dma_irq( &platform_uart_drivers[MICO_UART_2] );
|
||||
}
|
||||
|
||||
MICO_RTOS_DEFINE_ISR( DMA1_Stream1_IRQHandler )
|
||||
@@ -475,11 +430,6 @@ MICO_RTOS_DEFINE_ISR( DMA2_Stream1_IRQHandler )
|
||||
platform_uart_rx_dma_irq( &platform_uart_drivers[MICO_UART_2] );
|
||||
}
|
||||
|
||||
MICO_RTOS_DEFINE_ISR( DMA2_Stream5_IRQHandler )
|
||||
{
|
||||
platform_uart_rx_dma_irq( &platform_uart_drivers[MICO_UART_3] );
|
||||
}
|
||||
|
||||
|
||||
/******************************************************
|
||||
* Function Definitions
|
||||
@@ -493,13 +443,10 @@ void platform_init_peripheral_irq_priorities( void )
|
||||
NVIC_SetPriority( DMA2_Stream2_IRQn, 3 ); /* WLAN SPI DMA */
|
||||
NVIC_SetPriority( USART3_IRQn , 6 ); /* MICO_UART_1 */
|
||||
NVIC_SetPriority( USART6_IRQn , 6 ); /* MICO_UART_2 */
|
||||
NVIC_SetPriority( USART1_IRQn , 6 ); /* MICO_UART_3 */
|
||||
NVIC_SetPriority( DMA1_Stream4_IRQn, 7 ); /* MICO_UART_1 TX DMA */
|
||||
NVIC_SetPriority( DMA1_Stream1_IRQn, 7 ); /* MICO_UART_1 RX DMA */
|
||||
NVIC_SetPriority( DMA2_Stream6_IRQn, 7 ); /* MICO_UART_2 TX DMA */
|
||||
NVIC_SetPriority( DMA2_Stream7_IRQn, 7 ); /* MICO_UART_2 TX DMA */
|
||||
NVIC_SetPriority( DMA2_Stream1_IRQn, 7 ); /* MICO_UART_2 RX DMA */
|
||||
NVIC_SetPriority( DMA2_Stream7_IRQn, 7 ); /* MICO_UART_3 TX DMA */
|
||||
NVIC_SetPriority( DMA2_Stream5_IRQn, 7 ); /* MICO_UART_3 RX DMA */
|
||||
NVIC_SetPriority( EXTI0_IRQn , 14 ); /* GPIO */
|
||||
NVIC_SetPriority( EXTI1_IRQn , 14 ); /* GPIO */
|
||||
NVIC_SetPriority( EXTI2_IRQn , 14 ); /* GPIO */
|
||||
|
||||
@@ -79,14 +79,7 @@ typedef enum
|
||||
MICO_GPIO_22,
|
||||
MICO_USART3_RX,
|
||||
MICO_USART3_TX,
|
||||
MICO_USART_NBIOT_TX,
|
||||
MICO_USART_NBIOT_RX,
|
||||
MICO_USART_NBIOT_RTS,
|
||||
MICO_USART_NBIOT_CTS,
|
||||
MICO_GPIO_POWER,
|
||||
MICO_GPIO_GPRS_RST,
|
||||
MICO_GPIO_GPRS_START,
|
||||
MICO_GPIO_GPRS_WAKEUP,
|
||||
|
||||
MICO_GPIO_MAX, /* Denotes the total number of GPIO port aliases. Not a valid GPIO alias */
|
||||
MICO_GPIO_NONE,
|
||||
} mico_gpio_t;
|
||||
@@ -106,12 +99,6 @@ typedef enum
|
||||
MICO_I2C_NONE,
|
||||
} mico_i2c_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_IIS_MAX, /* Denotes the total number of IIS port aliases. Not a valid IIS alias */
|
||||
MICO_IIS_NONE,
|
||||
} mico_iis_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MICO_PWM_MAX, /* Denotes the total number of PWM port aliases. Not a valid PWM alias */
|
||||
@@ -130,9 +117,6 @@ typedef enum
|
||||
{
|
||||
MICO_UART_1,
|
||||
MICO_UART_2,
|
||||
MICO_UART_3,
|
||||
MICO_UART_4,
|
||||
MICO_UART_5,
|
||||
MICO_UART_MAX, /* Denotes the total number of UART port aliases. Not a valid UART alias */
|
||||
MICO_UART_NONE,
|
||||
} mico_uart_t;
|
||||
@@ -159,8 +143,7 @@ typedef enum
|
||||
#define STDIO_UART_BAUDRATE (115200)
|
||||
#endif
|
||||
|
||||
#define UART_FOR_APP (MICO_UART_2)
|
||||
#define UART_FOR_NBIOT (MICO_UART_3)
|
||||
#define UART_FOR_APP (MICO_UART_1)
|
||||
#define MFG_TEST (MICO_UART_1)
|
||||
#define CLI_UART (MICO_UART_1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user