separate rom from esp32 component to esp_rom

1. separate rom include files and linkscript to esp_rom
2. modefiy "include rom/xxx.h" to "include esp32/rom/xxx.h"
3. Forward compatible
4. update mqtt
This commit is contained in:
morris
2019-03-21 18:51:45 +08:00
parent 4fc548112e
commit c159984264
215 changed files with 4387 additions and 4974 deletions
+2 -2
View File
@@ -20,8 +20,8 @@
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <freertos/semphr.h>
#include <rom/spi_flash.h>
#include <rom/cache.h>
#include <esp32/rom/spi_flash.h>
#include <esp32/rom/cache.h>
#include <soc/soc.h>
#include <soc/dport_reg.h>
#include "sdkconfig.h"
+3 -3
View File
@@ -20,8 +20,8 @@
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <freertos/semphr.h>
#include <rom/spi_flash.h>
#include <rom/cache.h>
#include <esp32/rom/spi_flash.h>
#include <esp32/rom/cache.h>
#include <soc/soc.h>
#include <soc/dport_reg.h>
#include "sdkconfig.h"
@@ -37,7 +37,7 @@
// Enable built-in checks in queue.h in debug builds
#define INVARIANTS
#endif
#include "rom/queue.h"
#include "sys/queue.h"
#define REGIONS_COUNT 4
#define PAGES_PER_REGION 64
+2 -2
View File
@@ -21,8 +21,8 @@
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <freertos/semphr.h>
#include <rom/spi_flash.h>
#include <rom/cache.h>
#include <esp32/rom/spi_flash.h>
#include <esp32/rom/cache.h>
#include <soc/soc.h>
#include <soc/dport_reg.h>
#include "sdkconfig.h"
+1 -1
View File
@@ -31,7 +31,7 @@
// Enable built-in checks in queue.h in debug builds
#define INVARIANTS
#endif
#include "rom/queue.h"
#include "sys/queue.h"
typedef struct partition_list_item_ {
+1
View File
@@ -22,6 +22,7 @@ INCLUDE_DIRS := \
vfs/include \
) \
$(addprefix ../../../components/, \
esp_rom/include \
soc/esp32/include \
esp32/include \
bootloader_support/include \
+1 -1
View File
@@ -18,7 +18,7 @@
#include <stdbool.h>
#include "esp_err.h"
#include "rom/spi_flash.h"
#include "esp32/rom/spi_flash.h"
/**
* @brief This class is used to emulate flash devices.
+1 -1
View File
@@ -7,7 +7,7 @@
#include "esp_partition.h"
#include "esp_err.h"
#include "rom/spi_flash.h"
#include "esp32/rom/spi_flash.h"
SpiFlash spiflash = SpiFlash();
+1 -1
View File
@@ -2,7 +2,7 @@
#include "esp_partition.h"
#include "esp_err.h"
#include "rom/spi_flash.h"
#include "esp32/rom/spi_flash.h"
extern void _spi_flash_init(const char* chip_size, size_t block_size, size_t sector_size, size_t page_size, const char* partition_bin);
+3 -3
View File
@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "rom/ets_sys.h"
#include "rom/gpio.h"
#include "rom/spi_flash.h"
#include "esp32/rom/ets_sys.h"
#include "esp32/rom/gpio.h"
#include "esp32/rom/spi_flash.h"
#include "sdkconfig.h"
#define SPI_IDX 1
@@ -25,7 +25,7 @@
#include <test_utils.h>
#include <esp_spi_flash.h>
#include <esp_log.h>
#include <rom/spi_flash.h>
#include <esp32/rom/spi_flash.h>
#include "../cache_utils.h"
#include "soc/timer_group_struct.h"
#include "soc/timer_group_reg.h"
+1 -1
View File
@@ -23,7 +23,7 @@
#include <unity.h>
#include <test_utils.h>
#include <esp_spi_flash.h>
#include <rom/spi_flash.h>
#include <esp32/rom/spi_flash.h>
#include "../cache_utils.h"
#include "soc/timer_group_struct.h"
#include "soc/timer_group_reg.h"