| #include <config.h> |
| |
| #if CONFIG_SERVICE_CLI == 1 |
| TASK cli_io_task { |
| AUTOSTART = TRUE; |
| ACTIVATION = 1; |
| PRIORITY = 12; |
| SCHEDULE = FULL; |
| STACK = PRIVATE { |
| SYS_SIZE = 1024; |
| }; |
| |
| EVENT = EnableEvent; |
| }; |
| |
| TASK cli_cmd_task { |
| AUTOSTART = TRUE; |
| ACTIVATION = 1; |
| PRIORITY = 13; |
| SCHEDULE = FULL; |
| STACK = PRIVATE { |
| SYS_SIZE = 2048; |
| }; |
| |
| EVENT = EnableEvent; |
| }; |
| |
| TASK cli_mbox_task { |
| AUTOSTART = TRUE; |
| ACTIVATION = 1; |
| PRIORITY = 15; |
| SCHEDULE = FULL; |
| STACK = PRIVATE { |
| SYS_SIZE = 1024; |
| }; |
| |
| EVENT = EnableEvent; |
| }; |
| |
| EVENT CLI_EVENT_TYPE_IDLE { MASK = 0x1; }; |
| EVENT CLI_EVENT_TYPE_RX { MASK = 0x2; }; |
| EVENT CLI_EVENT_TYPE_RX_MBOX { MASK = 0x4; }; |
| EVENT CLI_EVENT_TYPE_PROCESS { MASK = 0x8; }; |
| EVENT CLI_EVENT_TYPE_RX_REQ { MASK = 0x10; }; |
| EVENT CLI_EVENT_TYPE_RX_RSP { MASK = 0x20; }; |
| #endif |
| |
| #if CONFIG_HSM_MCUWDT == 1 |
| TASK mcuwdt_task { |
| AUTOSTART = TRUE; |
| ACTIVATION = 1; |
| PRIORITY = 28; |
| SCHEDULE = FULL; |
| STACK = PRIVATE { |
| SYS_SIZE = 1024; |
| }; |
| |
| EVENT = EnableEvent; |
| }; |
| EVENT MCUWDT_EVENT { MASK = 0x1; }; |
| |
| ALARM mcuwdt_alm { |
| COUNTER = ostick; |
| ACTION = SETEVENT { |
| TASK = mcuwdt_task; |
| EVENT = MCUWDT_EVENT; |
| }; |
| }; |
| #endif |
| |
| #if CONFIG_HSM_CRY_AES_SHA == 1 |
| TASK aes_sha_task { |
| AUTOSTART = TRUE; |
| ACTIVATION = 1; |
| PRIORITY = 28; |
| SCHEDULE = FULL; |
| STACK = PRIVATE { |
| SYS_SIZE = 8192; |
| }; |
| EVENT = EnableEvent; |
| #if CONFIG_HSM_CRYPTO_EX == 1 |
| RESOURCE = res_crypto; |
| #endif |
| }; |
| EVENT AES_SHA_EVENT { MASK = 0x1; }; |
| #endif |
| |
| #if CONFIG_HSM_CRY_ECC == 1 |
| TASK ecc_task { |
| AUTOSTART = TRUE; |
| ACTIVATION = 1; |
| PRIORITY = 28; |
| SCHEDULE = FULL; |
| STACK = PRIVATE { |
| SYS_SIZE = 8192; |
| }; |
| EVENT = EnableEvent; |
| }; |
| EVENT ECC_EVENT { MASK = 0x1; }; |
| #endif |
| |
| #if CONFIG_HSM_CRY_TRNG == 1 |
| TASK trng_task { |
| AUTOSTART = TRUE; |
| ACTIVATION = 1; |
| PRIORITY = 28; |
| SCHEDULE = FULL; |
| STACK = PRIVATE { |
| SYS_SIZE = 8192; |
| }; |
| EVENT = EnableEvent; |
| }; |
| EVENT TRNG_EVENT { MASK = 0x1; }; |
| #endif |
| |
| #if CONFIG_HSM_CRYPTO_EX == 1 |
| RESOURCE res_crypto { RESOURCEPROPERTY = STANDARD; }; |
| #endif |
| |
| #if CONFIG_HSM_KEY_MANAGEMENT == 1 |
| TASK km_task { |
| AUTOSTART = TRUE; |
| ACTIVATION = 1; |
| PRIORITY = 28; |
| SCHEDULE = FULL; |
| STACK = PRIVATE { |
| SYS_SIZE = 8192; |
| }; |
| |
| EVENT = EnableEvent; |
| }; |
| EVENT KEY_MANAGEMENT_EVENT { MASK = 0x1; }; |
| |
| #endif |