add iccarm support for cm3
1. IAR project, see TencentOS-tiny\board\STM32F103_SIM800A\iar
This commit is contained in:
15
board/STM32F103_SIM800A/keil/TOS-CONFIG/mqtt_config.h
Normal file
15
board/STM32F103_SIM800A/keil/TOS-CONFIG/mqtt_config.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef _TOS_MQTT_CONFIG_H_
|
||||
#define _TOS_MQTT_CONFIG_H_
|
||||
|
||||
#define MQTT_SERVER_IP "111.230.189.156"
|
||||
#define MQTT_SERVER_PORT "1883"
|
||||
#define MQTT_PRODUCT_ID "RUAP1R610V"
|
||||
#define MQTT_DEV_NAME "supowang"
|
||||
#define MQTT_CLIENT_ID "RUAP1R610Vsupowang"
|
||||
#define MQTT_USR_NAME "RUAP1R610Vsupowang;21010406;12365;4294967295"
|
||||
#define MQTT_PASSWORD "1371ae55cd1036f088bd7e39d230712bc3c32c40;hmacsha1"
|
||||
#define MQTT_SUBSCRIBE_TOPIC "RUAP1R610V/supowang/data"
|
||||
#define MQTT_PUBLISH_TOPIC "RUAP1R610V/supowang/data"
|
||||
|
||||
#endif
|
||||
|
37
board/STM32F103_SIM800A/keil/TOS-CONFIG/tos_config.h
Normal file
37
board/STM32F103_SIM800A/keil/TOS-CONFIG/tos_config.h
Normal file
@@ -0,0 +1,37 @@
|
||||
#ifndef _TOS_CONFIG_H_
|
||||
#define _TOS_CONFIG_H_
|
||||
|
||||
#include "stm32f1xx.h"
|
||||
|
||||
#define TOS_CFG_TASK_PRIO_MAX 10u
|
||||
|
||||
#define TOS_CFG_ROUND_ROBIN_EN 1u
|
||||
|
||||
#define TOS_CFG_OBJECT_VERIFY_EN 0u
|
||||
|
||||
#define TOS_CFG_TASK_DYNAMIC_CREATE_EN 0u
|
||||
|
||||
#define TOS_CFG_EVENT_EN 1u
|
||||
|
||||
#define TOS_CFG_MMBLK_EN 1u
|
||||
|
||||
#define TOS_CFG_MMHEAP_EN 1u
|
||||
|
||||
#define TOS_CFG_MMHEAP_DEFAULT_POOL_SIZE 0x3000
|
||||
|
||||
#define TOS_CFG_MUTEX_EN 1u
|
||||
|
||||
#define TOS_CFG_TIMER_EN 1u
|
||||
|
||||
#define TOS_CFG_SEM_EN 1u
|
||||
|
||||
#define TOS_CFG_IDLE_TASK_STK_SIZE 80u
|
||||
|
||||
#define TOS_CFG_CPU_TICK_PER_SECOND 1000u
|
||||
|
||||
#define TOS_CFG_CPU_CLOCK (SystemCoreClock)
|
||||
|
||||
#define TOS_CFG_TIMER_AS_PROC 1u
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user