diff --git a/arch/arm/arm-v6m/common/include/tos_cpu_types.h b/arch/arm/arm-v6m/common/include/tos_cpu_types.h
index 62d9e014..8ee05361 100644
--- a/arch/arm/arm-v6m/common/include/tos_cpu_types.h
+++ b/arch/arm/arm-v6m/common/include/tos_cpu_types.h
@@ -50,7 +50,6 @@ typedef uint32_t cpu_hrtimer_t;
typedef uint32_t cpu_hrtimer_t;
#endif
-//typedef cpu_addr_t size_t;
typedef cpu_addr_t cpu_cpsr_t;
#endif
diff --git a/arch/arm/arm-v7a/common/include/tos_cpu_types.h b/arch/arm/arm-v7a/common/include/tos_cpu_types.h
index 62d9e014..8ee05361 100644
--- a/arch/arm/arm-v7a/common/include/tos_cpu_types.h
+++ b/arch/arm/arm-v7a/common/include/tos_cpu_types.h
@@ -50,7 +50,6 @@ typedef uint32_t cpu_hrtimer_t;
typedef uint32_t cpu_hrtimer_t;
#endif
-//typedef cpu_addr_t size_t;
typedef cpu_addr_t cpu_cpsr_t;
#endif
diff --git a/arch/arm/arm-v7m/common/include/tos_cpu_types.h b/arch/arm/arm-v7m/common/include/tos_cpu_types.h
index 62d9e014..8ee05361 100644
--- a/arch/arm/arm-v7m/common/include/tos_cpu_types.h
+++ b/arch/arm/arm-v7m/common/include/tos_cpu_types.h
@@ -50,7 +50,6 @@ typedef uint32_t cpu_hrtimer_t;
typedef uint32_t cpu_hrtimer_t;
#endif
-//typedef cpu_addr_t size_t;
typedef cpu_addr_t cpu_cpsr_t;
#endif
diff --git a/arch/arm/arm-v8m/common/include/tos_cpu_types.h b/arch/arm/arm-v8m/common/include/tos_cpu_types.h
index 62d9e014..8ee05361 100644
--- a/arch/arm/arm-v8m/common/include/tos_cpu_types.h
+++ b/arch/arm/arm-v8m/common/include/tos_cpu_types.h
@@ -50,7 +50,6 @@ typedef uint32_t cpu_hrtimer_t;
typedef uint32_t cpu_hrtimer_t;
#endif
-//typedef cpu_addr_t size_t;
typedef cpu_addr_t cpu_cpsr_t;
#endif
diff --git a/arch/linux/common/include/tos_cpu_types.h b/arch/linux/common/include/tos_cpu_types.h
index acb5f8a9..ca9e3876 100644
--- a/arch/linux/common/include/tos_cpu_types.h
+++ b/arch/linux/common/include/tos_cpu_types.h
@@ -54,7 +54,6 @@ typedef uint32_t cpu_hrtimer_t;
typedef uint32_t cpu_hrtimer_t;
#endif
-//typedef cpu_addr_t size_t;
typedef cpu_addr_t cpu_cpsr_t;
#endif
diff --git a/arch/msp430/common/include/tos_cpu_types.h b/arch/msp430/common/include/tos_cpu_types.h
index 604ea27a..898db179 100644
--- a/arch/msp430/common/include/tos_cpu_types.h
+++ b/arch/msp430/common/include/tos_cpu_types.h
@@ -13,7 +13,6 @@ typedef uint32_t cpu_data_t;
typedef uint32_t cpu_addr_t;
#endif
-//typedef cpu_addr_t size_t;
typedef cpu_addr_t cpu_cpsr_t;
#endif
diff --git a/arch/risc-v/common/include/tos_cpu_types.h b/arch/risc-v/common/include/tos_cpu_types.h
index 3a75d6ea..5fc71a70 100644
--- a/arch/risc-v/common/include/tos_cpu_types.h
+++ b/arch/risc-v/common/include/tos_cpu_types.h
@@ -50,7 +50,6 @@ typedef uint32_t cpu_hrtimer_t;
typedef uint32_t cpu_hrtimer_t;
#endif
-//typedef cpu_addr_t size_t;
typedef cpu_addr_t cpu_cpsr_t;
#endif
diff --git a/arch/stm8/common/include/tos_cpu_types.h b/arch/stm8/common/include/tos_cpu_types.h
index 62d9e014..8ee05361 100644
--- a/arch/stm8/common/include/tos_cpu_types.h
+++ b/arch/stm8/common/include/tos_cpu_types.h
@@ -50,7 +50,6 @@ typedef uint32_t cpu_hrtimer_t;
typedef uint32_t cpu_hrtimer_t;
#endif
-//typedef cpu_addr_t size_t;
typedef cpu_addr_t cpu_cpsr_t;
#endif
diff --git a/arch/stm8/common/tos_cpu.c b/arch/stm8/common/tos_cpu.c
index 92f12b9a..7dd1b00d 100644
--- a/arch/stm8/common/tos_cpu.c
+++ b/arch/stm8/common/tos_cpu.c
@@ -210,6 +210,9 @@ __KNL__ k_stack_t *cpu_task_stk_init(void *entry,
}
#endif
+ *--sp = (cpu_data_t)((uint16_t)exit & 0xFF); /* LRL */
+ *--sp = (cpu_data_t)(((uint16_t)exit >> 8) & 0xFF); /* LRH */
+
*--sp = (cpu_data_t)((uint16_t)entry & 0xFF); /* PCL */
*--sp = (cpu_data_t)(((uint16_t)entry >> 8) & 0xFF); /* PCH */
diff --git a/arch/stm8/iccarm/port_s.S b/arch/stm8/iccarm/port_s.S
index a55d2b62..991eeb50 100644
--- a/arch/stm8/iccarm/port_s.S
+++ b/arch/stm8/iccarm/port_s.S
@@ -40,7 +40,6 @@ port_cpsr_restore
*/
PUSH A
POP CC
- RIM
RET
diff --git a/board/STM8L052R8T6/BSP/src/hal_uart.c b/board/STM8L052R8T6/BSP/src/hal_uart.c
new file mode 100644
index 00000000..fee7469b
--- /dev/null
+++ b/board/STM8L052R8T6/BSP/src/hal_uart.c
@@ -0,0 +1,17 @@
+#include "tos_hal.h"
+#include "stm8l15x.h"
+
+int tos_hal_uart_init(hal_uart_t *uart, hal_uart_port_t port)
+{
+
+}
+
+int tos_hal_uart_write(hal_uart_t *uart, const uint8_t *buf, size_t size, uint32_t timeout)
+{
+ int i = 0;
+
+ for (i = 0; i < size; ++i) {
+ UART1_Send_Byte(buf[i]);
+ }
+}
+
diff --git a/board/STM8L052R8T6/BSP/src/uart.c b/board/STM8L052R8T6/BSP/src/uart.c
index 0de5c6b4..10b10cf0 100644
--- a/board/STM8L052R8T6/BSP/src/uart.c
+++ b/board/STM8L052R8T6/BSP/src/uart.c
@@ -1,8 +1,20 @@
#include "stm8l15x.h"
#include "uart.h"
+#include "stdio.h"
+
const uint8_t HEX_TABLE[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
+int putchar(int c) {
+ if('\n' == (char)c) {
+ USART_SendData8(USART1, '\r');
+ while (USART_GetFlagStatus(USART1, USART_FLAG_TC) == RESET);
+ }
+ USART_SendData8(USART1, c);
+ while (USART_GetFlagStatus(USART1, USART_FLAG_TC) == RESET);
+ return (c);
+}
+
void UART1_Send_Byte(uint8_t ucData)
{
USART_SendData8(USART1, ucData);
@@ -98,18 +110,21 @@ void UART1_Send_Dec(unsigned int num, unsigned char ucNumCount)
void UART1_Init(uint32_t uiBaudRate)
{
- //INIT UART1 PINS
- GPIO_Init(GPIOC, GPIO_Pin_3, GPIO_Mode_Out_PP_High_Fast);
- GPIO_Init(GPIOC, GPIO_Pin_2, GPIO_Mode_In_PU_No_IT);
- GPIO_SetBits(GPIOC, GPIO_Pin_3);
+ // INIT UART1 PINS
+ GPIO_Init(GPIOC, GPIO_Pin_3, GPIO_Mode_Out_PP_High_Fast);
+ GPIO_Init(GPIOC, GPIO_Pin_2, GPIO_Mode_In_PU_No_IT);
+ GPIO_SetBits(GPIOC, GPIO_Pin_3);
- //enable UART1 Clock
- CLK_PeripheralClockConfig(CLK_Peripheral_USART1, ENABLE);
+ // enable UART1 Clock
+ CLK_PeripheralClockConfig(CLK_Peripheral_USART1, ENABLE);
- //setting the UART1
- USART_Init(USART1, uiBaudRate, USART_WordLength_8b, USART_StopBits_1, USART_Parity_No,
- (USART_Mode_TypeDef)(USART_Mode_Tx | USART_Mode_Rx));
+ // setting the UART1
+ USART_Init(USART1, uiBaudRate, USART_WordLength_8b, USART_StopBits_1, USART_Parity_No,
+ (USART_Mode_TypeDef)(USART_Mode_Tx | USART_Mode_Rx));
- //enable UART1
- USART_Cmd(USART1, ENABLE);
-}
\ No newline at end of file
+ // enable RX interrupt
+ USART_ITConfig(USART1, USART_IT_RXNE, ENABLE);
+
+ // enable UART1
+ USART_Cmd(USART1, ENABLE);
+}
diff --git a/board/STM8L052R8T6/IAR/hello_world/settings/stm8_project.dbgdt b/board/STM8L052R8T6/IAR/hello_world/settings/stm8_project.dbgdt
index a5ed87b1..8e85d06b 100644
--- a/board/STM8L052R8T6/IAR/hello_world/settings/stm8_project.dbgdt
+++ b/board/STM8L052R8T6/IAR/hello_world/settings/stm8_project.dbgdt
@@ -129,11 +129,11 @@
1
1
1
- A80000001B001086000005000000158100000200000023920000010000005F86000001000000208100000700000004E10000010000000F810000020000000C8100001A0000000486000001000000558400001300000000810000180000000E8100001E00000003E10000020000001F8100000100000000E10000010000000B810000010000000584000002000000148600000100000011860000040000000284000001000000008600000100000055860000030000004681000012000000108400002F0000000D8100000100000008860000010000000A84000003000000
+ AB0000001B001581000002000000108600000500000023920000010000000F8100000200000004E100000100000020810000080000005F860000010000000C8100001A0000000486000001000000558400001300000000810000180000001F8100000100000003E10000020000000E8100001E0000000B8100000100000000E1000001000000148600000100000005840000020000005586000003000000008600000100000002840000010000001186000004000000108400002F00000046810000140000000A8400000300000008860000010000000D81000001000000
1F00FFFFFFFF7486000008800000098000000A8000000B8000000C800000158000000A81000001E800000C8400003384000078840000A4860000A3860000BE860000BF86000003DE000002DE000001DE00002B9200002A9200002692000000DE00007784000007840000808C000044D50000838600005886000037870000
- 3B0002860000100000005786000018000000048400007100000013860000250000000481000041000000768600002F00000010860000230000002392000000000000318400007800000084860000300000000A8600002100000020810000500000000F81000048000000078600001E0000000C81000045000000048600001B00000006840000730000000981000043000000018600000F0000009A8600001600000003840000700000005686000029000000008400006D0000000E84000075000000308400007700000009860000200000001A860000280000001F8100004F0000000E810000470000005E8600002B000000068600001D0000008E860000310000000B810000440000000386000011000000698600002E00000005840000720000001486000026000000008600000E0000005586000007000000028400006F000000058100004200000011860000240000000E860000170000001084000076000000328400007900000046810000580000000B86000022000000608600002D000000088600001F000000C386000003000000A1860000320000000A840000740000000D8100004600000035E100006900000002E100005C0000005D8600002A000000058600001C0000001686000027000000C08600000B000000
+ 3B0013860000250000000484000071000000578600001800000002860000100000001086000023000000768600002F00000004810000410000008486000030000000318400007800000023920000000000000F8100004800000020810000500000000A860000210000000C81000045000000078600001E00000009810000430000000684000073000000048600001B000000568600002900000003840000700000009A86000016000000018600000F000000008400006D00000030840000770000000E840000750000005E8600002B0000000E810000470000001F8100004F0000001A8600002800000009860000200000000B810000440000008E86000031000000068600001D00000014860000260000000584000072000000698600002E000000038600001100000011860000240000000581000042000000028400006F0000005586000007000000008600000E0000004681000058000000328400007900000010840000760000000E86000017000000608600002D0000000B860000220000005D8600002A00000002E100005C00000035E10000690000000D810000460000000A84000074000000A186000032000000C386000003000000088600001F000000C08600000B0000001686000027000000058600001C000000
0
@@ -164,8 +164,8 @@
4294967295
- 00000000E8010000AA050000B5020000
- 00000000D2010000AA0500009F020000
+ 00000000E80100000D050000B5020000
+ 00000000D20100000D0500009F020000
4096
0
0
@@ -391,7 +391,7 @@
34062
00000000160000000601000076010000
- AE0500004C000000800700009F020000
+ 110500004C000000800700009F020000
16384
0
0
@@ -460,7 +460,7 @@
34070
000000001600000022010000D6000000
- 00000000E6010000AA0500009F020000
+ 00000000E60100000D0500009F020000
32768
0
0
@@ -472,6 +472,7 @@
+ - 0x0623
- 0x0210
- 0x0209
- 0x0208
@@ -481,8 +482,8 @@
- 0x01DC
0
- 528
- 528
+ 1571
+ 1571
1
1
0
@@ -490,12 +491,12 @@
0
0
0
- 27
+ 93
34071
000000001600000022010000D6000000
- 04000000EA010000A605000085020000
+ 04000000EA0100000905000085020000
4096
0
0
@@ -509,7 +510,7 @@
34072
000000001600000022010000D6000000
- 04000000EA010000A605000085020000
+ 04000000EA0100000905000085020000
4096
0
0
@@ -523,7 +524,7 @@
34073
000000001600000022010000D6000000
- 04000000EA010000A605000085020000
+ 04000000EA0100000905000085020000
4096
0
0
@@ -551,7 +552,7 @@
34075
00000000160000000601000076010000
- 890400004C000000AA050000CE010000
+ EC0300004C0000000D050000CE010000
16384
0
0
@@ -772,7 +773,7 @@
34092
00000000160000000601000076010000
- F00200004C00000085040000CE010000
+ 530200004C000000E8030000CE010000
16384
0
0
@@ -858,7 +859,7 @@
1
- 000000004A000000000000000010000001000000FFFFFFFFFFFFFFFF960000004C0000009A000000CE010000010000000200001004000000010000000000000000000000308500000000000000000000000000000000000001000000308500000100000030850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000002F85000000000000000000000000000000000000010000002F850000010000002F850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000002E85000000000000000000000000000000000000010000002E850000010000002E850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000002D85000000000000000000000000000000000000010000002D850000010000002D850000000000000040000001000000FFFFFFFFFFFFFFFFEC0200004C000000F0020000CE0100000100000002000010040000000100000022FEFFFFB30100002C85000000000000000000000000000000000000010000002C850000010000002C850000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000002B85000000000000000000000000000000000000010000002B850000010000002B850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000298500000000000000000000000000000000000001000000298500000100000029850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000288500000000000000000000000000000000000001000000288500000100000028850000000000000020000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000278500000000000000000000000000000000000001000000278500000100000027850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000268500000000000000000000000000000000000001000000268500000100000026850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000258500000000000000000000000000000000000001000000258500000100000025850000000000000010000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000248500000000000000000000000000000000000001000000248500000100000024850000000000000010000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000238500000000000000000000000000000000000001000000238500000100000023850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000228500000000000000000000000000000000000001000000228500000100000022850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000218500000000000000000000000000000000000001000000218500000100000021850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000001F85000000000000000000000000000000000000010000001F850000010000001F850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000001E85000000000000000000000000000000000000010000001E850000010000001E850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000001D85000000000000000000000000000000000000010000001D850000010000001D850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000001C85000000000000000000000000000000000000010000001C850000010000001C850000000000000040000001000000FFFFFFFFFFFFFFFF850400004C00000089040000CE0100000100000002000010040000000100000075FBFFFF2B0000001B85000000000000000000000000000000000000010000001B850000010000001B850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000001A85000000000000000000000000000000000000010000001A850000010000001A850000000000000080000001000000FFFFFFFFFFFFFFFF00000000CE010000AA050000D20100000100000001000010040000000100000017FEFFFF00000000FFFFFFFF0400000016850000178500001885000019850000FFFF02000B004354616262656450616E65008000000100000000000000E8010000AA050000B502000000000000D2010000AA0500009F020000000000004080005604000000FFFEFF084D0065006D006F007200790020003100010000001685000001000000FFFFFFFFFFFFFFFFFFFEFF084D0065006D006F007200790020003200000000001785000001000000FFFFFFFFFFFFFFFFFFFEFF084D0065006D006F007200790020003300000000001885000001000000FFFFFFFFFFFFFFFFFFFEFF084D0065006D006F007200790020003400000000001985000001000000FFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000001000000FFFFFFFF1685000001000000FFFFFFFF16850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000158500000000000000000000000000000000000001000000158500000100000015850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000148500000000000000000000000000000000000001000000148500000100000014850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000138500000000000000000000000000000000000001000000138500000100000013850000000000000020000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000128500000000000000000000000000000000000001000000128500000100000012850000000000000040000001000000FFFFFFFFFFFFFFFFAA0500004C000000AE0500009F02000001000000020000100400000001000000B9FAFFFF450100000E85000000000000000000000000000000000000010000000E850000010000000E850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000000C85000000000000000000000000000000000000010000000C850000010000000C850000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000000B85000000000000000000000000000000000000010000000B850000010000000B850000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000000A85000000000000000000000000000000000000010000000A850000010000000A850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000098500000000000000000000000000000000000001000000098500000100000009850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000088500000000000000000000000000000000000001000000088500000100000008850000000000000020000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000078500000000000000000000000000000000000001000000078500000100000007850000000000000010000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000068500000000000000000000000000000000000001000000068500000100000006850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000058500000000000000000000000000000000000001000000058500000100000005850000000000000080000001000000FFFFFFFFFFFFFFFF000000009F02000080070000A30200000100000001000010040000000100000072FDFFFF6F000000FFFFFFFF0800000003850000048500000D8500000F8500001085000011850000208500002A8500000180008000000100000000000000B902000080070000A903000000000000A30200008007000093030000000000004080005608000000FFFEFF0B42007200650061006B0070006F0069006E0074007300000000000385000001000000FFFFFFFFFFFFFFFFFFFEFF054200750069006C006400010000000485000001000000FFFFFFFFFFFFFFFFFFFEFF094400650062007500670020004C006F006700010000000D85000001000000FFFFFFFFFFFFFFFFFFFEFF0C4400650063006C00610072006100740069006F006E007300000000000F85000001000000FFFFFFFFFFFFFFFFFFFEFF0A5200650066006500720065006E00630065007300000000001085000001000000FFFFFFFFFFFFFFFFFFFEFF0D460069006E006400200069006E002000460069006C0065007300000000001185000001000000FFFFFFFFFFFFFFFFFFFEFF1541006D0062006900670075006F0075007300200044006500660069006E006900740069006F006E007300000000002085000001000000FFFFFFFFFFFFFFFFFFFEFF0B54006F006F006C0020004F0075007400700075007400000000002A85000001000000FFFFFFFFFFFFFFFF02000000000000000000000000000000000000000000000001000000FFFFFFFF0385000001000000FFFFFFFF03850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000028500000000000000000000000000000000000001000000028500000100000002850000000000000000000000000000
+ 000000004A000000000000000010000001000000FFFFFFFFFFFFFFFF960000004C0000009A000000CE010000010000000200001004000000010000000000000000000000308500000000000000000000000000000000000001000000308500000100000030850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000002F85000000000000000000000000000000000000010000002F850000010000002F850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000002E85000000000000000000000000000000000000010000002E850000010000002E850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000002D85000000000000000000000000000000000000010000002D850000010000002D850000000000000040000001000000FFFFFFFFFFFFFFFF4F0200004C00000053020000CE0100000100000002000010040000000100000022FEFFFFB30100002C85000000000000000000000000000000000000010000002C850000010000002C850000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000002B85000000000000000000000000000000000000010000002B850000010000002B850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000298500000000000000000000000000000000000001000000298500000100000029850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000288500000000000000000000000000000000000001000000288500000100000028850000000000000020000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000278500000000000000000000000000000000000001000000278500000100000027850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000268500000000000000000000000000000000000001000000268500000100000026850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000258500000000000000000000000000000000000001000000258500000100000025850000000000000010000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000248500000000000000000000000000000000000001000000248500000100000024850000000000000010000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000238500000000000000000000000000000000000001000000238500000100000023850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000228500000000000000000000000000000000000001000000228500000100000022850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000218500000000000000000000000000000000000001000000218500000100000021850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000001F85000000000000000000000000000000000000010000001F850000010000001F850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000001E85000000000000000000000000000000000000010000001E850000010000001E850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000001D85000000000000000000000000000000000000010000001D850000010000001D850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000001C85000000000000000000000000000000000000010000001C850000010000001C850000000000000040000001000000FFFFFFFFFFFFFFFFE80300004C000000EC030000CE0100000100000002000010040000000100000075FBFFFF2B0000001B85000000000000000000000000000000000000010000001B850000010000001B850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000001A85000000000000000000000000000000000000010000001A850000010000001A850000000000000080000001000000FFFFFFFFFFFFFFFF00000000CE0100000D050000D20100000100000001000010040000000100000017FEFFFF00000000FFFFFFFF0400000016850000178500001885000019850000FFFF02000B004354616262656450616E65008000000100000000000000E80100000D050000B502000000000000D20100000D0500009F020000000000004080005604000000FFFEFF084D0065006D006F007200790020003100010000001685000001000000FFFFFFFFFFFFFFFFFFFEFF084D0065006D006F007200790020003200000000001785000001000000FFFFFFFFFFFFFFFFFFFEFF084D0065006D006F007200790020003300000000001885000001000000FFFFFFFFFFFFFFFFFFFEFF084D0065006D006F007200790020003400000000001985000001000000FFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000001000000FFFFFFFF1685000001000000FFFFFFFF16850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000158500000000000000000000000000000000000001000000158500000100000015850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000148500000000000000000000000000000000000001000000148500000100000014850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000138500000000000000000000000000000000000001000000138500000100000013850000000000000020000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000128500000000000000000000000000000000000001000000128500000100000012850000000000000040000001000000FFFFFFFFFFFFFFFF0D0500004C000000110500009F02000001000000020000100400000001000000F5FAFFFF810100000E85000000000000000000000000000000000000010000000E850000010000000E850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000000C85000000000000000000000000000000000000010000000C850000010000000C850000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000000B85000000000000000000000000000000000000010000000B850000010000000B850000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000000A85000000000000000000000000000000000000010000000A850000010000000A850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000098500000000000000000000000000000000000001000000098500000100000009850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000088500000000000000000000000000000000000001000000088500000100000008850000000000000020000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000078500000000000000000000000000000000000001000000078500000100000007850000000000000010000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000068500000000000000000000000000000000000001000000068500000100000006850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000058500000000000000000000000000000000000001000000058500000100000005850000000000000080000001000000FFFFFFFFFFFFFFFF000000009F02000080070000A30200000100000001000010040000000100000072FDFFFF6F000000FFFFFFFF0800000003850000048500000D8500000F8500001085000011850000208500002A8500000180008000000100000000000000B902000080070000A903000000000000A30200008007000093030000000000004080005608000000FFFEFF0B42007200650061006B0070006F0069006E0074007300000000000385000001000000FFFFFFFFFFFFFFFFFFFEFF054200750069006C006400010000000485000001000000FFFFFFFFFFFFFFFFFFFEFF094400650062007500670020004C006F006700010000000D85000001000000FFFFFFFFFFFFFFFFFFFEFF0C4400650063006C00610072006100740069006F006E007300000000000F85000001000000FFFFFFFFFFFFFFFFFFFEFF0A5200650066006500720065006E00630065007300000000001085000001000000FFFFFFFFFFFFFFFFFFFEFF0D460069006E006400200069006E002000460069006C0065007300000000001185000001000000FFFFFFFFFFFFFFFFFFFEFF1541006D0062006900670075006F0075007300200044006500660069006E006900740069006F006E007300000000002085000001000000FFFFFFFFFFFFFFFFFFFEFF0B54006F006F006C0020004F0075007400700075007400000000002A85000001000000FFFFFFFFFFFFFFFF02000000000000000000000000000000000000000000000001000000FFFFFFFF0385000001000000FFFFFFFF03850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000028500000000000000000000000000000000000001000000028500000100000002850000000000000000000000000000
Debug
@@ -879,7 +880,7 @@
Main
- 00200000010000002100FFFF01001100434D4643546F6F6C426172427574746F6E00E10000000000005A000000FFFEFF000000000000000000000000000100000001000000018001E10000000000005B000000FFFEFF000000000000000000000000000100000001000000018003E10000000004005D000000FFFEFF000000000000000000000000000100000001000000018000810000000000003E000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018007E100000000040060000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018023E100000000000062000000FFFEFF000000000000000000000000000100000001000000018022E100000000000061000000FFFEFF000000000000000000000000000100000001000000018025E100000000000064000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001802BE100000000040067000000FFFEFF00000000000000000000000000010000000100000001802CE100000000040068000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000FFFF01001900434D4643546F6F6C426172436F6D626F426F78427574746F6E4281000000000400FFFFFFFFFFFEFF0001000000000000000100000000000000010000007800000002002050FFFFFFFFFFFEFF00960000000000000000000180218100000000040051000000FFFEFF000000000000000000000000000100000001000000018024E100000000040063000000FFFEFF000000000000000000000000000100000001000000018028E100000000040065000000FFFEFF000000000000000000000000000100000001000000018029E100000000040066000000FFFEFF0000000000000000000000000001000000010000000180028100000000040040000000FFFEFF0000000000000000000000000001000000010000000180298100000000040055000000FFFEFF0000000000000000000000000001000000010000000180278100000000040053000000FFFEFF0000000000000000000000000001000000010000000180288100000000040054000000FFFEFF00000000000000000000000000010000000100000001801D810000000004004D000000FFFEFF00000000000000000000000000010000000100000001801E810000000004004E000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001800B8100000000000044000000FFFEFF00000000000000000000000000010000000100000001800C8100000000000045000000FFFEFF00000000000000000000000000010000000100000001805F8600000000000059000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001801F810000000000004F000000FFFEFF0000000000000000000000000001000000010000000180208100000000000050000000FFFEFF0000000000000000000000000001000000010000000180468100000000020057000000FFFEFF00000000000000000000000000010000000100000000000000FFFEFF044D00610069006E00FF020000
+ 00200000010000002100FFFF01001100434D4643546F6F6C426172427574746F6E00E10000000000005A000000FFFEFF000000000000000000000000000100000001000000018001E10000000000005B000000FFFEFF000000000000000000000000000100000001000000018003E10000000000005D000000FFFEFF000000000000000000000000000100000001000000018000810000000000003E000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018007E100000000000060000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018023E100000000040062000000FFFEFF000000000000000000000000000100000001000000018022E100000000040061000000FFFEFF000000000000000000000000000100000001000000018025E100000000000064000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001802BE100000000040067000000FFFEFF00000000000000000000000000010000000100000001802CE100000000040068000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000FFFF01001900434D4643546F6F6C426172436F6D626F426F78427574746F6E4281000000000000FFFFFFFFFFFEFF0000000000000000000100000000000000010000007800000002002050FFFFFFFFFFFEFF00960000000000000000000180218100000000040051000000FFFEFF000000000000000000000000000100000001000000018024E100000000000063000000FFFEFF000000000000000000000000000100000001000000018028E100000000040065000000FFFEFF000000000000000000000000000100000001000000018029E100000000000066000000FFFEFF0000000000000000000000000001000000010000000180028100000000000040000000FFFEFF0000000000000000000000000001000000010000000180298100000000000055000000FFFEFF0000000000000000000000000001000000010000000180278100000000000053000000FFFEFF0000000000000000000000000001000000010000000180288100000000000054000000FFFEFF00000000000000000000000000010000000100000001801D810000000004004D000000FFFEFF00000000000000000000000000010000000100000001801E810000000004004E000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001800B8100000000000044000000FFFEFF00000000000000000000000000010000000100000001800C8100000000000045000000FFFEFF00000000000000000000000000010000000100000001805F8600000000000059000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001801F810000000000004F000000FFFEFF0000000000000000000000000001000000010000000180208100000000000050000000FFFEFF0000000000000000000000000001000000010000000180468100000000020057000000FFFEFF00000000000000000000000000010000000100000000000000FFFEFF044D00610069006E00FF020000
34049
diff --git a/board/STM8L052R8T6/IAR/hello_world/settings/stm8_project.dnx b/board/STM8L052R8T6/IAR/hello_world/settings/stm8_project.dnx
index d2ca9957..4d49e03c 100644
--- a/board/STM8L052R8T6/IAR/hello_world/settings/stm8_project.dnx
+++ b/board/STM8L052R8T6/IAR/hello_world/settings/stm8_project.dnx
@@ -49,7 +49,7 @@
1
- 941507234
+ 4271934099
0
@@ -96,8 +96,9 @@
_ "STD_CODE" "{D:\TOS\TencentOS-tiny}.293.5" 0 0 0 0 "" 0 ""
_ "STD_CODE" "{D:\TOS\TencentOS-tiny\board\STM8L052R8T6}.293.5" 0 0 0 0 "" 0 ""
_ "STD_CODE" "{D:\TOS\TencentOS-tiny\board\STM8L052R8T6}.299.9" 0 0 0 0 "" 0 ""
- _ "STD_CODE" "{$PROJ_DIR$\..\..\USER\stm8l15x_it.c}.293.5" 1 0 0 0 "" 0 ""
- 25
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny\board\STM8L052R8T6}.94.5" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{$PROJ_DIR$\..\..\USER\main.c}.94.5" 1 0 0 0 "" 0 ""
+ 26
0
diff --git a/board/STM8L052R8T6/IAR/hello_world/settings/stm8_project.wsdt b/board/STM8L052R8T6/IAR/hello_world/settings/stm8_project.wsdt
index 4aa1cce9..fb329031 100644
--- a/board/STM8L052R8T6/IAR/hello_world/settings/stm8_project.wsdt
+++ b/board/STM8L052R8T6/IAR/hello_world/settings/stm8_project.wsdt
@@ -66,19 +66,19 @@
- 191
+ 208
30
30
30
stm8_project
- stm8_project/user
+ stm8_project/TOS-CONFIG
- 19
- 1037
+ 20
+ 1867
2
0
@@ -96,16 +96,16 @@
1
1
1
- C40100001B001086000004000000158100000200000023920000010000005F86000001000000208100000100000004E10000010000000F8100000D0000000C810000DB0000000486000001000000558400001D00000000810000180000000E8100005A00000003E10000020000001F8100000100000000E10000010000000B810000010000000584000005000000148600000100000011860000020000000284000001000000008600000100000055860000030000004681000001000000108400003B0000000D8100000100000008860000010000000A84000003000000
+ D20100001B001581000002000000108600000400000023920000010000000F8100000F00000004E100000100000020810000010000005F860000010000000C810000E20000000486000001000000558400002000000000810000180000001F8100000100000003E10000020000000E8100005B0000000B8100000100000000E1000001000000148600000100000005840000050000005586000003000000008600000100000002840000010000001186000002000000108400003C00000046810000010000000A8400000300000008860000010000000D81000001000000
- 6700FFFFFFFF2AE10000008200001C820000018200007784000007840000808C00003C8400003D840000408400004C8400003E8400004B8400004D8400003F8400003A8400003B8400005A8400005B8400000C84000033840000788400000D8400000F8400000884000054840000328100001C810000098400005384000044D500001C8F00001D8F00001F8F0000208F0000218F0000118F000003DE000002DE000001DE00002B9200002A9200002692000000DE000008800000098000000A8000000B8000000C800000158000000A81000001E8000001B0000002B0000003B0000004B0000005B0000006B0000007B0000008B0000009B000000AB000000BB000000CB000000DB0000000B0000024810000818400007D84000082840000838400008484000067860000498100004A8100002F820000168200001882000019820000518400007C8400007E84000020F1000010F0000000F0000020F0000030F0000060F000005584000056840000598400000484000006840000328400003084000002840000038400000E8400001084000005840000318400000A840000
- 2200158100001A0000002CE10000380000000481000015000000268100002500000007E1000030000000239200000000000004E100002E0000000F8100001800000020810000200000005F860000290000000D8000000C00000001E100002B00000023E10000320000000C810000150000000981000016000000178100001C00000014810000190000002BE1000037000000008400000B000000008100000E00000003E100002D00000025E10000340000000E810000170000001F8100001F00000000E100002A00000022E10000310000000B8100001400000041E100003A000000168100001B000000058100001600000005E100002F00000035E100003C00000002E100002C0000000D81000016000000
+ 5C00FFFFFFFF2AE10000008200001C820000018200007784000007840000808C00003C8400003D840000408400004C8400003E8400004B8400004D8400003F8400003A8400003B8400005A8400005B8400000C84000033840000788400000D8400000F8400000884000054840000328100001C810000098400005384000044D500001C8F00001D8F00001F8F0000208F0000218F0000118F000003DE000002DE000001DE00002B9200002A9200002692000000DE000008800000098000000A8000000B8000000C800000158000000A81000001E8000001B0000002B0000003B0000004B0000005B0000006B0000007B0000008B0000009B000000AB000000BB000000CB000000DB0000000B0000024810000818400007D84000082840000838400008484000067860000498100004A8100002F820000168200001882000019820000518400007C8400007E84000020F1000010F0000000F0000020F0000030F0000060F00000558400005684000059840000
+ 2D000484000045000000268100002500000004810000150000002CE1000038000000158100001A000000318400004C000000239200000000000007E10000300000005F8600002900000020810000240000000F8100001C00000004E100002E0000000C8100001900000023E100003200000001E100002B0000000D8000000C000000068400004700000009810000160000000384000044000000178100001C000000008400000B0000002BE100003700000014810000190000000E84000049000000308400004B000000008100000E0000001F810000230000000E8100001B00000025E100003400000003E100002D0000000B8100001800000022E100003100000000E100002A000000058400004600000041E100003A00000002840000430000000581000016000000168100001B000000108400004A000000328400004D00000005E100002F0000000A840000480000000D8100001A00000002E100002C00000035E100003C000000
0
0A0000000A0000006E0000006E000000
- 00000000800200009005000093020000
+ 000000009303000080070000A6030000
4096
0
0
@@ -118,7 +118,7 @@
4294967295
0000000062000000180100003E020000
- 000000004C0000001801000015010000
+ 000000004C0000001801000028020000
4096
0
0
@@ -131,7 +131,7 @@
34049
030000006603000083070000F5040000
- 04000000310100002403000066020000
+ 0400000044020000CA03000079030000
32768
0
0
@@ -154,7 +154,7 @@
34052
030000006603000083070000F5040000
- 04000000310100003D04000066020000
+ 0400000044020000CA03000079030000
32768
0
0
@@ -176,7 +176,7 @@
34053
030000006603000083070000F5040000
- 04000000310100003D04000066020000
+ 0400000044020000CA03000079030000
32768
0
0
@@ -198,7 +198,7 @@
34054
030000006603000083070000F5040000
- 04000000310100003D04000066020000
+ 0400000044020000CA03000079030000
32768
0
0
@@ -221,7 +221,7 @@
34055
030000006603000083070000F5040000
- 04000000310100003D04000066020000
+ 0400000044020000CA03000079030000
32768
0
0
@@ -243,7 +243,7 @@
34057
030000006603000083070000F5040000
- 04000000310100003D04000066020000
+ 0400000044020000CA03000079030000
32768
0
0
@@ -262,7 +262,7 @@
34061
030000006603000083070000F5040000
- 04000000310100002403000066020000
+ 0400000044020000CA03000079030000
32768
0
0
@@ -320,7 +320,7 @@
34058
010000002600000019010000DD010000
- 00000000600000001801000015010000
+ 00000000600000001801000028020000
4096
0
0
@@ -387,11 +387,11 @@
- 000000000F000000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000000C85000000000000000000000000000000000000010000000C850000010000000C850000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000000B85000000000000000000000000000000000000010000000B850000010000000B850000000000000010000001000000FFFFFFFFFFFFFFFF180100004C0000001C01000015010000010000000200001004000000010000000000000000000000FFFFFFFF010000000A850000FFFF02000B004354616262656450616E6500100000010000000000000062000000180100003E020000000000004C0000001801000015010000000000004010005601000000FFFEFF0957006F0072006B0073007000610063006500010000000A85000001000000FFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000001000000FFFFFFFF0A85000001000000FFFFFFFF0A850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000038500000000000000000000000000000000000001000000038500000100000003850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000028500000000000000000000000000000000000001000000028500000100000002850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000118500000000000000000000000000000000000001000000118500000100000011850000000000000080000001000000FFFFFFFFFFFFFFFF0000000015010000900500001901000001000000010000100400000001000000CAFDFFFFC70000000000000000000000000000000100000000000000000000000000000001000000FFFFFFFF070000000185000004850000058500000685000007850000098500000D85000001800080000001000000000000004202000041040000A903000000000000190100002803000080020000000000004080005607000000FFFEFF054200750069006C006400010000000185000001000000FFFFFFFFFFFFFFFFFFFEFF0C4400650063006C00610072006100740069006F006E007300000000000485000001000000FFFFFFFFFFFFFFFFFFFEFF0A5200650066006500720065006E00630065007300000000000585000001000000FFFFFFFFFFFFFFFFFFFEFF0D460069006E006400200069006E002000460069006C0065007300000000000685000001000000FFFFFFFFFFFFFFFFFFFEFF1541006D0062006900670075006F0075007300200044006500660069006E006900740069006F006E007300000000000785000001000000FFFFFFFFFFFFFFFFFFFEFF0B54006F006F006C0020004F0075007400700075007400000000000985000001000000FFFFFFFFFFFFFFFFFFFEFF094400650062007500670020004C006F006700010000000D85000001000000FFFFFFFFFFFFFFFF00000000000000001085000002000000000000000100000002000000FFFFFFFF28030000190100002C0300008002000001000000020000100400000000000000A0FAFFFF430100000000000000000000000000000000000002000000FFFFFFFF0185000010850000010000001085000001000000FFFFFFFF01850000000000000000000000000000
+ 000000000F000000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000000C85000000000000000000000000000000000000010000000C850000010000000C850000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000000B85000000000000000000000000000000000000010000000B850000010000000B850000000000000010000001000000FFFFFFFFFFFFFFFF180100004C0000001C01000028020000010000000200001004000000010000000000000000000000FFFFFFFF010000000A850000FFFF02000B004354616262656450616E6500100000010000000000000062000000180100003E020000000000004C0000001801000028020000000000004010005601000000FFFEFF0957006F0072006B0073007000610063006500010000000A85000001000000FFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000001000000FFFFFFFF0A85000001000000FFFFFFFF0A850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000038500000000000000000000000000000000000001000000038500000100000003850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000028500000000000000000000000000000000000001000000028500000100000002850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000118500000000000000000000000000000000000001000000118500000100000011850000000000000080000001000000FFFFFFFFFFFFFFFF0000000028020000800700002C02000001000000010000100400000001000000CAFDFFFFC70000000000000000000000000000000100000000000000000000000000000001000000FFFFFFFF070000000185000004850000058500000685000007850000098500000D850000018000800000010000000000000042020000CE030000A9030000000000002C020000CE03000093030000000000004080005607000000FFFEFF054200750069006C006400010000000185000001000000FFFFFFFFFFFFFFFFFFFEFF0C4400650063006C00610072006100740069006F006E007300000000000485000001000000FFFFFFFFFFFFFFFFFFFEFF0A5200650066006500720065006E00630065007300000000000585000001000000FFFFFFFFFFFFFFFFFFFEFF0D460069006E006400200069006E002000460069006C0065007300000000000685000001000000FFFFFFFFFFFFFFFFFFFEFF1541006D0062006900670075006F0075007300200044006500660069006E006900740069006F006E007300000000000785000001000000FFFFFFFFFFFFFFFFFFFEFF0B54006F006F006C0020004F0075007400700075007400000000000985000001000000FFFFFFFFFFFFFFFFFFFEFF094400650062007500670020004C006F006700010000000D85000001000000FFFFFFFFFFFFFFFF00000000000000001085000002000000000000000100000002000000FFFFFFFFCE0300002C020000D20300009303000001000000020000100400000000000000A0FAFFFF430100000000000000000000000000000000000002000000FFFFFFFF0185000010850000010000001085000001000000FFFFFFFF01850000000000000000000000000000
Main
- 00200000010000002000FFFF01001100434D4643546F6F6C426172427574746F6E00E10000000000002A000000FFFEFF000000000000000000000000000100000001000000018001E10000000000002B000000FFFEFF000000000000000000000000000100000001000000018003E10000000000002D000000FFFEFF000000000000000000000000000100000001000000018000810000000000000E000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018007E100000000000030000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018023E100000000040032000000FFFEFF000000000000000000000000000100000001000000018022E100000000040031000000FFFEFF000000000000000000000000000100000001000000018025E100000000000034000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001802BE100000000040037000000FFFEFF00000000000000000000000000010000000100000001802CE100000000040038000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000FFFF01001900434D4643546F6F6C426172436F6D626F426F78427574746F6E4281000000000000FFFFFFFFFFFEFF0001000000000000000100000000000000010000007800000002002050FFFFFFFFFFFEFF00960000000000000000000180218100000000040021000000FFFEFF000000000000000000000000000100000001000000018024E100000000000033000000FFFEFF000000000000000000000000000100000001000000018028E100000000040035000000FFFEFF000000000000000000000000000100000001000000018029E100000000000036000000FFFEFF0000000000000000000000000001000000010000000180028100000000000010000000FFFEFF0000000000000000000000000001000000010000000180298100000000000025000000FFFEFF0000000000000000000000000001000000010000000180278100000000000023000000FFFEFF0000000000000000000000000001000000010000000180288100000000000024000000FFFEFF00000000000000000000000000010000000100000001801D810000000000001D000000FFFEFF00000000000000000000000000010000000100000001801E810000000004001E000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001800B8100000000040014000000FFFEFF00000000000000000000000000010000000100000001800C8100000000000015000000FFFEFF00000000000000000000000000010000000100000001805F8600000000000029000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001800E8100000000000017000000FFFEFF00000000000000000000000000010000000100000001800F8100000000000018000000FFFEFF00000000000000000000000000010000000100000000000000FFFEFF044D00610069006E00E8020000
+ 00200000010000002000FFFF01001100434D4643546F6F6C426172427574746F6E00E10000000000002E000000FFFEFF000000000000000000000000000100000001000000018001E10000000000002F000000FFFEFF000000000000000000000000000100000001000000018003E100000000040031000000FFFEFF0000000000000000000000000001000000010000000180008100000000000012000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018007E100000000040034000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018023E100000000040036000000FFFEFF000000000000000000000000000100000001000000018022E100000000040035000000FFFEFF000000000000000000000000000100000001000000018025E100000000040038000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001802BE10000000004003B000000FFFEFF00000000000000000000000000010000000100000001802CE10000000004003C000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000FFFF01001900434D4643546F6F6C426172436F6D626F426F78427574746F6E4281000000000400FFFFFFFFFFFEFF0000000000000000000100000000000000010000007800000002002050FFFFFFFFFFFEFF00960000000000000000000180218100000000040025000000FFFEFF000000000000000000000000000100000001000000018024E100000000040037000000FFFEFF000000000000000000000000000100000001000000018028E100000000040039000000FFFEFF000000000000000000000000000100000001000000018029E10000000004003A000000FFFEFF0000000000000000000000000001000000010000000180028100000000040014000000FFFEFF0000000000000000000000000001000000010000000180298100000000040029000000FFFEFF0000000000000000000000000001000000010000000180278100000000040027000000FFFEFF0000000000000000000000000001000000010000000180288100000000040028000000FFFEFF00000000000000000000000000010000000100000001801D8100000000040021000000FFFEFF00000000000000000000000000010000000100000001801E8100000000040022000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001800B8100000000040018000000FFFEFF00000000000000000000000000010000000100000001800C8100000000000019000000FFFEFF00000000000000000000000000010000000100000001805F860000000000002D000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001800E810000000000001B000000FFFEFF00000000000000000000000000010000000100000001800F810000000000001C000000FFFEFF00000000000000000000000000010000000100000000000000FFFEFF044D00610069006E00E8020000
34048
@@ -415,7 +415,7 @@
34064
770100003D030000F7080000CC040000
- 2C030000190100009005000080020000
+ D20300002C0200008007000093030000
32768
0
0
@@ -442,7 +442,7 @@
- 0100000003000000010000000000000000000000010000000100000002000000000000000100000001000000000000002800000028000000010000000A0000000900000001000000FFFEFF1A2400570053005F0044004900520024005C002E002E005C002E002E005C0055005300450052005C006D00610069006E002E00630001000000FFFF010014004966436F6E74656E7453746F72616765496D706CFFFEFF00FFFEFFFF27013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E00390035003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0032003300300036003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0032003300300036003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF066D00610069006E002E00630000000000FFFFFFFFFFFFFFFFFFFEFF2E2400570053005F0044004900520024005C002E002E005C002E002E005C002E002E005C002E002E005C0061007200630068005C00730074006D0038005C00690063006300610072006D005C0070006F00720074005F0073002E005300010000000180FFFEFF00FFFEFFFF21013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E00360034003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0030003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0030003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0870006F00720074005F0073002E00530000000000FFFFFFFFFFFFFFFFFFFEFF2B44003A005C0054004F0053005C00540065006E00630065006E0074004F0053002D00740069006E0079005C006B00650072006E0065006C005C0063006F00720065005C0074006F0073005F007300790073002E006300010000000180FFFEFF00FFFEFFFF22013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E003200310036003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0030003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0030003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0974006F0073005F007300790073002E00630000000000FFFFFFFFFFFFFFFFFFFEFF1C2400570053005F0044004900520024005C002E002E005C002E002E005C004200530050005C007300720063005C00740069006D002E006300010000000180FFFEFF00FFFEFFFF24013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E0030003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E003300320030003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E003300320030003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF05740069006D002E00630000000000FFFFFFFFFFFFFFFFFFFEFF2C44003A005C0054004F0053005C00540065006E00630065006E0074004F0053002D00740069006E0079005C006B00650072006E0065006C005C0063006F00720065005C0074006F0073005F007400690063006B002E006300010000000180FFFEFF00FFFEFFFF21013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E00390038003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0030003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0030003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0A74006F0073005F007400690063006B002E00630000000000FFFFFFFFFFFFFFFFFFFEFF2C44003A005C0054004F0053005C00540065006E00630065006E0074004F0053002D00740069006E0079005C006B00650072006E0065006C005C0063006F00720065005C0074006F0073005F007400610073006B002E006300010000000180FFFEFF00FFFEFFFF22013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E003400380035003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0030003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0030003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0A74006F0073005F007400610073006B002E00630000000000FFFFFFFFFFFFFFFFFFFEFF212400570053005F0044004900520024005C002E002E005C002E002E005C0055005300450052005C00730074006D0038006C003100350078005F00690074002E006300010000000180FFFEFF00FFFEFFFF28013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E003200380038003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0038003400340038003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0038003400340038003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0D730074006D0038006C003100350078005F00690074002E00630000000000FFFFFFFFFFFFFFFFFFFEFF2F2400570053005F0044004900520024005C002E002E005C002E002E005C002E002E005C002E002E005C0061007200630068005C00730074006D0038005C0063006F006D006D006F006E005C0074006F0073005F006300700075002E006300010000000180FFFEFF00FFFEFFFF22013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E003100390038003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0030003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0030003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0974006F0073005F006300700075002E00630000000000FFFFFFFFFFFFFFFFFFFEFF252400570053005F0044004900520024005C002E002E005C002E002E005C004C00490042005C007300720063005C00730074006D0038006C003100350078005F006900740063002E006300010000000180FFFEFF00FFFEFFFF27013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E00340037003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0032003500320036003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0032003500320036003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0E730074006D0038006C003100350078005F006900740063002E00630000000000FFFFFFFFFFFFFFFFFFFEFF332400570053005F0044004900520024005C002E002E005C002E002E005C002E002E005C002E002E005C006B00650072006E0065006C005C0063006F00720065005C0069006E0063006C007500640065005C0074006F0073005F007400610073006B002E006800010000000180FFFEFF00FFFEFFFF28013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E003100310036003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0037003100340032003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0037003100340032003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0A74006F0073005F007400610073006B002E00680000000000FFFFFFFFFFFFFFFF0000000010000000C5D4F200FFDC7800BECEA100F0A0A100BCA8E1009CC1B600F7B88600D9ADC200A5C2D700B3A6BE00EAD6A300F6FA7D00B5E99D005FC3CF00C1838300CACAD5000100000001000000020000003A020000D6000000AE0600009F010000
+ 0100000003000000010000000000000000000000010000000100000002000000000000000100000001000000000000002800000028000000010000000B0000000500000001000000FFFEFF1A2400570053005F0044004900520024005C002E002E005C002E002E005C0055005300450052005C006D00610069006E002E00630001000000FFFF010014004966436F6E74656E7453746F72616765496D706CFFFEFF00FFFEFFFF27013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E00390031003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0032003100300033003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0032003100300033003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF066D00610069006E002E00630000000000FFFFFFFFFFFFFFFFFFFEFF2E2400570053005F0044004900520024005C002E002E005C002E002E005C002E002E005C002E002E005C0061007200630068005C00730074006D0038005C00690063006300610072006D005C0070006F00720074005F0073002E005300010000000180FFFEFF00FFFEFFFF21013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E00340039003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0030003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0030003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0870006F00720074005F0073002E00530000000000FFFFFFFFFFFFFFFFFFFEFF2B44003A005C0054004F0053005C00540065006E00630065006E0074004F0053002D00740069006E0079005C006B00650072006E0065006C005C0063006F00720065005C0074006F0073005F007300790073002E006300010000000180FFFEFF00FFFEFFFF22013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E003200310036003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0030003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0030003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0974006F0073005F007300790073002E00630000000000FFFFFFFFFFFFFFFFFFFEFF1C2400570053005F0044004900520024005C002E002E005C002E002E005C004200530050005C007300720063005C00740069006D002E006300010000000180FFFEFF00FFFEFFFF24013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E0030003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E003300320030003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E003300320030003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF05740069006D002E00630000000000FFFFFFFFFFFFFFFFFFFEFF2C44003A005C0054004F0053005C00540065006E00630065006E0074004F0053002D00740069006E0079005C006B00650072006E0065006C005C0063006F00720065005C0074006F0073005F007400690063006B002E006300010000000180FFFEFF00FFFEFFFF21013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E00390038003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0030003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0030003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0A74006F0073005F007400690063006B002E00630000000000FFFFFFFFFFFFFFFFFFFEFF2C44003A005C0054004F0053005C00540065006E00630065006E0074004F0053002D00740069006E0079005C006B00650072006E0065006C005C0063006F00720065005C0074006F0073005F007400610073006B002E006300010000000180FFFEFF00FFFEFFFF27013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E00340033003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0031003700390038003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0031003700390038003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0A74006F0073005F007400610073006B002E00630000000000FFFFFFFFFFFFFFFFFFFEFF212400570053005F0044004900520024005C002E002E005C002E002E005C0055005300450052005C00730074006D0038006C003100350078005F00690074002E006300010000000180FFFEFF00FFFEFFFF28013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E003200390034003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0038003400300039003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0038003400300039003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0D730074006D0038006C003100350078005F00690074002E00630000000000FFFFFFFFFFFFFFFFFFFEFF2F2400570053005F0044004900520024005C002E002E005C002E002E005C002E002E005C002E002E005C0061007200630068005C00730074006D0038005C0063006F006D006D006F006E005C0074006F0073005F006300700075002E006300010000000180FFFEFF00FFFEFFFF22013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E003200340039003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0030003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0030003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0974006F0073005F006300700075002E00630000000000FFFFFFFFFFFFFFFFFFFEFF252400570053005F0044004900520024005C002E002E005C002E002E005C004C00490042005C007300720063005C00730074006D0038006C003100350078005F006900740063002E006300010000000180FFFEFF00FFFEFFFF27013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E00340037003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0032003500320036003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0032003500320036003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0E730074006D0038006C003100350078005F006900740063002E00630000000000FFFFFFFFFFFFFFFFFFFEFF332400570053005F0044004900520024005C002E002E005C002E002E005C002E002E005C002E002E005C006B00650072006E0065006C005C0063006F00720065005C0069006E0063006C007500640065005C0074006F0073005F007400610073006B002E006800010000000180FFFEFF00FFFEFFFF28013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E003100310036003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0036003500340039003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0036003500340039003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0A74006F0073005F007400610073006B002E00680000000000FFFFFFFFFFFFFFFFFFFEFF262400570053005F0044004900520024005C002E002E005C002E002E005C0054004F0053002D0043004F004E004600490047005C0074006F0073005F0063006F006E006600690067002E006800010000000180FFFEFF00FFFEFFFF24013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E0030003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E003200330035003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E003200330035003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0C74006F0073005F0063006F006E006600690067002E00680000000000FFFFFFFFFFFFFFFF0000000010000000C5D4F200FFDC7800BECEA100F0A0A100BCA8E1009CC1B600F7B88600D9ADC200A5C2D700B3A6BE00EAD6A300F6FA7D00B5E99D005FC3CF00C1838300CACAD5000100000001000000020000001C01000062000000800700003E020000
diff --git a/board/STM8L052R8T6/IAR/shell/README.md b/board/STM8L052R8T6/IAR/shell/README.md
new file mode 100644
index 00000000..b96b840c
--- /dev/null
+++ b/board/STM8L052R8T6/IAR/shell/README.md
@@ -0,0 +1,7 @@
+- set your uart's baudrate to 9600, too high may not work
+
+- replace all the tos_mmheap_alloc in tos_shell.c with malloc
+
+ replace all the tos_mmheap_free in tos_shell.c with free
+
+ That means we would not use tos_mmheap in STM8
\ No newline at end of file
diff --git a/board/STM8L052R8T6/IAR/shell/settings/stm8_project.Debug.cspy.bat b/board/STM8L052R8T6/IAR/shell/settings/stm8_project.Debug.cspy.bat
new file mode 100644
index 00000000..05acf8ed
--- /dev/null
+++ b/board/STM8L052R8T6/IAR/shell/settings/stm8_project.Debug.cspy.bat
@@ -0,0 +1,40 @@
+@REM This batch file has been generated by the IAR Embedded Workbench
+@REM C-SPY Debugger, as an aid to preparing a command line for running
+@REM the cspybat command line utility using the appropriate settings.
+@REM
+@REM Note that this file is generated every time a new debug session
+@REM is initialized, so you may want to move or rename the file before
+@REM making changes.
+@REM
+@REM You can launch cspybat by typing the name of this batch file followed
+@REM by the name of the debug file (usually an ELF/DWARF or UBROF file).
+@REM
+@REM Read about available command line parameters in the C-SPY Debugging
+@REM Guide. Hints about additional command line parameters that may be
+@REM useful in specific cases:
+@REM --download_only Downloads a code image without starting a debug
+@REM session afterwards.
+@REM --silent Omits the sign-on message.
+@REM --timeout Limits the maximum allowed execution time.
+@REM
+
+
+@echo off
+
+if not "%~1" == "" goto debugFile
+
+@echo on
+
+"D:\Program Files\Embedded Workbench 8.3 STM8\common\bin\cspybat" -f "D:\TOS\TencentOS-tiny\board\STM8L052R8T6\IAR\shell\settings\stm8_project.Debug.general.xcl" --backend -f "D:\TOS\TencentOS-tiny\board\STM8L052R8T6\IAR\shell\settings\stm8_project.Debug.driver.xcl"
+
+@echo off
+goto end
+
+:debugFile
+
+@echo on
+
+"D:\Program Files\Embedded Workbench 8.3 STM8\common\bin\cspybat" -f "D:\TOS\TencentOS-tiny\board\STM8L052R8T6\IAR\shell\settings\stm8_project.Debug.general.xcl" "--debug_file=%~1" --backend -f "D:\TOS\TencentOS-tiny\board\STM8L052R8T6\IAR\shell\settings\stm8_project.Debug.driver.xcl"
+
+@echo off
+:end
\ No newline at end of file
diff --git a/board/STM8L052R8T6/IAR/shell/settings/stm8_project.Debug.cspy.ps1 b/board/STM8L052R8T6/IAR/shell/settings/stm8_project.Debug.cspy.ps1
new file mode 100644
index 00000000..d41c128d
--- /dev/null
+++ b/board/STM8L052R8T6/IAR/shell/settings/stm8_project.Debug.cspy.ps1
@@ -0,0 +1,31 @@
+param([String]$debugfile = "");
+
+# This powershell file has been generated by the IAR Embedded Workbench
+# C - SPY Debugger, as an aid to preparing a command line for running
+# the cspybat command line utility using the appropriate settings.
+#
+# Note that this file is generated every time a new debug session
+# is initialized, so you may want to move or rename the file before
+# making changes.
+#
+# You can launch cspybat by typing Powershell.exe -File followed by the name of this batch file, followed
+# by the name of the debug file (usually an ELF / DWARF or UBROF file).
+#
+# Read about available command line parameters in the C - SPY Debugging
+# Guide. Hints about additional command line parameters that may be
+# useful in specific cases :
+# --download_only Downloads a code image without starting a debug
+# session afterwards.
+# --silent Omits the sign - on message.
+# --timeout Limits the maximum allowed execution time.
+#
+
+
+if ($debugfile -eq "")
+{
+& "D:\Program Files\Embedded Workbench 8.3 STM8\common\bin\cspybat" -f "D:\TOS\TencentOS-tiny\board\STM8L052R8T6\IAR\shell\settings\stm8_project.Debug.general.xcl" --backend -f "D:\TOS\TencentOS-tiny\board\STM8L052R8T6\IAR\shell\settings\stm8_project.Debug.driver.xcl"
+}
+else
+{
+& "D:\Program Files\Embedded Workbench 8.3 STM8\common\bin\cspybat" -f "D:\TOS\TencentOS-tiny\board\STM8L052R8T6\IAR\shell\settings\stm8_project.Debug.general.xcl" --debug_file=$debugfile --backend -f "D:\TOS\TencentOS-tiny\board\STM8L052R8T6\IAR\shell\settings\stm8_project.Debug.driver.xcl"
+}
diff --git a/board/STM8L052R8T6/IAR/shell/settings/stm8_project.Debug.driver.xcl b/board/STM8L052R8T6/IAR/shell/settings/stm8_project.Debug.driver.xcl
new file mode 100644
index 00000000..0d1f84f5
--- /dev/null
+++ b/board/STM8L052R8T6/IAR/shell/settings/stm8_project.Debug.driver.xcl
@@ -0,0 +1,11 @@
+"-p"
+
+"D:\Program Files\Embedded Workbench 8.3 STM8\stm8\config\ddf\iostm8l052r8.ddf"
+
+"--mcuname"
+
+"STM8L052R8"
+
+
+
+
diff --git a/board/STM8L052R8T6/IAR/shell/settings/stm8_project.Debug.general.xcl b/board/STM8L052R8T6/IAR/shell/settings/stm8_project.Debug.general.xcl
new file mode 100644
index 00000000..75f88946
--- /dev/null
+++ b/board/STM8L052R8T6/IAR/shell/settings/stm8_project.Debug.general.xcl
@@ -0,0 +1,11 @@
+"D:\Program Files\Embedded Workbench 8.3 STM8\stm8\bin\stm8proc.dll"
+
+"D:\Program Files\Embedded Workbench 8.3 STM8\stm8\bin\stm8stlink.dll"
+
+"D:\TOS\TencentOS-tiny\board\STM8L052R8T6\IAR\shell\Debug\Exe\stm8_project.out"
+
+--plugin="D:\Program Files\Embedded Workbench 8.3 STM8\stm8\bin\stm8bat.dll"
+
+
+
+
diff --git a/board/STM8L052R8T6/IAR/shell/settings/stm8_project.dbgdt b/board/STM8L052R8T6/IAR/shell/settings/stm8_project.dbgdt
new file mode 100644
index 00000000..b9fa4efe
--- /dev/null
+++ b/board/STM8L052R8T6/IAR/shell/settings/stm8_project.dbgdt
@@ -0,0 +1,899 @@
+
+
+
+
+ 34048
+ 34049
+ 34050
+ 34051
+ 34052
+ 34053
+ 34054
+ 34055
+ 34056
+ 34057
+ 34058
+ 34059
+ 34060
+ 34061
+ 34062
+ 34063
+ 34064
+ 34065
+ 34066
+ 34067
+ 34068
+ 34069
+ 34070
+ 34071
+ 34072
+ 34073
+ 34074
+ 34075
+ 34076
+ 34077
+ 34078
+ 34079
+ 34080
+ 34081
+ 34082
+ 34083
+ 34084
+ 34085
+ 34086
+ 34087
+ 34088
+ 34089
+ 34090
+ 34091
+ 34092
+ 34093
+ 34094
+ 34095
+ 34096
+
+
+
+
+ - 34390
+ - 34323
+ - 34398
+ - 34400
+ - 34397
+ - 34320
+ - 34321
+ - 34324
+ - 0
+
+
+
+
+ - 57600
+ - 57601
+ - 57603
+ - 33024
+ - 0
+ - 57607
+ - 0
+ - 57635
+ - 57634
+ - 57637
+ - 0
+ - 57643
+ - 57644
+ - 0
+ - 33090
+ - 33057
+ - 57636
+ - 57640
+ - 57641
+ - 33026
+ - 33065
+ - 33063
+ - 33064
+ - 33053
+ - 33054
+ - 0
+ - 33035
+ - 33036
+ - 34399
+ - 0
+ - 33055
+ - 33056
+ - 33094
+ - 0
+
+
+
+
+ - Disassembly
+ - _I0
+
+
+ - 500
+ - 20
+
+
+ 1
+ 1
+
+
+ 14
+ 16
+
+
+ 1
+ 1
+ 0
+ 0
+ 1
+ 1
+ 1
+ AC0000001B001086000005000000158100000200000023920000010000005F86000001000000208100000800000004E10000010000000F810000020000000C8100001A0000000486000001000000558400001300000000810000180000000E8100001E00000003E10000020000001F8100000100000000E10000010000000B810000010000000584000002000000148600000100000011860000040000000284000001000000008600000100000055860000030000004681000015000000108400002F0000000D8100000100000008860000010000000A84000003000000
+
+
+ 1F00FFFFFFFF7486000008800000098000000A8000000B8000000C800000158000000A81000001E800000C8400003384000078840000A4860000A3860000BE860000BF86000003DE000002DE000001DE00002B9200002A9200002692000000DE00007784000007840000808C000044D50000838600005886000037870000
+ 3B0002860000100000005786000018000000048400007100000013860000250000000481000041000000768600002F00000010860000230000002392000000000000318400007800000084860000300000000A8600002100000020810000500000000F81000048000000078600001E0000000C81000045000000048600001B00000006840000730000000981000043000000018600000F0000009A8600001600000003840000700000005686000029000000008400006D0000000E84000075000000308400007700000009860000200000001A860000280000001F8100004F0000000E810000470000005E8600002B000000068600001D0000008E860000310000000B810000440000000386000011000000698600002E00000005840000720000001486000026000000008600000E0000005586000007000000028400006F000000058100004200000011860000240000000E860000170000001084000076000000328400007900000046810000580000000B86000022000000608600002D000000088600001F000000C386000003000000A1860000320000000A840000740000000D8100004600000035E100006900000002E100005C0000005D8600002A000000058600001C0000001686000027000000C08600000B000000
+
+
+ 0
+ 0A0000000A0000006E0000006E000000
+ 000000009303000080070000A6030000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 1
+
+
+ 34050
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 4294967295
+ 00000000E8010000AA050000B5020000
+ 00000000D2010000AA0500009F020000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 1
+
+
+ 34051
+ 000000001600000022010000C6000000
+ 04000000BB0200007C07000079030000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+ 34052
+ 000000001600000022010000C6000000
+ 04000000BB0200007C07000079030000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 1
+
+
+ 34061
+ 000000001600000022010000C6000000
+ 04000000BB0200007C07000079030000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 1
+
+
+ 34063
+ 000000001600000022010000C6000000
+ 04000000BB0200007C07000079030000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+ 34064
+ 000000001600000022010000C6000000
+ 04000000BB0200007C07000079030000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+ 34065
+ 000000001600000022010000C6000000
+ 04000000BB0200007C07000079030000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+ 34080
+ 000000001600000022010000C6000000
+ 04000000BB0200007C07000079030000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+ 34090
+ 000000001600000022010000C6000000
+ 04000000BB0200007C07000079030000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+ 34053
+ 000000001600000080020000A6000000
+ 00000000000000008002000090000000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+ 34054
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34055
+ 000000001600000022010000C6000000
+ 000000000000000022010000B0000000
+ 8192
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34056
+ 000000001600000022010000C6000000
+ 000000000000000022010000B0000000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+ 34057
+ 000000001600000022010000C6000000
+ 000000000000000022010000B0000000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+ 34058
+ 000000001600000022010000C6000000
+ 000000000000000022010000B0000000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34059
+ 000000001600000022010000C6000000
+ 000000000000000022010000B0000000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34060
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34062
+ 00000000160000000601000076010000
+ AE0500004C000000800700009F020000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 1
+
+
+ 34066
+ 000000001600000022010000C6000000
+ 000000000000000022010000B0000000
+ 8192
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34067
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34068
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34069
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34070
+ 000000001600000022010000D6000000
+ 00000000E6010000AA0500009F020000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 1
+
+
+
+ - 0x0210
+ - 0x0209
+ - 0x0208
+ - 0x040E
+ - 0x0212
+ - 0x01D8
+ - 0x01DC
+
+ 0
+ 528
+ 528
+ 1
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 27
+
+
+ 34071
+ 000000001600000022010000D6000000
+ 04000000EA010000A605000085020000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34072
+ 000000001600000022010000D6000000
+ 04000000EA010000A605000085020000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34073
+ 000000001600000022010000D6000000
+ 04000000EA010000A605000085020000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34074
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34075
+ 00000000160000000601000076010000
+ 890400004C000000AA050000CE010000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 1
+
+
+
+ - Access
+ - Name
+ - Value
+
+
+ - 180
+ - 180
+ - 180
+
+
+ 0
+
+
+ 34076
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34077
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34078
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34079
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34081
+ 000000001600000022010000C6000000
+ 000000000000000022010000B0000000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+ 34082
+ 000000001600000080020000A6000000
+ 00000000000000008002000090000000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+ 34083
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34084
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34085
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34086
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34087
+ 000000001600000022010000C6000000
+ 000000000000000022010000B0000000
+ 8192
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34088
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34089
+ 0000000016000000AE010000D6000000
+ 0000000000000000AE010000C0000000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34091
+ 0000000016000000AE010000D6000000
+ 0000000000000000AE010000C0000000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34092
+ 00000000160000000601000076010000
+ F00200004C00000085040000CE010000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 1
+
+
+
+ - k_curr_task
+ - k_next_task
+ - task1_entry
+
+
+
+ - Expression
+ - Location
+ - Type
+ - Value
+
+
+ - 100
+ - 150
+ - 100
+ - 114
+
+
+
+ 34093
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34094
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34095
+ 00000000160000000601000076010000
+ 00000000000000000601000060010000
+ 16384
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34096
+ 00000000160000000601000076010000
+ 000000004C00000096000000CE010000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 1
+
+
+ 000000004A000000000000000010000001000000FFFFFFFFFFFFFFFF960000004C0000009A000000CE010000010000000200001004000000010000000000000000000000308500000000000000000000000000000000000001000000308500000100000030850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000002F85000000000000000000000000000000000000010000002F850000010000002F850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000002E85000000000000000000000000000000000000010000002E850000010000002E850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000002D85000000000000000000000000000000000000010000002D850000010000002D850000000000000040000001000000FFFFFFFFFFFFFFFFEC0200004C000000F0020000CE0100000100000002000010040000000100000022FEFFFFB30100002C85000000000000000000000000000000000000010000002C850000010000002C850000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000002B85000000000000000000000000000000000000010000002B850000010000002B850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000298500000000000000000000000000000000000001000000298500000100000029850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000288500000000000000000000000000000000000001000000288500000100000028850000000000000020000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000278500000000000000000000000000000000000001000000278500000100000027850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000268500000000000000000000000000000000000001000000268500000100000026850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000258500000000000000000000000000000000000001000000258500000100000025850000000000000010000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000248500000000000000000000000000000000000001000000248500000100000024850000000000000010000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000238500000000000000000000000000000000000001000000238500000100000023850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000228500000000000000000000000000000000000001000000228500000100000022850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000218500000000000000000000000000000000000001000000218500000100000021850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000001F85000000000000000000000000000000000000010000001F850000010000001F850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000001E85000000000000000000000000000000000000010000001E850000010000001E850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000001D85000000000000000000000000000000000000010000001D850000010000001D850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000001C85000000000000000000000000000000000000010000001C850000010000001C850000000000000040000001000000FFFFFFFFFFFFFFFF850400004C00000089040000CE0100000100000002000010040000000100000075FBFFFF2B0000001B85000000000000000000000000000000000000010000001B850000010000001B850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000001A85000000000000000000000000000000000000010000001A850000010000001A850000000000000080000001000000FFFFFFFFFFFFFFFF00000000CE010000AA050000D20100000100000001000010040000000100000017FEFFFF00000000FFFFFFFF0400000016850000178500001885000019850000FFFF02000B004354616262656450616E65008000000100000000000000E8010000AA050000B502000000000000D2010000AA0500009F020000000000004080005604000000FFFEFF084D0065006D006F007200790020003100010000001685000001000000FFFFFFFFFFFFFFFFFFFEFF084D0065006D006F007200790020003200000000001785000001000000FFFFFFFFFFFFFFFFFFFEFF084D0065006D006F007200790020003300000000001885000001000000FFFFFFFFFFFFFFFFFFFEFF084D0065006D006F007200790020003400000000001985000001000000FFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000001000000FFFFFFFF1685000001000000FFFFFFFF16850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000158500000000000000000000000000000000000001000000158500000100000015850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000148500000000000000000000000000000000000001000000148500000100000014850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000138500000000000000000000000000000000000001000000138500000100000013850000000000000020000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000128500000000000000000000000000000000000001000000128500000100000012850000000000000040000001000000FFFFFFFFFFFFFFFFAA0500004C000000AE0500009F02000001000000020000100400000001000000B9FAFFFF450100000E85000000000000000000000000000000000000010000000E850000010000000E850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000000C85000000000000000000000000000000000000010000000C850000010000000C850000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000000B85000000000000000000000000000000000000010000000B850000010000000B850000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000000A85000000000000000000000000000000000000010000000A850000010000000A850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000098500000000000000000000000000000000000001000000098500000100000009850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000088500000000000000000000000000000000000001000000088500000100000008850000000000000020000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000078500000000000000000000000000000000000001000000078500000100000007850000000000000010000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000068500000000000000000000000000000000000001000000068500000100000006850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000058500000000000000000000000000000000000001000000058500000100000005850000000000000080000001000000FFFFFFFFFFFFFFFF000000009F02000080070000A30200000100000001000010040000000100000072FDFFFF6F000000FFFFFFFF0800000003850000048500000D8500000F8500001085000011850000208500002A8500000180008000000100000000000000B902000080070000A903000000000000A30200008007000093030000000000004080005608000000FFFEFF0B42007200650061006B0070006F0069006E0074007300000000000385000001000000FFFFFFFFFFFFFFFFFFFEFF054200750069006C006400010000000485000001000000FFFFFFFFFFFFFFFFFFFEFF094400650062007500670020004C006F006700010000000D85000001000000FFFFFFFFFFFFFFFFFFFEFF0C4400650063006C00610072006100740069006F006E007300000000000F85000001000000FFFFFFFFFFFFFFFFFFFEFF0A5200650066006500720065006E00630065007300000000001085000001000000FFFFFFFFFFFFFFFFFFFEFF0D460069006E006400200069006E002000460069006C0065007300000000001185000001000000FFFFFFFFFFFFFFFFFFFEFF1541006D0062006900670075006F0075007300200044006500660069006E006900740069006F006E007300000000002085000001000000FFFFFFFFFFFFFFFFFFFEFF0B54006F006F006C0020004F0075007400700075007400000000002A85000001000000FFFFFFFFFFFFFFFF02000000000000000000000000000000000000000000000001000000FFFFFFFF0385000001000000FFFFFFFF03850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000028500000000000000000000000000000000000001000000028500000100000002850000000000000000000000000000
+
+
+ Debug
+ 00200000010000000800FFFF01001100434D4643546F6F6C426172427574746F6E568600000000040029000000FFFEFF0000000000000000000000000001000000010000000180138600000000040025000000FFFEFF00000000000000000000000000010000000100000001805E860000000004002B000000FFFEFF000000000000000000000000000100000001000000018060860000000004002D000000FFFEFF00000000000000000000000000010000000100000001805D860000000004002A000000FFFEFF0000000000000000000000000001000000010000000180108600000000040023000000FFFEFF0000000000000000000000000001000000010000000180118600000000000024000000FFFEFF000000000000000000000000000100000001000000FFFF01001500434D4643546F6F6C4261724D656E75427574746F6E148600000000040026000000FFFEFF205200650073006500740020007400680065002000640065006200750067006700650064002000700072006F006700720061006D000A00520065007300650074000000000000000000000000000100000001000000000000000000000001000000020009800000000000000400FFFFFFFFFFFEFF000000000000000000000000000100000001000000000000000000000001000000000009801986000000000000FFFFFFFFFFFEFF000100000000000000000000000100000001000000000000000000000001000000000000000000FFFEFF0544006500620075006700C6000000
+
+
+ 34048
+ 0A0000000A0000006E0000006E000000
+ 150300001A000000F103000034000000
+ 8192
+ 1
+ 0
+ 198
+ 0
+
+
+ 1
+
+
+ Main
+ 00200000010000002100FFFF01001100434D4643546F6F6C426172427574746F6E00E10000000000005B000000FFFEFF000000000000000000000000000100000001000000018001E10000000000005C000000FFFEFF000000000000000000000000000100000001000000018003E10000000000005E000000FFFEFF000000000000000000000000000100000001000000018000810000000000003F000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018007E100000000000061000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018023E100000000040063000000FFFEFF000000000000000000000000000100000001000000018022E100000000040062000000FFFEFF000000000000000000000000000100000001000000018025E100000000000065000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001802BE100000000040068000000FFFEFF00000000000000000000000000010000000100000001802CE100000000040069000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000FFFF01001900434D4643546F6F6C426172436F6D626F426F78427574746F6E4281000000000000FFFFFFFFFFFEFF0001000000000000000100000000000000010000007800000002002050FFFFFFFFFFFEFF00960000000000000000000180218100000000040052000000FFFEFF000000000000000000000000000100000001000000018024E100000000000064000000FFFEFF000000000000000000000000000100000001000000018028E100000000040066000000FFFEFF000000000000000000000000000100000001000000018029E100000000000067000000FFFEFF0000000000000000000000000001000000010000000180028100000000000041000000FFFEFF0000000000000000000000000001000000010000000180298100000000000056000000FFFEFF0000000000000000000000000001000000010000000180278100000000000054000000FFFEFF0000000000000000000000000001000000010000000180288100000000000055000000FFFEFF00000000000000000000000000010000000100000001801D810000000004004E000000FFFEFF00000000000000000000000000010000000100000001801E810000000004004F000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001800B8100000000000045000000FFFEFF00000000000000000000000000010000000100000001800C8100000000000046000000FFFEFF00000000000000000000000000010000000100000001805F860000000000005A000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001801F8100000000000050000000FFFEFF0000000000000000000000000001000000010000000180208100000000000051000000FFFEFF0000000000000000000000000001000000010000000180468100000000020058000000FFFEFF00000000000000000000000000010000000100000000000000FFFEFF044D00610069006E00FF020000
+
+
+ 34049
+ 0A0000000A0000006E0000006E000000
+ 000000001A0000001503000034000000
+ 8192
+ 1
+ 0
+ 767
+ 0
+
+
+ 1
+
+
+
+
diff --git a/board/STM8L052R8T6/IAR/shell/settings/stm8_project.dnx b/board/STM8L052R8T6/IAR/shell/settings/stm8_project.dnx
new file mode 100644
index 00000000..f6aa3ed8
--- /dev/null
+++ b/board/STM8L052R8T6/IAR/shell/settings/stm8_project.dnx
@@ -0,0 +1,114 @@
+
+
+
+ 0
+ 1
+ 90
+ 1
+ 1
+ 1
+ main
+ 0
+ 50
+
+
+ 0
+ 1
+
+
+ 0
+ 0
+ 1
+ 0
+ 1
+ 0
+
+
+ 0
+ 0
+ 1
+ 0
+ 1
+
+
+ 0
+
+
+ 1
+
+
+ 1
+ 0
+ 1
+ 0
+ 1
+
+
+ 16000000
+ 0
+ 1
+
+
+ 407403705
+
+
+ 0
+
+
+ 1
+
+
+ 0
+ 0
+ 1
+
+
+ _ 0
+ _ ""
+
+
+ _ 0
+ _ ""
+ _ 0
+
+
+ _ "STD_CODE" "0x008960" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "0x008961" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "0x0088AE" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny\kernel\core\tos_task.c}.351.5" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny}.238.1" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny\board\STM8L052R8T6}.85.9" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny}.211.1" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny}.238.1" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny}.232.1" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny}.232.1" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny\board\STM8L052R8T6}.138.5" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny\board\STM8L052R8T6}.106.9" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny\board\STM8L052R8T6}.96.1" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny\board\STM8L052R8T6}.149.5" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny\board\STM8L052R8T6}.107.9" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny\board\STM8L052R8T6}.293.5" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny}.100.1" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny}.91.1" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny}.96.1" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny}.293.5" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny}.293.5" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny\board\STM8L052R8T6}.293.5" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny\board\STM8L052R8T6}.299.9" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny\board\STM8L052R8T6}.439.5" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny\components\shell\tos_shell.c}.129.13" 1 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny\components\shell\tos_shell.c}.138.11" 1 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny\board\STM8L052R8T6}.441.5" 0 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny\components\shell\tos_shell.c}.33.5" 1 0 0 0 "" 0 ""
+ _ "STD_CODE" "{D:\TOS\TencentOS-tiny\components\shell\tos_shell.c}.222.1" 1 0 0 0 "" 0 ""
+ 29
+
+
+ 0
+ 0
+
+
+ 0
+ 0
+
+
diff --git a/board/STM8L052R8T6/IAR/shell/settings/stm8_project.reggroups b/board/STM8L052R8T6/IAR/shell/settings/stm8_project.reggroups
new file mode 100644
index 00000000..5f282702
--- /dev/null
+++ b/board/STM8L052R8T6/IAR/shell/settings/stm8_project.reggroups
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/board/STM8L052R8T6/IAR/shell/settings/stm8_project.wsdt b/board/STM8L052R8T6/IAR/shell/settings/stm8_project.wsdt
new file mode 100644
index 00000000..74fceeee
--- /dev/null
+++ b/board/STM8L052R8T6/IAR/shell/settings/stm8_project.wsdt
@@ -0,0 +1,448 @@
+
+
+
+
+ stm8_project/Debug
+
+
+
+
+ 34048
+ 34049
+ 34050
+ 34051
+ 34052
+ 34053
+ 34054
+ 34055
+ 34056
+ 34057
+ 34058
+ 34059
+ 34060
+ 34061
+ 34062
+ 34063
+ 34064
+ 34065
+
+
+
+
+ - 57600
+ - 57601
+ - 57603
+ - 33024
+ - 0
+ - 57607
+ - 0
+ - 57635
+ - 57634
+ - 57637
+ - 0
+ - 57643
+ - 57644
+ - 0
+ - 33090
+ - 33057
+ - 57636
+ - 57640
+ - 57641
+ - 33026
+ - 33065
+ - 33063
+ - 33064
+ - 33053
+ - 33054
+ - 0
+ - 33035
+ - 33036
+ - 34399
+ - 0
+ - 33038
+ - 33039
+ - 0
+
+
+
+
+ 208
+ 30
+ 30
+ 30
+
+
+ stm8_project
+
+
+
+ 19
+ 1318
+ 2
+
+ 0
+ -1
+
+
+ 14
+ 16
+
+
+ 1
+ 1
+ 0
+ 0
+ 1
+ 1
+ 1
+ 480200001B001581000002000000108600000400000023920000010000000F8100001100000004E100000100000020810000010000005F860000010000000C8100001F0100000486000001000000558400003300000000810000180000001F8100000100000003E10000020000000E8100007F0000000B8100000100000000E1000001000000148600000100000005840000050000005586000003000000008600000100000002840000010000001186000002000000108400003C00000046810000010000000A8400000300000008860000010000000D81000001000000
+
+
+ 6700FFFFFFFF2AE10000008200001C820000018200007784000007840000808C00003C8400003D840000408400004C8400003E8400004B8400004D8400003F8400003A8400003B8400005A8400005B8400000C84000033840000788400000D8400000F8400000884000054840000328100001C810000098400005384000044D500001C8F00001D8F00001F8F0000208F0000218F0000118F000003DE000002DE000001DE00002B9200002A9200002692000000DE000008800000098000000A8000000B8000000C800000158000000A81000001E8000001B0000002B0000003B0000004B0000005B0000006B0000007B0000008B0000009B000000AB000000BB000000CB000000DB0000000B0000024810000818400007D84000082840000838400008484000067860000498100004A8100002F820000168200001882000019820000518400007C8400007E84000020F1000010F0000000F0000020F0000030F0000060F000005584000056840000598400000484000006840000328400003084000002840000038400000E8400001084000005840000318400000A840000
+ 2200158100001A0000002CE10000380000000481000015000000268100002500000007E1000030000000239200000000000004E100002E0000000F8100001800000020810000200000005F860000290000000D8000000C00000001E100002B00000023E10000320000000C810000150000000981000017000000178100001C00000014810000190000002BE10000370000000084000041000000008100000E00000003E100002D00000025E10000340000000E810000170000001F8100001F00000000E100002A00000022E10000310000000B8100001400000041E100003A000000168100001B000000058100001600000005E100002F00000035E100003D00000002E10000300000000D81000016000000
+
+
+ 0
+ 0A0000000A0000006E0000006E000000
+ 000000009303000080070000A6030000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 1
+
+
+ 4294967295
+ 0000000062000000180100003E020000
+ 000000004C0000001801000028020000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 1
+
+
+ 34049
+ 030000006603000083070000F5040000
+ 04000000440200005605000079030000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 1
+
+
+ 20
+ 1406
+ 375
+ 93
+ 2
+ C:\Users\admin\Documents\stm8_project\BuildLog.log
+ 0
+ -1
+
+
+ 34052
+ 030000006603000083070000F5040000
+ 04000000440200005605000079030000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+ 666
+ 95
+ 1142
+ 2
+
+ 0
+ -1
+
+
+ 34053
+ 030000006603000083070000F5040000
+ 04000000440200005605000079030000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+ 666
+ 95
+ 1142
+ 2
+
+ 0
+ -1
+
+
+ 34054
+ 030000006603000083070000F5040000
+ 04000000440200005605000079030000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+ 571
+ 95
+ 856
+ 380
+ 2
+
+ 0
+ -1
+
+
+ 34055
+ 030000006603000083070000F5040000
+ 04000000440200005605000079030000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+ 666
+ 95
+ 1142
+ 2
+
+ 0
+ -1
+
+
+ 34057
+ 030000006603000083070000F5040000
+ 04000000440200005605000079030000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+ 2
+
+ 0
+ -1
+
+
+ 34061
+ 030000006603000083070000F5040000
+ 04000000440200005605000079030000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 1
+
+
+ 34050
+ 0100000026000000AE020000D9000000
+ 0000000000000000AD020000B3000000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34051
+ 01000000260000003701000001010000
+ 000000000000000036010000DB000000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34056
+ 010000002600000019010000DD010000
+ 040000005A0000001401000029020000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+ 2147483647
+ 1
+
+
+ 34058
+ 010000002600000019010000DD010000
+ 00000000600000001801000028020000
+ 4096
+ 0
+ 0
+ 32767
+ 0
+
+
+ 1
+
+
+ 34059
+ 000000001D00000036010000F8000000
+ 000000000000000036010000DB000000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34060
+ 000000001D00000036010000F8000000
+ 000000000000000036010000DB000000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34062
+ 000000001D00000036010000F8000000
+ 000000000000000036010000DB000000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 34063
+ 000000001D00000036010000F8000000
+ 000000000000000036010000DB000000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+ 000000000F000000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000000C85000000000000000000000000000000000000010000000C850000010000000C850000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000000B85000000000000000000000000000000000000010000000B850000010000000B850000000000000010000001000000FFFFFFFFFFFFFFFF180100004C0000001C01000028020000010000000200001004000000010000000000000000000000FFFFFFFF010000000A850000FFFF02000B004354616262656450616E6500100000010000000000000062000000180100003E020000000000004C0000001801000028020000000000004010005601000000FFFEFF0957006F0072006B0073007000610063006500010000000A85000001000000FFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000001000000FFFFFFFF0A85000001000000FFFFFFFF0A850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000038500000000000000000000000000000000000001000000038500000100000003850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000028500000000000000000000000000000000000001000000028500000100000002850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000118500000000000000000000000000000000000001000000118500000100000011850000000000000080000001000000FFFFFFFFFFFFFFFF0000000028020000800700002C02000001000000010000100400000001000000CAFDFFFFC70000000000000000000000000000000100000000000000000000000000000001000000FFFFFFFF070000000185000004850000058500000685000007850000098500000D8500000180008000000100000000000000420200005A050000A9030000000000002C0200005A05000093030000000000004080005607000000FFFEFF054200750069006C006400010000000185000001000000FFFFFFFFFFFFFFFFFFFEFF0C4400650063006C00610072006100740069006F006E007300000000000485000001000000FFFFFFFFFFFFFFFFFFFEFF0A5200650066006500720065006E00630065007300000000000585000001000000FFFFFFFFFFFFFFFFFFFEFF0D460069006E006400200069006E002000460069006C0065007300000000000685000001000000FFFFFFFFFFFFFFFFFFFEFF1541006D0062006900670075006F0075007300200044006500660069006E006900740069006F006E007300000000000785000001000000FFFFFFFFFFFFFFFFFFFEFF0B54006F006F006C0020004F0075007400700075007400000000000985000001000000FFFFFFFFFFFFFFFFFFFEFF094400650062007500670020004C006F006700010000000D85000001000000FFFFFFFFFFFFFFFF00000000000000001085000002000000000000000100000002000000FFFFFFFF5A0500002C0200005E05000093030000010000000200001004000000000000006EFCFFFF110300000000000000000000000000000000000002000000FFFFFFFF0185000010850000010000001085000001000000FFFFFFFF01850000000000000000000000000000
+
+
+ Main
+ 00200000010000002000FFFF01001100434D4643546F6F6C426172427574746F6E00E10000000000002A000000FFFEFF000000000000000000000000000100000001000000018001E10000000000002B000000FFFEFF000000000000000000000000000100000001000000018003E10000000000002D000000FFFEFF000000000000000000000000000100000001000000018000810000000000000E000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018007E100000000000030000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018023E100000000040032000000FFFEFF000000000000000000000000000100000001000000018022E100000000040031000000FFFEFF000000000000000000000000000100000001000000018025E100000000000034000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001802BE100000000040037000000FFFEFF00000000000000000000000000010000000100000001802CE100000000040038000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000FFFF01001900434D4643546F6F6C426172436F6D626F426F78427574746F6E4281000000000000FFFFFFFFFFFEFF0001000000000000000100000000000000010000007800000002002050FFFFFFFFFFFEFF00960000000000000000000180218100000000040021000000FFFEFF000000000000000000000000000100000001000000018024E100000000000033000000FFFEFF000000000000000000000000000100000001000000018028E100000000040035000000FFFEFF000000000000000000000000000100000001000000018029E100000000000036000000FFFEFF0000000000000000000000000001000000010000000180028100000000000010000000FFFEFF0000000000000000000000000001000000010000000180298100000000000025000000FFFEFF0000000000000000000000000001000000010000000180278100000000000023000000FFFEFF0000000000000000000000000001000000010000000180288100000000000024000000FFFEFF00000000000000000000000000010000000100000001801D810000000004001D000000FFFEFF00000000000000000000000000010000000100000001801E810000000004001E000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001800B8100000000000014000000FFFEFF00000000000000000000000000010000000100000001800C8100000000000015000000FFFEFF00000000000000000000000000010000000100000001805F8600000000000029000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001800E8100000000000017000000FFFEFF00000000000000000000000000010000000100000001800F8100000000000018000000FFFEFF00000000000000000000000000010000000100000000000000FFFEFF044D00610069006E00E8020000
+
+
+ 34048
+ 0A0000000A0000006E0000006E000000
+ 000000001A000000FE02000034000000
+ 8192
+ 1
+ 0
+ 744
+ 0
+
+
+ 1
+
+
+ 2
+ $WS_DIR/SourceBrowseLog.log
+ 0
+ -1
+
+
+ 34064
+ 770100003D030000F7080000CC040000
+ 5E0500002C0200008007000093030000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 1
+
+
+ 34065
+ 6C00000082000000EC02000012010000
+ 00000000000000008002000090000000
+ 32768
+ 0
+ 0
+ 32767
+ 0
+
+
+ 0
+
+
+
+
+
+ 010000000300000001000000000000000000000001000000010000000200000000000000010000000100000000000000280000002800000001000000080000000100000001000000FFFEFF1A2400570053005F0044004900520024005C002E002E005C002E002E005C0055005300450052005C006D00610069006E002E00630001000000FFFF010014004966436F6E74656E7453746F72616765496D706CFFFEFF00FFFEFFFF21013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E00370033003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0030003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0030003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF066D00610069006E002E00630000000000FFFFFFFFFFFFFFFFFFFEFF3244003A005C0054004F0053005C00540065006E00630065006E0074004F0053002D00740069006E0079005C0063006F006D0070006F006E0065006E00740073005C007300680065006C006C005C0074006F0073005F007300680065006C006C002E006300010000000180FFFEFF00FFFEFFFF27013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E00320033003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0031003400360037003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0031003400360037003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0B74006F0073005F007300680065006C006C002E00630000000000FFFFFFFFFFFFFFFFFFFEFF3244003A005C0054004F0053005C00540065006E00630065006E0074004F0053002D00740069006E0079005C006B00650072006E0065006C005C0063006F00720065005C0074006F0073005F00720069006E0067005F00710075006500750065002E006300010000000180FFFEFF00FFFEFFFF28013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E003100350036003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0034003700360037003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0034003700360037003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF1074006F0073005F00720069006E0067005F00710075006500750065002E00630000000000FFFFFFFFFFFFFFFFFFFEFF2B44003A005C0054004F0053005C00540065006E00630065006E0074004F0053002D00740069006E0079005C006B00650072006E0065006C005C0063006F00720065005C0074006F0073005F00730065006D002E006300010000000180FFFEFF00FFFEFFFF27013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E00370036003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0032003600310036003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0032003600310036003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0974006F0073005F00730065006D002E00630000000000FFFFFFFFFFFFFFFFFFFEFF2B44003A005C0054004F0053005C00540065006E00630065006E0074004F0053002D00740069006E0079005C006B00650072006E0065006C005C0063006F00720065005C0074006F0073005F007300790073002E006300010000000180FFFEFF00FFFEFFFF28013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E003200310034003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0034003900300030003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0034003900300030003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0974006F0073005F007300790073002E00630000000000FFFFFFFFFFFFFFFFFFFEFF1D2400570053005F0044004900520024005C002E002E005C002E002E005C004200530050005C007300720063005C0075006100720074002E006300010000000180FFFEFF00FFFEFFFF21013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E00310035003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0030003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0030003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0675006100720074002E00630000000000FFFFFFFFFFFFFFFFFFFEFF272400570053005F0044004900520024005C002E002E005C002E002E005C0055005300450052005C00730074006D0038006C003100350078005F00690074005F007300680065006C006C002E006300010000000180FFFEFF00FFFEFFFF22013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E003400310034003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0030003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0030003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF13730074006D0038006C003100350078005F00690074005F007300680065006C006C002E00630000000000FFFFFFFFFFFFFFFFFFFEFF3144003A005C0054004F0053005C00540065006E00630065006E0074004F0053002D00740069006E0079005C006B00650072006E0065006C005C0063006F00720065005C0074006F0073005F0063006800610072005F006600690066006F002E006300010000000180FFFEFF00FFFEFFFF28013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E003100300031003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0033003200360038003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0033003200360038003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF0F74006F0073005F0063006800610072005F006600690066006F002E00630000000000FFFFFFFFFFFFFFFF0000000010000000C5D4F200FFDC7800BECEA100F0A0A100BCA8E1009CC1B600F7B88600D9ADC200A5C2D700B3A6BE00EAD6A300F6FA7D00B5E99D005FC3CF00C1838300CACAD5000100000001000000020000001C01000062000000800700003E020000
+
+
+
+
diff --git a/board/STM8L052R8T6/IAR/shell/stm8_project.ewd b/board/STM8L052R8T6/IAR/shell/stm8_project.ewd
new file mode 100644
index 00000000..1e60cd67
--- /dev/null
+++ b/board/STM8L052R8T6/IAR/shell/stm8_project.ewd
@@ -0,0 +1,454 @@
+
+
+ 3
+
+ Debug
+
+ STM8
+
+ 1
+
+ C-SPY
+ 1
+
+ 1
+ 1
+ 1
+
+ CSpyMandatory
+ 1
+
+
+ CSpyInput
+ 1
+
+
+ CSpyRunToEnable
+ 1
+
+
+ CSpyRunToName
+ main
+
+
+ CSpyMacOverride
+ 0
+
+
+ CSpyMacFile
+
+
+
+ DynDriver
+ STLINK_STM8
+
+
+ CSpyDDFOverride
+ 0
+
+
+ CSpyDDFFile
+ $TOOLKIT_DIR$\config\ddf\iostm8l052r8.ddf
+
+
+ CSpyEnableExtraOptions
+ 0
+
+
+ CSpyExtraOptions
+
+
+
+ CSpyImagesSuppressCheck1
+ 0
+
+
+ CSpyImagesPath1
+
+
+
+ CSpyImagesSuppressCheck2
+ 0
+
+
+ CSpyImagesPath2
+
+
+
+ CSpyImagesSuppressCheck3
+ 0
+
+
+ CSpyImagesPath3
+
+
+
+ CSpyImagesOffset1
+
+
+
+ CSpyImagesOffset2
+
+
+
+ CSpyImagesOffset3
+
+
+
+ CSpyImagesUse1
+ 0
+
+
+ CSpyImagesUse2
+ 0
+
+
+ CSpyImagesUse3
+ 0
+
+
+
+
+ SIMULATOR_STM8
+ 1
+
+ 0
+ 1
+ 1
+
+ SimMandatory
+ 1
+
+
+
+
+ STICE_STM8
+ 3
+
+ 2
+ 1
+ 1
+
+ STiceMandatory
+ 0
+
+
+ STiceSuppressLoad
+ 0
+
+
+ STiceVerifyLoad
+ 0
+
+
+ STiceLogFileOver
+ 0
+
+
+ STiceLogFile
+ $PROJ_DIR$\cspycomm.log
+
+
+ STiceUseSwim
+ 0
+
+
+ STiceOptionBytesSetupFileOver
+ 0
+
+
+ STiceOptionBytesSetupFile
+
+
+
+ STiceEraseMemory
+ 0
+
+
+
+
+ STLINK_STM8
+ 3
+
+ 2
+ 1
+ 1
+
+ STlinkMandatory
+ 0
+
+
+ STlinkSuppressLoad
+ 0
+
+
+ STlinkVerifyLoad
+ 0
+
+
+ STlinkLogFileOver
+ 0
+
+
+ STlinkLogFile
+ $PROJ_DIR$\cspycomm.log
+
+
+ STlinkOptionBytesSetupFileOver
+ 0
+
+
+ STlinkOptionBytesSetupFile
+
+
+
+ STlinkEraseMemory
+ 0
+
+
+
+
+
+ $TOOLKIT_DIR$\plugins\rtos\embOS\embOSPlugin.ewplugin
+ 0
+
+
+ $EW_DIR$\common\plugins\Orti\Orti.ENU.ewplugin
+ 0
+
+
+ $EW_DIR$\common\plugins\TargetAccessServer\TargetAccessServer.ENU.ewplugin
+ 0
+
+
+ $EW_DIR$\common\plugins\uCProbe\uCProbePlugin.ENU.ewplugin
+ 0
+
+
+
+
+ Release
+
+ STM8
+
+ 0
+
+ C-SPY
+ 1
+
+ 1
+ 1
+ 0
+
+ CSpyMandatory
+ 1
+
+
+ CSpyInput
+ 1
+
+
+ CSpyRunToEnable
+ 1
+
+
+ CSpyRunToName
+ main
+
+
+ CSpyMacOverride
+ 0
+
+
+ CSpyMacFile
+
+
+
+ DynDriver
+ SIMULATOR_STM8
+
+
+ CSpyDDFOverride
+ 0
+
+
+ CSpyDDFFile
+
+
+
+ CSpyEnableExtraOptions
+ 0
+
+
+ CSpyExtraOptions
+
+
+
+ CSpyImagesSuppressCheck1
+ 0
+
+
+ CSpyImagesPath1
+
+
+
+ CSpyImagesSuppressCheck2
+ 0
+
+
+ CSpyImagesPath2
+
+
+
+ CSpyImagesSuppressCheck3
+ 0
+
+
+ CSpyImagesPath3
+
+
+
+ CSpyImagesOffset1
+
+
+
+ CSpyImagesOffset2
+
+
+
+ CSpyImagesOffset3
+
+
+
+ CSpyImagesUse1
+ 0
+
+
+ CSpyImagesUse2
+ 0
+
+
+ CSpyImagesUse3
+ 0
+
+
+
+
+ SIMULATOR_STM8
+ 1
+
+ 0
+ 1
+ 0
+
+ SimMandatory
+ 1
+
+
+
+
+ STICE_STM8
+ 3
+
+ 2
+ 1
+ 0
+
+ STiceMandatory
+ 0
+
+
+ STiceSuppressLoad
+ 0
+
+
+ STiceVerifyLoad
+ 0
+
+
+ STiceLogFileOver
+ 0
+
+
+ STiceLogFile
+ $PROJ_DIR$\cspycomm.log
+
+
+ STiceUseSwim
+ 0
+
+
+ STiceOptionBytesSetupFileOver
+ 0
+
+
+ STiceOptionBytesSetupFile
+
+
+
+ STiceEraseMemory
+ 0
+
+
+
+
+ STLINK_STM8
+ 3
+
+ 2
+ 1
+ 0
+
+ STlinkMandatory
+ 0
+
+
+ STlinkSuppressLoad
+ 0
+
+
+ STlinkVerifyLoad
+ 0
+
+
+ STlinkLogFileOver
+ 0
+
+
+ STlinkLogFile
+ $PROJ_DIR$\cspycomm.log
+
+
+ STlinkOptionBytesSetupFileOver
+ 0
+
+
+ STlinkOptionBytesSetupFile
+
+
+
+ STlinkEraseMemory
+ 0
+
+
+
+
+
+ $TOOLKIT_DIR$\plugins\rtos\embOS\embOSPlugin.ewplugin
+ 0
+
+
+ $EW_DIR$\common\plugins\Orti\Orti.ENU.ewplugin
+ 0
+
+
+ $EW_DIR$\common\plugins\TargetAccessServer\TargetAccessServer.ENU.ewplugin
+ 0
+
+
+ $EW_DIR$\common\plugins\uCProbe\uCProbePlugin.ENU.ewplugin
+ 0
+
+
+
+
diff --git a/board/STM8L052R8T6/IAR/shell/stm8_project.ewp b/board/STM8L052R8T6/IAR/shell/stm8_project.ewp
new file mode 100644
index 00000000..78bc6d11
--- /dev/null
+++ b/board/STM8L052R8T6/IAR/shell/stm8_project.ewp
@@ -0,0 +1,1969 @@
+
+
+ 3
+
+ Debug
+
+ STM8
+
+ 1
+
+ General
+ 4
+
+ 2
+ 1
+ 1
+
+ GenDeviceSelectMenu
+ STM8L052R8 STM8L052R8
+
+
+ GenCodeModel
+ 0
+ 0
+
+
+ GenDataModel
+ 0
+ 1
+
+
+ GOutputBinary
+ 0
+
+
+ ExePath
+ Debug\Exe
+
+
+ ObjPath
+ Debug\Obj
+
+
+ ListPath
+ Debug\List
+
+
+ GenRuntimeLibSelect
+ 0
+ 1
+
+
+ GenRuntimeLibSelectSlave
+ 0
+ 1
+
+
+ GenRTDescription
+ Use the normal configuration of the C/EC++ runtime library. No locale interface, C locale, no file descriptor support, no multibytes in printf and scanf, and no hex floats in strtod.
+
+
+ GenRTConfigPath
+ $TOOLKIT_DIR$\LIB\dlstm8smn.h
+
+
+ GenLibInFormatter
+ 0
+ 2
+
+
+ GenLibInFormatterDescription
+ Full formatting, without multibytes.
+
+
+ GenLibOutFormatter
+ 0
+ 2
+
+
+ GenLibOutFormatterDescription
+ Full formatting, without multibytes.
+
+
+ GenStackSize
+ 0x100
+
+
+ GenHeapSize
+ 0x100
+
+
+ GeneralEnableMisra
+ 0
+
+
+ GeneralMisraVerbose
+ 0
+
+
+ GeneralMisraVer
+ 0
+
+
+ GeneralMisraRules04
+ 0
+ 111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111
+
+
+ GeneralMisraRules98
+ 0
+ 1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111
+
+
+ GenMathFunctionVariant
+ 0
+ 0
+
+
+ GenMathFunctionDescription
+ Default variants of cos, sin, tan, log, log10, pow, and exp.
+
+
+
+
+ ICCSTM8
+ 3
+
+ 9
+ 1
+ 1
+
+ IccRequirePrototypes
+ 0
+
+
+ IccLanguageConformance
+ 0
+
+
+ IccCharIs
+ 1
+
+
+ IccMultibyteSupport
+ 0
+
+
+ IccOptLevel
+ 1
+
+
+ IccOptStrategy
+ 0
+ 0
+
+
+ IccOptLevelSlave
+ 1
+
+
+ IccOptAllowList
+ 0
+ 000000
+
+
+ IccGenerateDebugInfo
+ 1
+
+
+ IccOutputFile
+ $FILE_BNAME$.o
+
+
+ IccCodeModel
+ 0
+
+
+ IccDataModel
+ 0
+
+
+ IccObjPrefix
+ 1
+
+
+ IccLibConfigHeader
+ 1
+
+
+ CCDefines
+ STM8L15X_MD
+ USE_STDPERIPH_DRIVER
+
+
+ CCPreprocFile
+ 0
+
+
+ CCPreprocComments
+ 0
+
+
+ CCPreprocLine
+ 0
+
+
+ CCListCFile
+ 0
+
+
+ CCListCMnemonics
+ 0
+
+
+ CCListCMessages
+ 0
+
+
+ CCListAssFile
+ 0
+
+
+ CCListAssSource
+ 0
+
+
+ CCEnableRemarks
+ 0
+
+
+ CCDiagSuppress
+
+
+
+ CCDiagRemark
+
+
+
+ CCDiagWarning
+
+
+
+ CCDiagError
+
+
+
+ CCDiagWarnAreErr
+ 0
+
+
+ CCCompilerRuntimeInfo
+ 0
+
+
+ PreInclude
+
+
+
+ CCIncludePath2
+ $PROJ_DIR$\..\..\..\..\kernel\core\include
+ $PROJ_DIR$\..\..\..\..\arch\stm8\common\include
+ $PROJ_DIR$\..\..\..\..\arch\stm8\iccarm
+ $PROJ_DIR$\..\..\BSP\include
+ $PROJ_DIR$\..\..\LIB\inc
+ $PROJ_DIR$\..\..\TOS-CONFIG
+ $PROJ_DIR$\..\..\USER
+ $PROJ_DIR$\..\..\USER
+ $PROJ_DIR$\..\..\..\..\components\shell\include
+ $PROJ_DIR$\..\..\..\..\kernel\hal\include
+
+
+ CCStdIncCheck
+ 0
+
+
+ CompilerMisraOverride
+ 0
+
+
+ CompilerMisraRules04
+ 0
+ 111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111
+
+
+ CompilerMisraRules98
+ 0
+ 1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111
+
+
+ IccUseExtraOptions
+ 0
+
+
+ IccExtraOptions
+
+
+
+ IccLang
+ 0
+
+
+ IccCDialect
+ 1
+
+
+ IccAllowVLA
+ 0
+
+
+ IccCppDialect
+ 1
+
+
+ IccNoVregs
+ 0
+ 1
+
+
+ IccOptNoSizeConstraints
+ 0
+
+
+ IccCppInlineSemantics
+ 0
+
+
+ IccStaticDestr
+ 1
+
+
+ IccFloatSemantics
+ 0
+
+
+
+
+ ASTM8
+ 3
+
+ 2
+ 1
+ 1
+
+ AsmCaseSensitivity
+ 1
+
+
+ AsmMultibyteSupport
+ 0
+
+
+ AsmAllowMnemonics
+ 0
+
+
+ AsmAllowDirectives
+ 0
+
+
+ AsmMacroChars
+ 0
+ 0
+
+
+ AsmDebugInfo
+ 1
+
+
+ AsmListFile
+ 0
+
+
+ AsmListNoDiagnostics
+ 0
+
+
+ AsmListIncludeCrossRef
+ 0
+
+
+ AsmListMacroDefinitions
+ 0
+
+
+ AsmListNoMacroExpansion
+ 0
+
+
+ AsmListAssembledOnly
+ 0
+
+
+ AsmListTruncateMultiline
+ 0
+
+
+ AsmStdIncludeIgnore
+ 0
+
+
+ AsmIncludePath
+
+
+
+ AsmDefines
+
+
+
+ AsmPreprocOutput
+ 0
+
+
+ AsmPreprocComment
+ 0
+
+
+ AsmPreprocLine
+ 0
+
+
+ AsmEnableRemarks
+ 0
+
+
+ AsmDiagnosticsSuppress
+
+
+
+ AsmDiagnosticsRemark
+
+
+
+ AsmDiagnosticsWarning
+
+
+
+ AsmDiagnosticsError
+
+
+
+ AsmDiagnosticsWarningsAreErrors
+ 0
+
+
+ AsmLimitNumberOfErrors
+ 0
+
+
+ AsmMaxNumberOfErrors
+ 100
+
+
+ AsmCodeModel
+ 0
+
+
+ AsmDataModel
+ 0
+
+
+ AsmObjPrefix
+ 1
+
+
+ AsmOutputFile
+ $FILE_BNAME$.o
+
+
+ AsmUseExtraOptions
+ 0
+
+
+ AsmExtraOptions
+
+
+
+ AsmPreInclude
+
+
+
+
+
+ OBJCOPY
+ 0
+
+ 0
+ 1
+ 1
+
+ OOCOutputFormat
+ 2
+ 0
+
+
+ OCOutputOverride
+ 0
+
+
+ OOCOutputFile
+ stm8_project.srec
+
+
+ OOCCommandLineProducer
+ 1
+
+
+ OOCObjCopyEnable
+ 0
+
+
+
+
+ CUSTOM
+ 3
+
+
+
+ 0
+
+
+
+ BICOMP
+ 0
+
+
+
+ BUILDACTION
+ 1
+
+
+
+
+
+
+ ILINK
+ 5
+
+ 4
+ 1
+ 1
+
+ IlinkLibIOConfig
+ 1
+
+
+ XLinkMisraHandler
+ 0
+
+
+ IlinkInputFileSlave
+ 0
+
+
+ IlinkOutputFile
+ $PROJ_FNAME$.out
+
+
+ IlinkDebugInfoEnable
+ 1
+
+
+ IlinkKeepSymbols
+
+
+
+ IlinkRawBinaryFile
+
+
+
+ IlinkRawBinarySymbol
+
+
+
+ IlinkRawBinarySegment
+
+
+
+ IlinkRawBinaryAlign
+
+
+
+ IlinkDefines
+
+
+
+ IlinkConfigDefines
+
+
+
+ IlinkMapFile
+ 1
+
+
+ IlinkLogFile
+ 0
+
+
+ IlinkLogInitialization
+ 0
+
+
+ IlinkLogModule
+ 0
+
+
+ IlinkLogSection
+ 0
+
+
+ IlinkLogVeneer
+ 0
+
+
+ IlinkIcfOverride
+ 0
+
+
+ IlinkIcfFile
+ $TOOLKIT_DIR$\config\lnkstm8l052r8.icf
+
+
+ IlinkIcfFileSlave
+
+
+
+ IlinkEnableRemarks
+ 0
+
+
+ IlinkSuppressDiags
+
+
+
+ IlinkTreatAsRem
+
+
+
+ IlinkTreatAsWarn
+
+
+
+ IlinkTreatAsErr
+
+
+
+ IlinkWarningsAreErrors
+ 0
+
+
+ IlinkStackSize
+ 1
+
+
+ IlinkHeapSize
+ 1
+
+
+ IlinkUseExtraOptions
+ 0
+
+
+ IlinkExtraOptions
+
+
+
+ IlinkAutoLibEnable
+ 1
+
+
+ IlinkAdditionalLibs
+
+
+
+ IlinkOverrideProgramEntryLabel
+ 0
+
+
+ IlinkProgramEntryLabelSelect
+ 0
+
+
+ IlinkProgramEntryLabel
+ __iar_program_start
+
+
+ DoFill
+ 0
+
+
+ FillerByte
+ 0xFF
+
+
+ FillerStart
+ 0x0
+
+
+ FillerEnd
+ 0x0
+
+
+ CrcSize
+ 0
+ 1
+
+
+ CrcAlign
+ 1
+
+
+ CrcPoly
+ 0x11021
+
+
+ CrcCompl
+ 0
+ 0
+
+
+ CrcBitOrder
+ 0
+ 0
+
+
+ CrcInitialValue
+ 0x0
+
+
+ DoCrc
+ 0
+
+
+ CrcFullSize
+ 0
+
+
+ IlinkCspyDebugSupportEnable
+ 1
+
+
+ IlinkCspyBufferedWrite
+ 0
+
+
+ IlinkLogAutoLibSelect
+ 0
+
+
+ IlinkLogRedirSymbols
+ 0
+
+
+ IlinkLogUnusedFragments
+ 0
+
+
+ IlinkCrcReverseByteOrder
+ 0
+
+
+ IlinkCrcUseAsInput
+ 1
+
+
+ CrcAlgorithm
+ 1
+ 1
+
+
+ CrcUnitSize
+ 0
+ 0
+
+
+ IlinkOptMergeDuplSections
+ 0
+
+
+ IlinkIcfFile_AltDefault
+
+
+
+ IlinkLogCallGraph
+ 0
+
+
+ IlinkRawBinaryFile2
+
+
+
+ IlinkRawBinarySymbol2
+
+
+
+ IlinkRawBinarySegment2
+
+
+
+ IlinkRawBinaryAlign2
+
+
+
+
+
+ IARCHIVE
+ 3
+
+ 0
+ 1
+ 1
+
+ IarchiveInputs
+
+
+
+ IarchiveOverride
+ 0
+
+
+ IarchiveOutput
+ ###Unitialized###
+
+
+
+
+ BILINK
+ 0
+
+
+
+
+ Release
+
+ STM8
+
+ 0
+
+ General
+ 4
+
+ 2
+ 1
+ 0
+
+ GenDeviceSelectMenu
+
+
+
+ GenCodeModel
+ 0
+ 0
+
+
+ GenDataModel
+ 0
+ 1
+
+
+ GOutputBinary
+ 0
+
+
+ ExePath
+ Release\Exe
+
+
+ ObjPath
+ Release\Obj
+
+
+ ListPath
+ Release\List
+
+
+ GenRuntimeLibSelect
+ 0
+ 1
+
+
+ GenRuntimeLibSelectSlave
+ 0
+ 1
+
+
+ GenRTDescription
+
+
+
+ GenRTConfigPath
+
+
+
+ GenLibInFormatter
+ 0
+ 2
+
+
+ GenLibInFormatterDescription
+
+
+
+ GenLibOutFormatter
+ 0
+ 2
+
+
+ GenLibOutFormatterDescription
+
+
+
+ GenStackSize
+ ###Uninitialized###
+
+
+ GenHeapSize
+ ###Uninitialized###
+
+
+ GeneralEnableMisra
+ 0
+
+
+ GeneralMisraVerbose
+ 0
+
+
+ GeneralMisraVer
+ 0
+
+
+ GeneralMisraRules04
+ 0
+ 111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111
+
+
+ GeneralMisraRules98
+ 0
+ 1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111
+
+
+ GenMathFunctionVariant
+ 0
+ 0
+
+
+ GenMathFunctionDescription
+
+
+
+
+
+ ICCSTM8
+ 3
+
+ 9
+ 1
+ 0
+
+ IccRequirePrototypes
+ 0
+
+
+ IccLanguageConformance
+ 0
+
+
+ IccCharIs
+ 1
+
+
+ IccMultibyteSupport
+ 0
+
+
+ IccOptLevel
+ 3
+
+
+ IccOptStrategy
+ 0
+ 0
+
+
+ IccOptLevelSlave
+ 1
+
+
+ IccOptAllowList
+ 0
+ 111110
+
+
+ IccGenerateDebugInfo
+ 0
+
+
+ IccOutputFile
+
+
+
+ IccCodeModel
+ 0
+
+
+ IccDataModel
+ 0
+
+
+ IccObjPrefix
+ 1
+
+
+ IccLibConfigHeader
+ 1
+
+
+ CCDefines
+ NDEBUG
+
+
+ CCPreprocFile
+ 0
+
+
+ CCPreprocComments
+ 0
+
+
+ CCPreprocLine
+ 0
+
+
+ CCListCFile
+ 0
+
+
+ CCListCMnemonics
+ 0
+
+
+ CCListCMessages
+ 0
+
+
+ CCListAssFile
+ 0
+
+
+ CCListAssSource
+ 0
+
+
+ CCEnableRemarks
+ 0
+
+
+ CCDiagSuppress
+
+
+
+ CCDiagRemark
+
+
+
+ CCDiagWarning
+
+
+
+ CCDiagError
+
+
+
+ CCDiagWarnAreErr
+ 0
+
+
+ CCCompilerRuntimeInfo
+ 0
+
+
+ PreInclude
+
+
+
+ CCIncludePath2
+
+
+
+ CCStdIncCheck
+ 0
+
+
+ CompilerMisraOverride
+ 0
+
+
+ CompilerMisraRules04
+ 0
+ 111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111
+
+
+ CompilerMisraRules98
+ 0
+ 1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111
+
+
+ IccUseExtraOptions
+ 0
+
+
+ IccExtraOptions
+
+
+
+ IccLang
+ 0
+
+
+ IccCDialect
+ 1
+
+
+ IccAllowVLA
+ 0
+
+
+ IccCppDialect
+ 1
+
+
+ IccNoVregs
+ 0
+ 1
+
+
+ IccOptNoSizeConstraints
+ 0
+
+
+ IccCppInlineSemantics
+ 0
+
+
+ IccStaticDestr
+ 1
+
+
+ IccFloatSemantics
+ 0
+
+
+
+
+ ASTM8
+ 3
+
+ 2
+ 1
+ 0
+
+ AsmCaseSensitivity
+ 1
+
+
+ AsmMultibyteSupport
+ 0
+
+
+ AsmAllowMnemonics
+ 0
+
+
+ AsmAllowDirectives
+ 0
+
+
+ AsmMacroChars
+ 0
+ 0
+
+
+ AsmDebugInfo
+ 0
+
+
+ AsmListFile
+ 0
+
+
+ AsmListNoDiagnostics
+ 0
+
+
+ AsmListIncludeCrossRef
+ 0
+
+
+ AsmListMacroDefinitions
+ 0
+
+
+ AsmListNoMacroExpansion
+ 0
+
+
+ AsmListAssembledOnly
+ 0
+
+
+ AsmListTruncateMultiline
+ 0
+
+
+ AsmStdIncludeIgnore
+ 0
+
+
+ AsmIncludePath
+
+
+
+ AsmDefines
+
+
+
+ AsmPreprocOutput
+ 0
+
+
+ AsmPreprocComment
+ 0
+
+
+ AsmPreprocLine
+ 0
+
+
+ AsmEnableRemarks
+ 0
+
+
+ AsmDiagnosticsSuppress
+
+
+
+ AsmDiagnosticsRemark
+
+
+
+ AsmDiagnosticsWarning
+
+
+
+ AsmDiagnosticsError
+
+
+
+ AsmDiagnosticsWarningsAreErrors
+ 0
+
+
+ AsmLimitNumberOfErrors
+ 0
+
+
+ AsmMaxNumberOfErrors
+ 100
+
+
+ AsmCodeModel
+ 0
+
+
+ AsmDataModel
+ 0
+
+
+ AsmObjPrefix
+ 1
+
+
+ AsmOutputFile
+ $FILE_BNAME$.o
+
+
+ AsmUseExtraOptions
+ 0
+
+
+ AsmExtraOptions
+
+
+
+ AsmPreInclude
+
+
+
+
+
+ OBJCOPY
+ 0
+
+ 0
+ 1
+ 0
+
+ OOCOutputFormat
+ 2
+ 0
+
+
+ OCOutputOverride
+ 0
+
+
+ OOCOutputFile
+
+
+
+ OOCCommandLineProducer
+ 1
+
+
+ OOCObjCopyEnable
+ 0
+
+
+
+
+ CUSTOM
+ 3
+
+
+
+ 0
+
+
+
+ BICOMP
+ 0
+
+
+
+ BUILDACTION
+ 1
+
+
+
+
+
+
+ ILINK
+ 5
+
+ 4
+ 1
+ 0
+
+ IlinkLibIOConfig
+ 1
+
+
+ XLinkMisraHandler
+ 0
+
+
+ IlinkInputFileSlave
+ 0
+
+
+ IlinkOutputFile
+ ###Unitialized###
+
+
+ IlinkDebugInfoEnable
+ 1
+
+
+ IlinkKeepSymbols
+
+
+
+ IlinkRawBinaryFile
+
+
+
+ IlinkRawBinarySymbol
+
+
+
+ IlinkRawBinarySegment
+
+
+
+ IlinkRawBinaryAlign
+
+
+
+ IlinkDefines
+
+
+
+ IlinkConfigDefines
+
+
+
+ IlinkMapFile
+ 1
+
+
+ IlinkLogFile
+ 0
+
+
+ IlinkLogInitialization
+ 0
+
+
+ IlinkLogModule
+ 0
+
+
+ IlinkLogSection
+ 0
+
+
+ IlinkLogVeneer
+ 0
+
+
+ IlinkIcfOverride
+ 0
+
+
+ IlinkIcfFile
+ lnk0t.icf
+
+
+ IlinkIcfFileSlave
+
+
+
+ IlinkEnableRemarks
+ 0
+
+
+ IlinkSuppressDiags
+
+
+
+ IlinkTreatAsRem
+
+
+
+ IlinkTreatAsWarn
+
+
+
+ IlinkTreatAsErr
+
+
+
+ IlinkWarningsAreErrors
+ 0
+
+
+ IlinkStackSize
+ 1
+
+
+ IlinkHeapSize
+ 1
+
+
+ IlinkUseExtraOptions
+ 0
+
+
+ IlinkExtraOptions
+
+
+
+ IlinkAutoLibEnable
+ 1
+
+
+ IlinkAdditionalLibs
+
+
+
+ IlinkOverrideProgramEntryLabel
+ 0
+
+
+ IlinkProgramEntryLabelSelect
+ 0
+
+
+ IlinkProgramEntryLabel
+
+
+
+ DoFill
+ 0
+
+
+ FillerByte
+ 0xFF
+
+
+ FillerStart
+ 0x0
+
+
+ FillerEnd
+ 0x0
+
+
+ CrcSize
+ 0
+ 1
+
+
+ CrcAlign
+ 1
+
+
+ CrcPoly
+ 0x11021
+
+
+ CrcCompl
+ 0
+ 0
+
+
+ CrcBitOrder
+ 0
+ 0
+
+
+ CrcInitialValue
+ 0x0
+
+
+ DoCrc
+ 0
+
+
+ CrcFullSize
+ 0
+
+
+ IlinkCspyDebugSupportEnable
+ 0
+
+
+ IlinkCspyBufferedWrite
+ 0
+
+
+ IlinkLogAutoLibSelect
+ 0
+
+
+ IlinkLogRedirSymbols
+ 0
+
+
+ IlinkLogUnusedFragments
+ 0
+
+
+ IlinkCrcReverseByteOrder
+ 0
+
+
+ IlinkCrcUseAsInput
+ 1
+
+
+ CrcAlgorithm
+ 1
+ 1
+
+
+ CrcUnitSize
+ 0
+ 0
+
+
+ IlinkOptMergeDuplSections
+ 0
+
+
+ IlinkIcfFile_AltDefault
+
+
+
+ IlinkLogCallGraph
+ 0
+
+
+ IlinkRawBinaryFile2
+
+
+
+ IlinkRawBinarySymbol2
+
+
+
+ IlinkRawBinarySegment2
+
+
+
+ IlinkRawBinaryAlign2
+
+
+
+
+
+ IARCHIVE
+ 3
+
+ 0
+ 1
+ 0
+
+ IarchiveInputs
+
+
+
+ IarchiveOverride
+ 0
+
+
+ IarchiveOutput
+ ###Unitialized###
+
+
+
+
+ BILINK
+ 0
+
+
+
+
+ arch
+
+ $PROJ_DIR$\..\..\..\..\arch\stm8\iccarm\port.h
+
+
+ $PROJ_DIR$\..\..\..\..\arch\stm8\iccarm\port_c.c
+
+
+ $PROJ_DIR$\..\..\..\..\arch\stm8\iccarm\port_config.h
+
+
+ $PROJ_DIR$\..\..\..\..\arch\stm8\iccarm\port_s.S
+
+
+ $PROJ_DIR$\..\..\..\..\arch\stm8\common\tos_cpu.c
+
+
+ $PROJ_DIR$\..\..\..\..\arch\stm8\common\tos_fault.c
+
+
+
+ bsp
+
+ $PROJ_DIR$\..\..\BSP\src\hal_uart.c
+
+
+ $PROJ_DIR$\..\..\BSP\src\rtc.c
+
+
+ $PROJ_DIR$\..\..\BSP\src\tim.c
+
+
+ $PROJ_DIR$\..\..\BSP\src\uart.c
+
+
+
+ example
+
+ $PROJ_DIR$\..\..\..\..\examples\shell\shell_sample.c
+
+
+
+ kernel
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_binary_heap.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_char_fifo.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_completion.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_countdownlatch.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_event.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_global.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_mail_queue.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_message_queue.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_mmblk.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_mmheap.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_mutex.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_pend.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_priority_mail_queue.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_priority_message_queue.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_priority_queue.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_ring_queue.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_robin.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_sched.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_sem.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_sys.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_task.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_tick.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_time.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_timer.c
+
+
+
+ lib
+
+ inc
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_adc.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_aes.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_beep.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_clk.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_comp.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_dac.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_dma.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_exti.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_flash.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_gpio.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_i2c.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_irtim.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_itc.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_iwdg.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_lcd.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_pwr.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_rst.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_rtc.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_spi.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_syscfg.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_tim1.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_tim2.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_tim3.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_tim4.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_tim5.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_usart.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_wfe.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_wwdg.h
+
+
+
+ src
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_adc.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_aes.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_beep.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_clk.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_comp.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_dac.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_dma.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_exti.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_flash.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_gpio.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_i2c.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_irtim.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_itc.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_iwdg.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_lcd.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_pwr.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_rst.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_rtc.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_spi.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_syscfg.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_tim1.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_tim2.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_tim3.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_tim4.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_tim5.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_usart.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_wfe.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_wwdg.c
+
+
+
+
+ shell
+
+ $PROJ_DIR$\..\..\..\..\components\shell\tos_shell.c
+
+
+ $PROJ_DIR$\..\..\..\..\components\shell\tos_shell_commands.c
+
+
+
+ TOS-CONFIG
+
+ $PROJ_DIR$\..\..\TOS-CONFIG\tos_config.h
+
+
+
+ user
+
+ $PROJ_DIR$\..\..\USER\main.c
+
+
+ $PROJ_DIR$\..\..\USER\stm8l15x_it_shell.c
+
+
+
diff --git a/board/STM8L052R8T6/IAR/shell/stm8_project.ewt b/board/STM8L052R8T6/IAR/shell/stm8_project.ewt
new file mode 100644
index 00000000..58f0cb5d
--- /dev/null
+++ b/board/STM8L052R8T6/IAR/shell/stm8_project.ewt
@@ -0,0 +1,2481 @@
+
+
+ 3
+
+ Debug
+
+ STM8
+
+ 1
+
+ C-STAT
+ 261
+
+ 261
+
+ 0
+
+ 1
+ 600
+ 0
+ 4
+ 0
+ 1
+ 100
+
+
+ 1.5.5
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Release
+
+ STM8
+
+ 0
+
+ C-STAT
+ 261
+
+ 261
+
+ 0
+
+ 1
+ 600
+ 0
+ 4
+ 0
+ 1
+ 100
+
+
+ 1.5.5
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ arch
+
+ $PROJ_DIR$\..\..\..\..\arch\stm8\iccarm\port.h
+
+
+ $PROJ_DIR$\..\..\..\..\arch\stm8\iccarm\port_c.c
+
+
+ $PROJ_DIR$\..\..\..\..\arch\stm8\iccarm\port_config.h
+
+
+ $PROJ_DIR$\..\..\..\..\arch\stm8\iccarm\port_s.S
+
+
+ $PROJ_DIR$\..\..\..\..\arch\stm8\common\tos_cpu.c
+
+
+ $PROJ_DIR$\..\..\..\..\arch\stm8\common\tos_fault.c
+
+
+
+ bsp
+
+ $PROJ_DIR$\..\..\BSP\src\hal_uart.c
+
+
+ $PROJ_DIR$\..\..\BSP\src\rtc.c
+
+
+ $PROJ_DIR$\..\..\BSP\src\tim.c
+
+
+ $PROJ_DIR$\..\..\BSP\src\uart.c
+
+
+
+ example
+
+ $PROJ_DIR$\..\..\..\..\examples\shell\shell_sample.c
+
+
+
+ kernel
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_binary_heap.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_char_fifo.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_completion.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_countdownlatch.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_event.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_global.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_mail_queue.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_message_queue.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_mmblk.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_mmheap.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_mutex.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_pend.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_priority_mail_queue.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_priority_message_queue.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_priority_queue.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_ring_queue.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_robin.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_sched.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_sem.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_sys.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_task.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_tick.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_time.c
+
+
+ $PROJ_DIR$\..\..\..\..\kernel\core\tos_timer.c
+
+
+
+ lib
+
+ inc
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_adc.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_aes.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_beep.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_clk.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_comp.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_dac.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_dma.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_exti.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_flash.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_gpio.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_i2c.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_irtim.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_itc.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_iwdg.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_lcd.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_pwr.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_rst.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_rtc.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_spi.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_syscfg.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_tim1.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_tim2.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_tim3.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_tim4.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_tim5.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_usart.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_wfe.h
+
+
+ $PROJ_DIR$\..\..\LIB\inc\stm8l15x_wwdg.h
+
+
+
+ src
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_adc.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_aes.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_beep.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_clk.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_comp.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_dac.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_dma.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_exti.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_flash.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_gpio.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_i2c.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_irtim.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_itc.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_iwdg.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_lcd.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_pwr.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_rst.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_rtc.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_spi.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_syscfg.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_tim1.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_tim2.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_tim3.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_tim4.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_tim5.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_usart.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_wfe.c
+
+
+ $PROJ_DIR$\..\..\LIB\src\stm8l15x_wwdg.c
+
+
+
+
+ shell
+
+ $PROJ_DIR$\..\..\..\..\components\shell\tos_shell.c
+
+
+ $PROJ_DIR$\..\..\..\..\components\shell\tos_shell_commands.c
+
+
+
+ TOS-CONFIG
+
+ $PROJ_DIR$\..\..\TOS-CONFIG\tos_config.h
+
+
+
+ user
+
+ $PROJ_DIR$\..\..\USER\main.c
+
+
+ $PROJ_DIR$\..\..\USER\stm8l15x_it_shell.c
+
+
+
diff --git a/board/STM8L052R8T6/IAR/shell/stm8_project.eww b/board/STM8L052R8T6/IAR/shell/stm8_project.eww
new file mode 100644
index 00000000..25d51551
--- /dev/null
+++ b/board/STM8L052R8T6/IAR/shell/stm8_project.eww
@@ -0,0 +1,7 @@
+
+
+
+ $WS_DIR$\stm8_project.ewp
+
+
+
diff --git a/board/STM8L052R8T6/LIB/src/stm8l15x_usart.c b/board/STM8L052R8T6/LIB/src/stm8l15x_usart.c
index 9c561665..c8d7decd 100644
--- a/board/STM8L052R8T6/LIB/src/stm8l15x_usart.c
+++ b/board/STM8L052R8T6/LIB/src/stm8l15x_usart.c
@@ -4,9 +4,9 @@
* @author MCD Application Team
* @version V1.6.1
* @date 30-September-2014
- * @brief This file provides firmware functions to manage the following
+ * @brief This file provides firmware functions to manage the following
* functionalities of the Universal synchronous asynchronous receiver
- * transmitter (USART):
+ * transmitter (USART):
* - Initialization and Configuration
* - Data transfers
* - Multi-Processor Communication
@@ -14,10 +14,10 @@
* - Smartcard mode
* - IrDA mode
* - DMA transfers management
- * - Interrupts and flags management
- *
+ * - Interrupts and flags management
+ *
* @verbatim
- *
+ *
* ===================================================================
* How to use this driver
* ===================================================================
@@ -27,7 +27,7 @@
*
* 2. Enable the external Pull-up on the used USART Pins using the
* GPIO_ExternalPullUpConfig() function or an external pull-up equivalent resistor
- * (RPU = 45 KOhm typical value).
+ * (RPU = 45 KOhm typical value).
*
* 3. Program the Baud Rate, Word Length , Stop Bit, Parity and Mode (Receiver/Transmitter)
* using the USART_Init() function.
@@ -35,21 +35,21 @@
* 4. For synchronous mode, enable the clock and program the polarity,
* phase and last bit using the USART_ClockInit() function.
*
- * 5. Enable the corresponding interrupt using the function USART_ITConfig() if you need
- * to use interrupt mode.
+ * 5. Enable the corresponding interrupt using the function USART_ITConfig() if you need
+ * to use interrupt mode.
*
- * 6. When using the DMA mode
+ * 6. When using the DMA mode
* - Configure the DMA using DMA_Init() function
* - Activate the needed channel Request using USART_DMACmd() function
- *
+ *
* 7. Enable the USART using the USART_Cmd() function.
- *
- * 8. Enable the DMA using the DMA_Cmd() function, when using DMA mode.
+ *
+ * 8. Enable the DMA using the DMA_Cmd() function, when using DMA mode.
*
* Refer to Multi-Processor, half-duplex, Smartcard, IrDA sub-sections for more details.
- *
+ *
* @endverbatim
- *
+ *
******************************************************************************
* @attention
*
@@ -61,14 +61,14 @@
*
* http://www.st.com/software_license_agreement_liberty_v2
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************
- */
+ */
/* Includes ------------------------------------------------------------------*/
#include "stm8l15x_usart.h"
@@ -77,11 +77,11 @@
* @{
*/
-/** @defgroup USART
+/** @defgroup USART
* @brief USART driver modules
* @{
*/
-
+
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
@@ -94,46 +94,46 @@
*/
/** @defgroup USART_Group1 Initialization and Configuration functions
- * @brief Initialization and Configuration functions
+ * @brief Initialization and Configuration functions
*
-@verbatim
+@verbatim
===============================================================================
Initialization and Configuration functions
- ===============================================================================
+ ===============================================================================
- This subsection provides a set of functions allowing to initialize the USART
+ This subsection provides a set of functions allowing to initialize the USART
in asynchronous and in synchronous modes.
- - For the asynchronous mode only these parameters can be configured:
+ - For the asynchronous mode only these parameters can be configured:
- Baud Rate
- - Word Length
+ - Word Length
- Stop Bit
- Parity: If the parity is enabled, then the MSB bit of the data written
in the data register is transmitted but is changed by the parity bit.
Depending on the frame length defined by the M bit (8-bits or 9-bits),
the possible USART frame formats are as listed in the following table:
- +-------------------------------------------------------------+
+ +-------------------------------------------------------------+
| M bit | PCE bit | USART frame |
- |---------------------|---------------------------------------|
+ |---------------------|---------------------------------------|
| 0 | 0 | | SB | 8 bit data | STB | |
- |---------|-----------|---------------------------------------|
+ |---------|-----------|---------------------------------------|
| 0 | 1 | | SB | 7 bit data | PB | STB | |
- |---------|-----------|---------------------------------------|
+ |---------|-----------|---------------------------------------|
| 1 | 0 | | SB | 9 bit data | STB | |
- |---------|-----------|---------------------------------------|
+ |---------|-----------|---------------------------------------|
| 1 | 1 | | SB | 8 bit data | PB | STB | |
- +-------------------------------------------------------------+
+ +-------------------------------------------------------------+
- Receiver/transmitter modes
The USART_Init() function follows the USART asynchronous configuration procedure
(details for the procedure are available in reference manual (RM0031)).
- - For the synchronous mode in addition to the asynchronous mode parameters these
+ - For the synchronous mode in addition to the asynchronous mode parameters these
parameters should be also configured:
- USART Clock Enabled
- USART polarity
- USART phase
- USART LastBit
-
+
These parameters can be configured using the USART_ClockInit() function.
@endverbatim
@@ -172,7 +172,7 @@ void USART_DeInit(USART_TypeDef* USARTx)
* @param USART_WordLength: the word length
* This parameter can be one of the following values:
* @arg USART_WordLength_8b: 8 bits Data
- * @arg USART_WordLength_9b: 9 bits Data
+ * @arg USART_WordLength_9b: 9 bits Data
* @param USART_StopBits: Stop Bit
* This parameter can be one of the following values:
* @arg USART_StopBits_1: One stop bit is transmitted at the end of frame
@@ -182,11 +182,11 @@ void USART_DeInit(USART_TypeDef* USARTx)
* This parameter can be one of the following values:
* @arg USART_Parity_No: No Parity
* @arg USART_Parity_Even: Even Parity
- * @arg USART_Parity_Odd: Odd Parity
+ * @arg USART_Parity_Odd: Odd Parity
* @param USART_Mode: Mode
* This parameter can be one of the following values:
* @arg USART_Mode_Rx: Receive Enable
- * @arg USART_Mode_Tx: Transmit Enable
+ * @arg USART_Mode_Tx: Transmit Enable
* @retval None
*/
void USART_Init(USART_TypeDef* USARTx, uint32_t BaudRate, USART_WordLength_TypeDef
@@ -244,7 +244,7 @@ void USART_Init(USART_TypeDef* USARTx, uint32_t BaudRate, USART_WordLength_TypeD
* @param USART_Clock: Clock
* This parameter can be one of the following values:
* @arg USART_Clock_Disable: CK pin disabled
- * @arg USART_Clock_Enable: CK pin enabled
+ * @arg USART_Clock_Enable: CK pin enabled
* @param USART_CPOL: Clock Polarity
* This parameter can be one of the following values:
* @arg USART_CPOL_Low: CK to 0 when idle
@@ -255,9 +255,9 @@ void USART_Init(USART_TypeDef* USARTx, uint32_t BaudRate, USART_WordLength_TypeD
* @arg USART_CPHA_2Edge: The second clock transition is the first data capture edge
* @param USART_LastBit: Last Bit
* This parameter can be one of the following values:
- * @arg USART_LastBit_Disable: The clock pulse of the last data bit is
+ * @arg USART_LastBit_Disable: The clock pulse of the last data bit is
* not output to the SCLK pin
- * @arg USART_LastBit_Enable: The clock pulse of the last data bit is
+ * @arg USART_LastBit_Enable: The clock pulse of the last data bit is
* output to the SCLK pin
* @retval None
*/
@@ -311,7 +311,7 @@ void USART_Cmd(USART_TypeDef* USARTx, FunctionalState NewState)
* @note This function is related to SmartCard and IrDa mode.
* @param USARTx: Select the USARTx peripheral.
* @param USART_Prescaler: specifies the prescaler clock.
- * @note In IrDA Low Power Mode the clock source is divided by the value given
+ * @note In IrDA Low Power Mode the clock source is divided by the value given
* in the register (8 bits)
* - 0000 0000 Reserved
* - 0000 0001 divides the clock source by 1
@@ -347,27 +347,27 @@ void USART_SendBreak(USART_TypeDef* USARTx)
*/
/** @defgroup USART_Group2 Data transfers functions
- * @brief Data transfers functions
+ * @brief Data transfers functions
*
-@verbatim
+@verbatim
===============================================================================
Data transfers functions
- ===============================================================================
+ ===============================================================================
- This subsection provides a set of functions allowing to manage the USART data
+ This subsection provides a set of functions allowing to manage the USART data
transfers.
-
- During an USART reception, data shifts in least significant bit first through
- the RX pin. In this mode, the USART_DR register is similar to a buffer (RDR)
+
+ During an USART reception, data shifts in least significant bit first through
+ the RX pin. In this mode, the USART_DR register is similar to a buffer (RDR)
between the internal bus and the received shift register.
- When a transmission is taking place, a write instruction to the USART_DR register
- stores the data in the TDR register which is copied in the shift register
+ When a transmission is taking place, a write instruction to the USART_DR register
+ stores the data in the TDR register which is copied in the shift register
at the end of the current transmission.
The read access of the USART_DR register can be done using the USART_ReceiveData8()
or USART_ReceiveData9() functions and returns the RDR buffered value. Whereas a write
- access to the USART_DR can be done using USART_SendData8() or USART_SendData9()
+ access to the USART_DR can be done using USART_SendData8() or USART_SendData9()
functions and stores the written data into TDR buffer.
@endverbatim
@@ -433,22 +433,22 @@ void USART_SendData9(USART_TypeDef* USARTx, uint16_t Data)
*/
/** @defgroup USART_Group3 MultiProcessor Communication functions
- * @brief Multi-Processor Communication functions
+ * @brief Multi-Processor Communication functions
*
-@verbatim
+@verbatim
===============================================================================
Multi-Processor Communication functions
- ===============================================================================
+ ===============================================================================
- This subsection provides a set of functions allowing to manage the USART
+ This subsection provides a set of functions allowing to manage the USART
multiprocessor communication.
-
- For instance one of the USARTs can be the master, its TX output is connected to
- the RX input of the other USART. The others are slaves, their respective TX outputs
+
+ For instance one of the USARTs can be the master, its TX output is connected to
+ the RX input of the other USART. The others are slaves, their respective TX outputs
are logically ANDed together and connected to the RX input of the master.
USART multiprocessor communication is possible through the following procedure:
- 1. Program the Baud rate, Word length = 9 bits, Stop bits, Parity, Mode transmitter
+ 1. Program the Baud rate, Word length = 9 bits, Stop bits, Parity, Mode transmitter
or Mode receiver and hardware flow control values using the USART_Init()
function.
2. Configures the USART address using the USART_SetAddress() function.
@@ -462,7 +462,7 @@ void USART_SendData9(USART_TypeDef* USARTx, uint16_t Data)
@endverbatim
* @{
*/
-
+
/**
* @brief Determines if the USART is in mute mode or not.
* @param USARTx: where x can be 1 to select the specified USART peripheral.
@@ -509,7 +509,7 @@ void USART_SetAddress(USART_TypeDef* USARTx, uint8_t USART_Address)
* @param USART_WakeUp: Specifies the USART wakeup method.
* This parameter can be one of the following values:
* @arg USART_WakeUp_IdleLine: 0x01 Idle Line wake up
- * @arg USART_WakeUp_AddressMark: 0x02 Address Mark wake up
+ * @arg USART_WakeUp_AddressMark: 0x02 Address Mark wake up
* @retval None
*/
void USART_WakeUpConfig(USART_TypeDef* USARTx, USART_WakeUp_TypeDef USART_WakeUp)
@@ -524,21 +524,21 @@ void USART_WakeUpConfig(USART_TypeDef* USARTx, USART_WakeUp_TypeDef USART_WakeUp
*/
/** @defgroup USART_Group4 Halfduplex mode function
- * @brief Half-duplex mode function
+ * @brief Half-duplex mode function
*
-@verbatim
+@verbatim
===============================================================================
Half-duplex mode function
- ===============================================================================
+ ===============================================================================
- This subsection provides a function allowing to manage the USART
+ This subsection provides a function allowing to manage the USART
Half-duplex communication.
-
- The USART can be configured to follow a single-wire half-duplex protocol where
+
+ The USART can be configured to follow a single-wire half-duplex protocol where
the TX and RX lines are internally connected.
USART Half duplex communication is possible through the following procedure:
- 1. Program the Baud rate, Word length, Stop bits, Parity, Mode transmitter
+ 1. Program the Baud rate, Word length, Stop bits, Parity, Mode transmitter
or Mode receiver and hardware flow control values using the USART_Init()
function.
2. Configures the USART address using the USART_SetAddress() function.
@@ -582,21 +582,21 @@ void USART_HalfDuplexCmd(USART_TypeDef* USARTx, FunctionalState NewState)
*/
/** @defgroup USART_Group5 Smartcard mode functions
- * @brief Smartcard mode functions
+ * @brief Smartcard mode functions
*
-@verbatim
+@verbatim
===============================================================================
Smartcard mode functions
- ===============================================================================
+ ===============================================================================
- This subsection provides a set of functions allowing to manage the USART
+ This subsection provides a set of functions allowing to manage the USART
Smartcard communication.
-
+
The Smartcard interface is designed to support asynchronous protocol Smartcards as
defined in the ISO 7816-3 standard.
The USART can provide a clock to the smartcard through the SCLK output.
- In smartcard mode, SCLK is not associated to the communication but is simply derived
+ In smartcard mode, SCLK is not associated to the communication but is simply derived
from the internal peripheral input clock through a 5-bit prescaler.
Smartcard communication is possible through the following procedure:
@@ -622,10 +622,10 @@ void USART_HalfDuplexCmd(USART_TypeDef* USARTx, FunctionalState NewState)
Please refer to the ISO 7816-3 specification for more details.
-Note:
+Note:
-----
- 1. It is also possible to choose 0.5 stop bit for receiving but it is recommended
- to use 1.5 stop bits for both transmitting and receiving to avoid switching
+ 1. It is also possible to choose 0.5 stop bit for receiving but it is recommended
+ to use 1.5 stop bits for both transmitting and receiving to avoid switching
between the two configurations.
2. In smartcard mode, the following bits must be kept cleared:
- HDSEL and IREN bits in the USART_CR5 register.
@@ -633,7 +633,7 @@ Note:
@endverbatim
* @{
*/
-
+
/**
* @brief Enables or disables the USART Smart Card mode.
* @param USARTx: Select the USARTx peripheral.
@@ -698,38 +698,38 @@ void USART_SetGuardTime(USART_TypeDef* USARTx, uint8_t USART_GuardTime)
*/
/** @defgroup USART_Group6 IrDA mode functions
- * @brief IrDA mode functions
+ * @brief IrDA mode functions
*
-@verbatim
+@verbatim
===============================================================================
IrDA mode functions
- ===============================================================================
+ ===============================================================================
- This subsection provides a set of functions allowing to manage the USART
+ This subsection provides a set of functions allowing to manage the USART
IrDA communication.
-
+
IrDA is a half duplex communication protocol. If the Transmitter is busy, any data
- on the IrDA receive line will be ignored by the IrDA decoder and if the Receiver
+ on the IrDA receive line will be ignored by the IrDA decoder and if the Receiver
is busy, data on the TX from the USART to IrDA will not be encoded by IrDA.
While receiving data, transmission should be avoided as the data to be transmitted
could be corrupted.
IrDA communication is possible through the following procedure:
- 1. Program the Baud rate, Word length = 8 bits, Stop bits, Parity, Transmitter/Receiver
+ 1. Program the Baud rate, Word length = 8 bits, Stop bits, Parity, Transmitter/Receiver
modes and hardware flow control values using the USART_Init() function.
2. Enable the USART using the USART_Cmd() function.
- 3. Configures the IrDA pulse width by configuring the prescaler using
+ 3. Configures the IrDA pulse width by configuring the prescaler using
the USART_SetPrescaler() function.
4. Configures the IrDA USART_IrDAMode_LowPower or USART_IrDAMode_Normal mode
using the USART_IrDAConfig() function.
5. Enable the IrDA using the USART_IrDACmd() function.
-Note:
+Note:
-----
1. A pulse of width less than two and greater than one PSC period(s) may or may
not be rejected.
2. The receiver set up time should be managed by software. The IrDA physical layer
- specification specifies a minimum of 10 ms delay between transmission and
+ specification specifies a minimum of 10 ms delay between transmission and
reception (IrDA is a half duplex protocol).
3. In IrDA mode, the following bits must be kept cleared:
- STOP and CLKEN bits in the USART_CR3 register.
@@ -738,14 +738,14 @@ Note:
@endverbatim
* @{
*/
-
+
/**
* @brief Configures the USART’s IrDA interface.
* @param USARTx: where x can be 1 to select the specified USART peripheral.
* @param USART_IrDAMode specifies the IrDA mode.
* This parameter can be one of the following values:
* @arg USART_IrDAMode_Normal: IrDA Normal Mode
- * @arg USART_IrDAMode_LowPower: IrDA Low Power Mode
+ * @arg USART_IrDAMode_LowPower: IrDA Low Power Mode
* @retval None
*/
void USART_IrDAConfig(USART_TypeDef* USARTx, USART_IrDAMode_TypeDef USART_IrDAMode)
@@ -794,10 +794,10 @@ void USART_IrDACmd(USART_TypeDef* USARTx, FunctionalState NewState)
/** @defgroup USART_Group7 DMA transfers management functions
* @brief DMA transfers management functions
*
-@verbatim
+@verbatim
===============================================================================
DMA transfers management functions
- ===============================================================================
+ ===============================================================================
@endverbatim
* @{
@@ -810,7 +810,7 @@ void USART_IrDACmd(USART_TypeDef* USARTx, FunctionalState NewState)
* @param USART_DMAReq Specifies the USART DMA transfer request to be enabled or disabled.
* This parameter can be one of the following values:
* @arg USART_DMAReq_TX: Receive DMA request Enable
- * @arg USART_DMAReq_RX: Transmit DMA request Enable
+ * @arg USART_DMAReq_RX: Transmit DMA request Enable
* @param NewState Indicates the new state of the USART DMA request.
* This parameter can be: ENABLE or DISABLE.
* @retval None
@@ -839,28 +839,28 @@ void USART_DMACmd(USART_TypeDef* USARTx, USART_DMAReq_TypeDef USART_DMAReq,
/**
* @}
*/
-
+
/** @defgroup USART_Group8 Interrupts and flags management functions
- * @brief Interrupts and flags management functions
+ * @brief Interrupts and flags management functions
*
-@verbatim
+@verbatim
===============================================================================
Interrupts and flags management functions
- ===============================================================================
+ ===============================================================================
- This subsection provides a set of functions allowing to configure the USART
- Interrupts sources, DMA channels requests and check or clear the flags or
+ This subsection provides a set of functions allowing to configure the USART
+ Interrupts sources, DMA channels requests and check or clear the flags or
pending bits status.
- The user should identify which mode will be used in his application to manage
- the communication: Polling mode, Interrupt mode or DMA mode.
-
+ The user should identify which mode will be used in his application to manage
+ the communication: Polling mode, Interrupt mode or DMA mode.
+
Polling Mode
=============
In Polling Mode, the USART communication can be managed by 9 flags:
1. USART_FLAG_TXE: to indicate the status of the transmit buffer register
2. USART_FLAG_RXNE: to indicate the status of the receive buffer register
3. USART_FLAG_TC: to indicate the status of the transmit operation
- 4. USART_FLAG_IDLE: to indicate the status of the Idle Line
+ 4. USART_FLAG_IDLE: to indicate the status of the Idle Line
5. USART_FLAG_SBK: to indicate the status of the Send Break characters
6. USART_FLAG_NE: to indicate if a noise error occur
7. USART_FLAG_FE: to indicate if a frame error occur
@@ -874,32 +874,32 @@ void USART_DMACmd(USART_TypeDef* USARTx, USART_DMAReq_TypeDef USART_DMAReq,
Interrupt Mode
===============
In Interrupt Mode, the USART communication can be managed by 7 interrupt sources
- and 6 pending bits:
+ and 6 pending bits:
Pending Bits:
- -------------
+ -------------
1. USART_IT_TXE: to indicate the status of the transmit buffer register
2. USART_IT_RXNE: to indicate the status of the receive buffer register
3. USART_IT_TC: to indicate the status of the transmit operation
- 4. USART_IT_IDLE: to indicate the status of the Idle Line
+ 4. USART_IT_IDLE: to indicate the status of the Idle Line
5. USART_IT_PE: to indicate if a parity error occur
6. USART_IT_OR: to indicate if an Noise flag, overrun error and framing error in
multibuffer communication error occur
Interrupt Source:
-----------------
- 1. USART_IT_TXE: specifies the interrupt source for the Tx buffer empty
- interrupt.
- 2. USART_IT_RXNE: specifies the interrupt source for the Rx buffer not
+ 1. USART_IT_TXE: specifies the interrupt source for the Tx buffer empty
+ interrupt.
+ 2. USART_IT_RXNE: specifies the interrupt source for the Rx buffer not
empty interrupt.
- 3. USART_IT_TC: specifies the interrupt source for the Transmit complete
- interrupt.
+ 3. USART_IT_TC: specifies the interrupt source for the Transmit complete
+ interrupt.
4. USART_IT_IDLE: specifies the interrupt source for the Idle Line interrupt.
- 5. USART_IT_PE: specifies the interrupt source for the parity error interrupt.
+ 5. USART_IT_PE: specifies the interrupt source for the parity error interrupt.
6. USART_IT_ERR: specifies the interrupt source for the errors interrupt.
7. USART_IT_OR: specifies the interrupt source for the overrun error interrupt.
- Note: Some parameters are coded in order to use them as interrupt source or
+ Note: Some parameters are coded in order to use them as interrupt source or
---- as pending bits.
In this Mode it is advised to use the following functions:
@@ -989,14 +989,14 @@ void USART_ITConfig(USART_TypeDef* USARTx, USART_IT_TypeDef USART_IT, Functional
* @param USART_FLAG specifies the flag to check.
* This parameter can be one of the following values:
* @arg USART_FLAG_TXE: Transmit Data Register empty
- * @arg USART_FLAG_TC: Transmission Complete
+ * @arg USART_FLAG_TC: Transmission Complete
* @arg USART_FLAG_RXNE: Read Data Register Not Empty
* @arg USART_FLAG_IDLE: Idle line detected
* @arg USART_FLAG_OR: OverRun error
* @arg USART_FLAG_NF: Noise error
* @arg USART_FLAG_FE: Framing Error
* @arg USART_FLAG_PE: Parity Error
- * @arg USART_FLAG_SBK: Send Break characters
+ * @arg USART_FLAG_SBK: Send Break characters
* @retval FlagStatus (SET or RESET)
*/
FlagStatus USART_GetFlagStatus(USART_TypeDef* USARTx, USART_FLAG_TypeDef USART_FLAG)
diff --git a/board/STM8L052R8T6/USER/main.c b/board/STM8L052R8T6/USER/main.c
index eea2cc79..333e9229 100644
--- a/board/STM8L052R8T6/USER/main.c
+++ b/board/STM8L052R8T6/USER/main.c
@@ -79,20 +79,13 @@ k_stack_t task1_stack[512];
k_task_t task2;
k_stack_t task2_stack[512];
-int main(void)
+#define APPLICATION_TASK_STK_SIZE 1024
+
+k_task_t task_app;
+k_stack_t task_app_stack[512];
+
+__WEAK__ void application_entry(void * arg)
{
- LED_GPIO_Init();
- UART1_Init(57600); /* Init the UART1, baud rate 57600 */
- RTC_Setting_Init(); /* Init RTC */
-
- /* use as systick, interrupt handler see TIM2_UPD_OVF_TRG_BRK_USART2_TX_IRQHandler */
- Timer2_Init(TOS_CFG_CPU_CLOCK, TOS_CFG_CPU_TICK_PER_SECOND);
-
- LED_On();
- UART1_Send_String("welcome to TencentOS tiny!\r\n");
-
- tos_knl_init();
-
tos_task_create(&task1, "task1", task1_entry, NULL,
4,
task1_stack, sizeof(task1_stack),
@@ -102,6 +95,27 @@ int main(void)
4,
task2_stack, sizeof(task2_stack),
0);
+}
+
+int main(void)
+{
+ LED_GPIO_Init();
+ UART1_Init(9600); /* Init the UART1, baud rate 9600 */
+ RTC_Setting_Init(); /* Init RTC */
+
+ /* use as systick, interrupt handler see TIM2_UPD_OVF_TRG_BRK_USART2_TX_IRQHandler */
+ Timer2_Init(TOS_CFG_CPU_CLOCK, TOS_CFG_CPU_TICK_PER_SECOND);
+
+ LED_On();
+ UART1_Send_String("welcome to TencentOS tiny!\r\n");
+ printf("welcome to TencentOS tiny!\r\n");
+
+ tos_knl_init();
+
+ tos_task_create(&task_app, "app", application_entry, NULL,
+ 4,
+ task_app_stack, sizeof(task_app_stack),
+ 0);
tos_knl_start();
diff --git a/board/STM8L052R8T6/USER/stm8l15x_it.c b/board/STM8L052R8T6/USER/stm8l15x_it.c
index 13e93d00..82b81c79 100644
--- a/board/STM8L052R8T6/USER/stm8l15x_it.c
+++ b/board/STM8L052R8T6/USER/stm8l15x_it.c
@@ -291,7 +291,6 @@ INTERRUPT_HANDLER(TIM2_UPD_OVF_TRG_BRK_USART2_TX_IRQHandler, 19)
*/
TIM2_ClearITPendingBit(TIM2_IT_Update);
- //UART1_Send_String("tim\r\n");
if (tos_knl_is_running()) {
tos_knl_irq_enter();
@@ -433,6 +432,7 @@ INTERRUPT_HANDLER(USART1_RX_TIM5_CC_IRQHandler, 28)
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
+
#ifdef USE_STM8L1526_EVAL
uint8_t temp;
diff --git a/board/STM8L052R8T6/USER/stm8l15x_it_shell.c b/board/STM8L052R8T6/USER/stm8l15x_it_shell.c
new file mode 100644
index 00000000..3f6f03c4
--- /dev/null
+++ b/board/STM8L052R8T6/USER/stm8l15x_it_shell.c
@@ -0,0 +1,475 @@
+/**
+ ******************************************************************************
+ * @file USART/USART_HyperTerminal_Interrupts/stm8l15x_it.c
+ * @author MCD Application Team
+ * @version V1.5.2
+ * @date 30-September-2014
+ * @brief Main Interrupt Service Routines.
+ * This file provides template for all peripherals interrupt service routine.
+ ******************************************************************************
+ * @attention
+ *
+ * © COPYRIGHT 2014 STMicroelectronics
+ *
+ * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
+ * You may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.st.com/software_license_agreement_liberty_v2
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ ******************************************************************************
+ */
+
+/* Includes ------------------------------------------------------------------*/
+#include "stm8l15x_it.h"
+#include "stm8l15x_usart.h"
+
+#include "tos_k.h"
+#include "tos_shell.h"
+
+/* Private typedef -----------------------------------------------------------*/
+/* Private define ------------------------------------------------------------*/
+#define TX_BUFFER_SIZE (countof(TxBuffer) - 1)
+
+/* Private macro -------------------------------------------------------------*/
+#define countof(a) (sizeof(a) / sizeof(*(a)))
+
+/* Private variables ---------------------------------------------------------*/
+uint8_t TxBuffer[] = "\n\rUSART Example: USART-Hyperterminal communication using Interrupt\nEnter your Text\n\r";
+uint8_t TxCounter = 0;
+
+/* Private function prototypes -----------------------------------------------*/
+/* Private functions ---------------------------------------------------------*/
+
+#ifdef _COSMIC_
+/**
+ * @brief Dummy interrupt routine
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(NonHandledInterrupt, 0)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+#endif
+
+/**
+ * @brief TRAP interrupt routine
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER_TRAP(TRAP_IRQHandler)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+/**
+ * @brief FLASH Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(FLASH_IRQHandler, 1)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+/**
+ * @brief DMA1 channel0 and channel1 Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(DMA1_CHANNEL0_1_IRQHandler, 2)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+/**
+ * @brief DMA1 channel2 and channel3 Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(DMA1_CHANNEL2_3_IRQHandler, 3)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+/**
+ * @brief RTC / CSS_LSE Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(RTC_CSSLSE_IRQHandler, 4)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+/**
+ * @brief External IT PORTE/F and PVD Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(EXTIE_F_PVD_IRQHandler, 5)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+
+/**
+ * @brief External IT PORTB / PORTG Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(EXTIB_G_IRQHandler, 6)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+
+/**
+ * @brief External IT PORTD /PORTH Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(EXTID_H_IRQHandler, 7)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+
+/**
+ * @brief External IT PIN0 Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(EXTI0_IRQHandler, 8)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+
+/**
+ * @brief External IT PIN1 Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(EXTI1_IRQHandler, 9)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+
+/**
+ * @brief External IT PIN2 Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(EXTI2_IRQHandler, 10)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+
+/**
+ * @brief External IT PIN3 Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(EXTI3_IRQHandler, 11)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+
+/**
+ * @brief External IT PIN4 Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(EXTI4_IRQHandler, 12)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+
+/**
+ * @brief External IT PIN5 Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(EXTI5_IRQHandler, 13)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+
+/**
+ * @brief External IT PIN6 Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(EXTI6_IRQHandler, 14)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+
+/**
+ * @brief External IT PIN7 Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(EXTI7_IRQHandler, 15)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+/**
+ * @brief LCD /AES Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(LCD_AES_IRQHandler, 16)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+/**
+ * @brief CLK switch/CSS/TIM1 break Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(SWITCH_CSS_BREAK_DAC_IRQHandler, 17)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+
+/**
+ * @brief ADC1/Comparator Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(ADC1_COMP_IRQHandler, 18)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+
+/**
+ * @brief TIM2 Update/Overflow/Trigger/Break /USART2 TX Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(TIM2_UPD_OVF_TRG_BRK_USART2_TX_IRQHandler, 19)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+
+ TIM2_ClearITPendingBit(TIM2_IT_Update);
+
+ if (tos_knl_is_running()) {
+ tos_knl_irq_enter();
+ tos_tick_handler();
+ tos_knl_irq_leave();
+ }
+
+#ifdef USE_STM8L1528_EVAL
+ /* Write one byte to the transmit data register */
+ USART_SendData8(EVAL_COM1, TxBuffer[TxCounter++]);
+ USART_ClearITPendingBit(EVAL_COM1, USART_IT_TC);
+
+ if (TxCounter == TX_BUFFER_SIZE)
+ {
+ /* Disable the USART Transmit Complete interrupt */
+ USART_ITConfig(EVAL_COM1, USART_IT_TC, DISABLE);
+ }
+#endif /* USE_STM8L1528_EVAL */
+}
+
+/**
+ * @brief Timer2 Capture/Compare / USART2 RX Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(TIM2_CC_USART2_RX_IRQHandler, 20)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+#ifdef USE_STM8L1528_EVAL
+ uint8_t temp;
+
+ /* Read one byte from the receive data register and send it back */
+ temp = (USART_ReceiveData8(EVAL_COM1) & 0x7F);
+ USART_SendData8(EVAL_COM1, temp);
+#endif /* USE_STM8L1528_EVAL */
+}
+
+
+/**
+ * @brief Timer3 Update/Overflow/Trigger/Break Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(TIM3_UPD_OVF_TRG_BRK_USART3_TX_IRQHandler, 21)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+/**
+ * @brief Timer3 Capture/Compare /USART3 RX Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(TIM3_CC_USART3_RX_IRQHandler, 22)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+/**
+ * @brief TIM1 Update/Overflow/Trigger/Commutation Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(TIM1_UPD_OVF_TRG_COM_IRQHandler, 23)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+/**
+ * @brief TIM1 Capture/Compare Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(TIM1_CC_IRQHandler, 24)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+
+/**
+ * @brief TIM4 Update/Overflow/Trigger Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(TIM4_UPD_OVF_TRG_IRQHandler, 25)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+/**
+ * @brief SPI1 Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(SPI1_IRQHandler, 26)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+
+/**
+ * @brief USART1 TX / TIM5 Update/Overflow/Trigger/Break Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(USART1_TX_TIM5_UPD_OVF_TRG_BRK_IRQHandler, 27)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+#ifdef USE_STM8L1526_EVAL
+ /* Write one byte to the transmit data register */
+ USART_SendData8(EVAL_COM1, TxBuffer[TxCounter++]);
+ USART_ClearITPendingBit(EVAL_COM1, USART_IT_TC);
+
+ if (TxCounter == TX_BUFFER_SIZE)
+ {
+ /* Disable the USART Transmit Complete interrupt */
+ USART_ITConfig(EVAL_COM1, USART_IT_TC, DISABLE);
+ }
+#endif /* USE_STM8L1526_EVAL */
+}
+
+/**
+ * @brief USART1 RX / Timer5 Capture/Compare Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(USART1_RX_TIM5_CC_IRQHandler, 28)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+
+ uint8_t data;
+
+ tos_knl_irq_enter();
+
+ if (USART_GetITStatus(USART1, USART_IT_RXNE)) {
+ data = USART_ReceiveData8(USART1);
+ tos_shell_input_byte(data);
+ USART_ClearITPendingBit(USART1, USART_IT_RXNE);
+ }
+
+ tos_knl_irq_leave();
+
+#ifdef USE_STM8L1526_EVAL
+ uint8_t temp;
+
+ /* Read one byte from the receive data register and send it back */
+ temp = (USART_ReceiveData8(EVAL_COM1) & 0x7F);
+ USART_SendData8(EVAL_COM1, temp);
+#endif /* USE_STM8L1526_EVAL */
+}
+
+/**
+ * @brief I2C1 / SPI2 Interrupt routine.
+ * @param None
+ * @retval None
+ */
+INTERRUPT_HANDLER(I2C1_SPI2_IRQHandler, 29)
+{
+ /* In order to detect unexpected events during development,
+ it is recommended to set a breakpoint on the following instruction.
+ */
+}
+
+/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
+
+
+
diff --git a/components/shell/tos_shell.c b/components/shell/tos_shell.c
index db023b30..f940b33e 100644
--- a/components/shell/tos_shell.c
+++ b/components/shell/tos_shell.c
@@ -82,7 +82,7 @@ __STATIC__ void shell_cmd_process(void)
static char *argv[SHELL_CMD_ARGV_MAX];
char *pos = SHELL_CTL->cmd_buffer;
- printf("%s\n", pos);
+ tos_shell_printf("%s\n", SHELL_CTL->cmd_buffer);
// left strip
while (*pos == ' ' || *pos == '\t') {
diff --git a/examples/shell/shell_sample.c b/examples/shell/shell_sample.c
index 5f48331d..919868be 100644
--- a/examples/shell/shell_sample.c
+++ b/examples/shell/shell_sample.c
@@ -1,7 +1,7 @@
#include "tos_shell.h"
#include "tos_hal.h"
-#define CMD_LEN_MAX 128
+#define CMD_LEN_MAX 25
char cmd_buf[CMD_LEN_MAX];
hal_uart_t shell_uart;