forked from espressif/esp-bsp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request espressif#126 from espressif/bsp/use_lvgl_port_in_bsp
bsp: Use LVGL port for all BSPs with display.
- Loading branch information
Showing
34 changed files
with
658 additions
and
991 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
SquareLine/boards/custom_waveshare_7inch/components/ws_7inch/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
idf_component_register( | ||
SRCS "ws_7inch.c" | ||
INCLUDE_DIRS "include" | ||
PRIV_INCLUDE_DIRS "priv_include" | ||
REQUIRES driver | ||
PRIV_REQUIRES esp_timer esp_lcd esp_lcd_touch | ||
) |
17 changes: 0 additions & 17 deletions
17
SquareLine/boards/custom_waveshare_7inch/components/ws_7inch/Kconfig
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
SquareLine/boards/custom_waveshare_7inch/components/ws_7inch/include/bsp/esp-bsp.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD | ||
* | ||
* SPDX-License-Identifier: CC0-1.0 | ||
*/ | ||
|
||
#pragma once | ||
#include "bsp/ws_7inch.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
SquareLine/boards/custom_waveshare_7inch/components/ws_7inch/priv_include/bsp_err_check.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD | ||
* | ||
* SPDX-License-Identifier: CC0-1.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "esp_check.h" | ||
#include "sdkconfig.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/* Assert on error, if selected in menuconfig. Otherwise return error code. */ | ||
#if CONFIG_BSP_ERROR_CHECK | ||
#define BSP_ERROR_CHECK_RETURN_ERR(x) ESP_ERROR_CHECK(x) | ||
#define BSP_ERROR_CHECK_RETURN_NULL(x) ESP_ERROR_CHECK(x) | ||
#define BSP_ERROR_CHECK(x, ret) ESP_ERROR_CHECK(x) | ||
#define BSP_NULL_CHECK(x, ret) assert(x) | ||
#define BSP_NULL_CHECK_GOTO(x, goto_tag) assert(x) | ||
#else | ||
#define BSP_ERROR_CHECK_RETURN_ERR(x) do { \ | ||
esp_err_t err_rc_ = (x); \ | ||
if (unlikely(err_rc_ != ESP_OK)) { \ | ||
return err_rc_; \ | ||
} \ | ||
} while(0) | ||
|
||
#define BSP_ERROR_CHECK_RETURN_NULL(x) do { \ | ||
if (unlikely((x) != ESP_OK)) { \ | ||
return NULL; \ | ||
} \ | ||
} while(0) | ||
|
||
#define BSP_NULL_CHECK(x, ret) do { \ | ||
if ((x) == NULL) { \ | ||
return ret; \ | ||
} \ | ||
} while(0) | ||
|
||
#define BSP_ERROR_CHECK(x, ret) do { \ | ||
if (unlikely((x) != ESP_OK)) { \ | ||
return ret; \ | ||
} \ | ||
} while(0) | ||
|
||
#define BSP_NULL_CHECK(x, ret) do { \ | ||
if ((x) == NULL) { \ | ||
return ret; \ | ||
} \ | ||
} while(0) | ||
|
||
#define BSP_NULL_CHECK_GOTO(x, goto_tag) do { \ | ||
if ((x) == NULL) { \ | ||
goto goto_tag; \ | ||
} \ | ||
} while(0) | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
Oops, something went wrong.