Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
101eb201
Commit
101eb201
authored
Oct 13, 2016
by
Arnim Läuger
Committed by
Marcel Stör
Oct 13, 2016
Browse files
add map ids for flash sizes 32m-c2, 64m, 128m in user_rf_cal_sector_set() (#1529)
parent
b8e00120
Changes
2
Show whitespace changes
Inline
Side-by-side
app/user/user_main.c
View file @
101eb201
...
...
@@ -177,7 +177,7 @@ void user_rf_pre_init(void)
uint32
user_rf_cal_sector_set
(
void
)
{
enum
flash_size_map
size_map
=
system_get_flash_size_map
();
enum
ext_
flash_size_map
size_map
=
system_get_flash_size_map
();
uint32
rf_cal_sec
=
0
;
switch
(
size_map
)
{
...
...
@@ -196,9 +196,18 @@ user_rf_cal_sector_set(void)
case
FLASH_SIZE_32M_MAP_512_512
:
case
FLASH_SIZE_32M_MAP_1024_1024
:
case
FLASH_SIZE_32M_MAP_2048_2048
:
rf_cal_sec
=
1024
-
5
;
break
;
case
FLASH_SIZE_64M_MAP
:
rf_cal_sec
=
2048
-
5
;
break
;
case
FLASH_SIZE_128M_MAP
:
rf_cal_sec
=
4096
-
5
;
break
;
default:
rf_cal_sec
=
0
;
break
;
...
...
sdk-overrides/include/user_interface.h
View file @
101eb201
...
...
@@ -6,5 +6,11 @@
bool
wifi_softap_deauth
(
uint8
mac
[
6
]);
uint8
get_fpm_auto_sleep_flag
(
void
);
enum
ext_flash_size_map
{
FLASH_SIZE_32M_MAP_2048_2048
=
7
,
FLASH_SIZE_64M_MAP
=
8
,
FLASH_SIZE_128M_MAP
=
9
};
#endif
/* SDK_OVERRIDES_INCLUDE_USER_INTERFACE_H_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment