mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-17 07:28:14 +08:00
修复代码错误
This commit is contained in:
0
mico-os/platform/MCU/MW3xx/IAR/copy_init3.c
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/IAR/copy_init3.c
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/IAR/data_init3.c
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/IAR/data_init3.c
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/IAR/data_init3.h
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/IAR/data_init3.h
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/IAR/user_app.icf
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/IAR/user_app.icf
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/IAR/zero_init3.c
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/IAR/zero_init3.c
Normal file → Executable file
@@ -61,6 +61,9 @@ $(NAME)_SOURCES := ../../$(HOST_ARCH)/crt0_$(TOOLCHAIN_NAME).c \
|
||||
|
||||
$(NAME)_CFLAGS += -Wno-implicit-function-declaration -Wno-unused-variable
|
||||
|
||||
# These need to be forced into the final ELF since they are not referenced otherwise
|
||||
$(NAME)_LINK_FILES := ../../$(HOST_ARCH)/crt0_$(TOOLCHAIN_NAME).o
|
||||
|
||||
ifneq ($(filter $(subst ., ,$(COMPONENTS)),mocOS),)
|
||||
####################################################################################
|
||||
# MOC application
|
||||
@@ -102,7 +105,9 @@ GLOBAL_INCLUDES += peripherals/boot2
|
||||
GLOBAL_DEFINES += CONFIG_FLASH_PARTITION_COUNT=10 \
|
||||
CONFIG_CPU_MW300 \
|
||||
ARM_GNU
|
||||
|
||||
|
||||
$(NAME)_LINK_FILES += ../../$(HOST_ARCH)/hardfault_handler.o \
|
||||
platform_vector_table.o
|
||||
endif
|
||||
|
||||
ifneq ($(filter spi_flash_write, $(APP)),)
|
||||
|
||||
0
mico-os/platform/MCU/MW3xx/flashloader/mw310.board
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/flashloader/mw310.board
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/flashloader/mw310.flash
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/flashloader/mw310.flash
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/flashloader/mw310_all.board
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/flashloader/mw310_all.board
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/flashloader/mw310_all.flash
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/flashloader/mw310_all.flash
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/flashloader/mw310_flash.out
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/flashloader/mw310_flash.out
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/flashloader/mw310_flash_all.out
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/flashloader/mw310_flash_all.out
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/interface/crc.h
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/interface/crc.h
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/interface/flash_all.icf
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/interface/flash_all.icf
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/interface/flashall.c
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/interface/flashall.c
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/interface/mico_redirect_headers.h
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/interface/mico_redirect_headers.h
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/interface/preload.mac
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/interface/preload.mac
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/interface/user_app.icf
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/interface/user_app.icf
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/merge/config.ini
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/merge/config.ini
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/merge/merge.exe
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/merge/merge.exe
Normal file → Executable file
@@ -47,10 +47,6 @@ typedef struct _lwip_api_ {
|
||||
char *(*sethostname)( char *name );
|
||||
char* (*get_dhcp_classid)( void );
|
||||
char* (*set_dhcp_classid)( char *classid );
|
||||
|
||||
/* For inet_ntop and inet_pton */
|
||||
const char * (*inet_ntop) (int af, const void *cp, char *buf, socklen_t len);
|
||||
int (*inet_pton) (int af, const char *cp, void *buf);
|
||||
} lwip_api_t;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -16,12 +16,6 @@ OSStatus StartAdvNetwork(network_InitTypeDef_adv_st* inNetworkInitParaAdv)
|
||||
{
|
||||
return lib_api_p->micoWlanStartAdv(inNetworkInitParaAdv);
|
||||
}
|
||||
|
||||
OSStatus micoWlanStartEnt(network_Enterprise_st* inNetworkInitPara)
|
||||
{
|
||||
return lib_api_p->micoWlanStartEnt(inNetworkInitPara);
|
||||
}
|
||||
|
||||
OSStatus getNetPara(IPStatusTypedef *outNetpara, WiFi_Interface inInterface)
|
||||
{
|
||||
return lib_api_p->micoWlanGetIPStatus(outNetpara, inInterface);
|
||||
@@ -666,7 +660,6 @@ OSStatus MicoSpiInitialize( const mico_spi_device_t* spi )
|
||||
|
||||
OSStatus MicoSpiFinalize( const mico_spi_device_t* spi )
|
||||
{
|
||||
platform_spi_drivers[spi->port].initialized = MICO_FALSE;
|
||||
return lib_api_p->spi_apis->spi_finalize(spi);
|
||||
}
|
||||
|
||||
@@ -771,34 +764,4 @@ int send_easylink_minus(uint32_t ip, char *ssid, char *key)
|
||||
return lib_api_p->send_easylink_minus(ip, ssid, key);
|
||||
}
|
||||
|
||||
OSStatus MicoIISInitialize( const mico_iis_device_t* iis )
|
||||
{
|
||||
return lib_api_p->iis_apis->iis_init(iis);
|
||||
}
|
||||
|
||||
OSStatus MicoIISFinalize( const mico_iis_device_t* iis )
|
||||
{
|
||||
return lib_api_p->iis_apis->iis_finalize(iis);
|
||||
}
|
||||
|
||||
OSStatus MicoIISTransfer( const mico_iis_device_t* iis, const mico_iis_message_segment_t* segments, uint16_t number_of_segments )
|
||||
{
|
||||
return lib_api_p->iis_apis->iis_transfer(iis,segments,number_of_segments);
|
||||
}
|
||||
|
||||
OSStatus MicoIISWrite( const mico_iis_device_t* iis, uint8_t *p_buf, uint32_t size )
|
||||
{
|
||||
return lib_api_p->iis_apis->iis_write(iis, p_buf, size);
|
||||
}
|
||||
|
||||
OSStatus MicoIISRead( const mico_iis_device_t* iis, uint8_t *p_buf, uint32_t size )
|
||||
{
|
||||
return lib_api_p->iis_apis->iis_read(iis, p_buf, size);
|
||||
}
|
||||
|
||||
|
||||
OSStatus mico_wlan_get_channel( uint8_t *channel )
|
||||
{
|
||||
*channel = lib_api_p->mico_wlan_get_channel();
|
||||
return kNoErr;
|
||||
}
|
||||
|
||||
@@ -176,15 +176,6 @@ typedef struct
|
||||
OSStatus (*spi_finalize)( const mico_spi_device_t* spi );
|
||||
} spi_api_t;
|
||||
|
||||
typedef struct {
|
||||
OSStatus (*iis_init)( const mico_iis_device_t* iis );
|
||||
OSStatus (*iis_finalize)( const mico_iis_device_t* iis );
|
||||
OSStatus (*iis_transfer)( const mico_iis_device_t* iis, const mico_iis_message_segment_t* segments,
|
||||
uint16_t number_of_segments );
|
||||
OSStatus (*iis_write)( const mico_iis_device_t* iis, uint8_t *p_buf, uint32_t size );
|
||||
OSStatus (*iis_read)( const mico_iis_device_t* iis, uint8_t *p_buf, uint32_t size );
|
||||
}iis_api_t;
|
||||
|
||||
/* API type define */
|
||||
typedef struct mico_api_struct
|
||||
{
|
||||
@@ -448,10 +439,6 @@ typedef struct mico_api_struct
|
||||
int (*mico_wlan_monitor_no_easylink)(void);
|
||||
void (*ssl_set_client_cert)(const char *cert_pem, const char *private_key_pem);
|
||||
void* (*ssl_connect_sni)(int fd, int calen, char*ca, char *sni_servername, int *errno);
|
||||
|
||||
OSStatus (*micoWlanStartEnt)(network_Enterprise_st* inNetworkInitPara);
|
||||
|
||||
iis_api_t *iis_apis;
|
||||
} mico_api_t;
|
||||
|
||||
typedef struct user_api_struct
|
||||
|
||||
0
mico-os/platform/MCU/MW3xx/peripherals/platform_flash.c
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/peripherals/platform_flash.c
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/peripherals/sdk/src/core/cli/tests/mtfTests.py
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/peripherals/sdk/src/core/cli/tests/mtfTests.py
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/peripherals/sdk/src/core/pwrmgr/tests/testPwrmgr.py
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/peripherals/sdk/src/core/pwrmgr/tests/testPwrmgr.py
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/platform_cmsis.h
Normal file → Executable file
0
mico-os/platform/MCU/MW3xx/platform_cmsis.h
Normal file → Executable file
Reference in New Issue
Block a user