File tree Expand file tree Collapse file tree 2 files changed +1
-27
lines changed Expand file tree Collapse file tree 2 files changed +1
-27
lines changed Original file line number Diff line number Diff line change 18
18
#include <stdlib.h>
19
19
#include <stdint.h>
20
20
#include "cmsis.h"
21
- #if DEVICE_CRYPTOCELL
22
- #include "sns_silib.h"
23
- #endif
21
+
24
22
/* This startup is for mbed 2 baremetal. There is no config for RTOS for mbed 2,
25
23
* therefore we protect this file with MBED_CONF_RTOS_PRESENT
26
24
* Note: The new consolidated started for mbed OS is in rtos/mbed_boot code file.
@@ -66,19 +64,6 @@ void mbed_copy_nvic(void)
66
64
#endif /* NVIC_RAM_VECTOR_ADDRESS */
67
65
#endif /* !defined(__CORTEX_M0) && !defined(__CORTEX_A9) */
68
66
}
69
- #if DEVICE_CRYPTOCELL
70
- #if defined(TOOLCHAIN_GCC )
71
- CRYS_RND_State_t rndState = {0 };
72
- CRYS_RND_WorkBuff_t rndWorkBuff = {0 };
73
- #else
74
- CRYS_RND_State_t rndState ;
75
- CRYS_RND_WorkBuff_t rndWorkBuff ;
76
- #endif
77
-
78
- CRYS_RND_State_t * rndState_ptr ;
79
- CRYS_RND_WorkBuff_t * rndWorkBuff_ptr ;
80
-
81
- #endif
82
67
83
68
/* Toolchain specific main code */
84
69
@@ -95,11 +80,6 @@ int $Sub$$main(void)
95
80
void _platform_post_stackheap_init (void )
96
81
{
97
82
mbed_copy_nvic ();
98
- #if DEVICE_CRYPTOCELL
99
- if ( SaSi_LibInit ( & rndState , & rndWorkBuff ) ) {
100
- mbed_die ();
101
- }
102
- #endif
103
83
mbed_sdk_init ();
104
84
}
105
85
@@ -110,11 +90,6 @@ extern int __real_main(void);
110
90
void software_init_hook (void )
111
91
{
112
92
mbed_copy_nvic ();
113
- #if DEVICE_CRYPTOCELL
114
- if ( SaSi_LibInit ( & rndState , & rndWorkBuff ) ) {
115
- mbed_die ();
116
- }
117
- #endif
118
93
mbed_sdk_init ();
119
94
software_init_hook_rtos ();
120
95
}
Original file line number Diff line number Diff line change 172
172
#if defined(__IAR_SYSTEMS_ICC__ ) && (__VER__ >= 8000000 )
173
173
#include <DLib_Threads.h>
174
174
#endif
175
-
176
175
/* Heap limits - only used if set */
177
176
extern unsigned char * mbed_heap_start ;
178
177
extern uint32_t mbed_heap_size ;
You can’t perform that action at this time.
0 commit comments