File tree Expand file tree Collapse file tree 6 files changed +54
-0
lines changed Expand file tree Collapse file tree 6 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 8
8
#include <soc.h>
9
9
#include <soc_init.h>
10
10
#include <flash_init.h>
11
+ #include <esp_efuse.h>
11
12
#include <esp_private/cache_utils.h>
12
13
#include <esp_private/system_internal.h>
13
14
#include <esp_timer.h>
@@ -26,6 +27,14 @@ void IRAM_ATTR __esp_platform_app_start(void)
26
27
27
28
esp_flash_config ();
28
29
30
+ #if CONFIG_EFUSE_VIRTUAL
31
+ #if CONFIG_EFUSE_VIRTUAL_KEEP_IN_FLASH
32
+ esp_efuse_init_virtual_mode_in_flash (CONFIG_EFUSE_VIRTUAL_OFFSET , CONFIG_EFUSE_VIRTUAL_SIZE );
33
+ #else
34
+ esp_efuse_init_virtual_mode_in_ram ();
35
+ #endif
36
+ #endif
37
+
29
38
#if CONFIG_ESP_SPIRAM
30
39
esp_init_psram ();
31
40
Original file line number Diff line number Diff line change 7
7
#include <soc.h>
8
8
#include <soc_init.h>
9
9
#include <flash_init.h>
10
+ #include <esp_efuse.h>
10
11
#include <esp_private/cache_utils.h>
11
12
#include <esp_private/system_internal.h>
12
13
#include <esp_timer.h>
@@ -24,6 +25,14 @@ void IRAM_ATTR __esp_platform_app_start(void)
24
25
25
26
esp_flash_config ();
26
27
28
+ #if CONFIG_EFUSE_VIRTUAL
29
+ #if CONFIG_EFUSE_VIRTUAL_KEEP_IN_FLASH
30
+ esp_efuse_init_virtual_mode_in_flash (CONFIG_EFUSE_VIRTUAL_OFFSET , CONFIG_EFUSE_VIRTUAL_SIZE );
31
+ #else
32
+ esp_efuse_init_virtual_mode_in_ram ();
33
+ #endif
34
+ #endif
35
+
27
36
/* Start Zephyr */
28
37
z_cstart ();
29
38
Original file line number Diff line number Diff line change 8
8
#include <soc.h>
9
9
#include <soc_init.h>
10
10
#include <flash_init.h>
11
+ #include <esp_efuse.h>
11
12
#include <esp_private/cache_utils.h>
12
13
#include <esp_private/system_internal.h>
13
14
#include <esp_timer.h>
@@ -25,6 +26,14 @@ void IRAM_ATTR __esp_platform_app_start(void)
25
26
26
27
esp_flash_config ();
27
28
29
+ #if CONFIG_EFUSE_VIRTUAL
30
+ #if CONFIG_EFUSE_VIRTUAL_KEEP_IN_FLASH
31
+ esp_efuse_init_virtual_mode_in_flash (CONFIG_EFUSE_VIRTUAL_OFFSET , CONFIG_EFUSE_VIRTUAL_SIZE );
32
+ #else
33
+ esp_efuse_init_virtual_mode_in_ram ();
34
+ #endif
35
+ #endif
36
+
28
37
/* Start Zephyr */
29
38
z_cstart ();
30
39
Original file line number Diff line number Diff line change 7
7
#include <soc.h>
8
8
#include <soc_init.h>
9
9
#include <flash_init.h>
10
+ #include <esp_efuse.h>
10
11
#include <esp_private/cache_utils.h>
11
12
#include <esp_private/system_internal.h>
12
13
#include <esp_timer.h>
@@ -24,6 +25,14 @@ void IRAM_ATTR __esp_platform_app_start(void)
24
25
25
26
esp_flash_config ();
26
27
28
+ #if CONFIG_EFUSE_VIRTUAL
29
+ #if CONFIG_EFUSE_VIRTUAL_KEEP_IN_FLASH
30
+ esp_efuse_init_virtual_mode_in_flash (CONFIG_EFUSE_VIRTUAL_OFFSET , CONFIG_EFUSE_VIRTUAL_SIZE );
31
+ #else
32
+ esp_efuse_init_virtual_mode_in_ram ();
33
+ #endif
34
+ #endif
35
+
27
36
/* Start Zephyr */
28
37
z_cstart ();
29
38
Original file line number Diff line number Diff line change 7
7
#include <soc.h>
8
8
#include <soc_init.h>
9
9
#include <flash_init.h>
10
+ #include <esp_efuse.h>
10
11
#include <esp_private/cache_utils.h>
11
12
#include <esp_private/system_internal.h>
12
13
#include <esp_timer.h>
@@ -41,6 +42,14 @@ void IRAM_ATTR __esp_platform_app_start(void)
41
42
42
43
esp_flash_config ();
43
44
45
+ #if CONFIG_EFUSE_VIRTUAL
46
+ #if CONFIG_EFUSE_VIRTUAL_KEEP_IN_FLASH
47
+ esp_efuse_init_virtual_mode_in_flash (CONFIG_EFUSE_VIRTUAL_OFFSET , CONFIG_EFUSE_VIRTUAL_SIZE );
48
+ #else
49
+ esp_efuse_init_virtual_mode_in_ram ();
50
+ #endif
51
+ #endif
52
+
44
53
#if CONFIG_ESP_SPIRAM
45
54
esp_init_psram ();
46
55
Original file line number Diff line number Diff line change 8
8
#include <soc.h>
9
9
#include <soc_init.h>
10
10
#include <flash_init.h>
11
+ #include <esp_efuse.h>
11
12
#include <esp_private/cache_utils.h>
12
13
#include <esp_private/system_internal.h>
13
14
#include <esp_timer.h>
@@ -54,6 +55,14 @@ void IRAM_ATTR __esp_platform_app_start(void)
54
55
55
56
esp_flash_config ();
56
57
58
+ #if CONFIG_EFUSE_VIRTUAL
59
+ #if CONFIG_EFUSE_VIRTUAL_KEEP_IN_FLASH
60
+ esp_efuse_init_virtual_mode_in_flash (CONFIG_EFUSE_VIRTUAL_OFFSET , CONFIG_EFUSE_VIRTUAL_SIZE );
61
+ #else
62
+ esp_efuse_init_virtual_mode_in_ram ();
63
+ #endif
64
+ #endif
65
+
57
66
#if CONFIG_ESP_SPIRAM
58
67
esp_init_psram ();
59
68
You can’t perform that action at this time.
0 commit comments