-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial changes for waveshare s3 touch support
- Loading branch information
1 parent
ed2d0cc
commit 8e01cba
Showing
48 changed files
with
804 additions
and
455 deletions.
There are no files selected for viewing
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
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,76 @@ | ||
# C coding Style | ||
|
||
The basic formatting rules are set in `.clang-format`. Use auto-formatting in your editor. | ||
|
||
All code should target C language revision C11/C17. | ||
|
||
## Naming | ||
|
||
### Files | ||
|
||
Files are snake-case. | ||
|
||
- Files: `^[0-9a-z_]+$` | ||
- Directories: `^[0-9a-z_]+$` | ||
|
||
Example: | ||
```c | ||
some_feature.c | ||
some_feature.h | ||
``` | ||
|
||
Private/internal headers are postfixed with `_i` before the file extension. | ||
Like `some_feature_i.h` | ||
|
||
### Function names | ||
|
||
Names are snake-case. | ||
|
||
Public functions are prefixed with `tt_` for `tactility-core` and `tactility` projects. | ||
Internal/static functions don't have prefix requirements, but prefixes are allowed. | ||
|
||
Public functions have the feature name after `tt_`. | ||
|
||
If a feature has setters or getters, it's added after the feature name part. | ||
|
||
Example: | ||
|
||
```c | ||
void tt_feature_get_name() { | ||
// ... | ||
} | ||
``` | ||
|
||
Function names that allocate or free memory should end in `_alloc` and `_free`. | ||
|
||
### Type names | ||
|
||
Consts are snake-case with capital letters. | ||
|
||
Typedefs for structs and datatype aliases are PascalCase. | ||
Examples: | ||
|
||
```c | ||
typedef uint32_t SomeAlias; | ||
|
||
typedef struct { | ||
// ... | ||
} SomeStruct; | ||
``` | ||
|
||
### Internal struct with public handle | ||
|
||
When you have a `struct` data type that is private and you want to expose a handle (pointer), | ||
append the internal name with `Data` like this: | ||
|
||
**feature.c** | ||
```c | ||
typedef struct { | ||
// ... | ||
} MutexData; | ||
``` | ||
|
||
**feature.h** | ||
```c | ||
typedef void* Mutex; | ||
``` |
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,8 +1,10 @@ | ||
# Note | ||
|
||
During the pre-alpha stage, contributions will not yet be considered. | ||
Too many things are changing too rapidly: | ||
I don't want to disappoint people with huge merge conflicts. | ||
|
||
# Code Style | ||
|
||
See [this document](https://github.com/flipperdevices/flipperzero-firmware/blob/dev/CODING_STYLE.md). | ||
See [this document](CODING_STYLE.md). | ||
|
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
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
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
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
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,6 @@ | ||
idf_component_register( | ||
SRC_DIRS "." | ||
INCLUDE_DIRS "." | ||
REQUIRES tactility-esp esp_lcd esp_lcd_touch_gt911 | ||
REQUIRES tactility-esp esp_lcd esp_lcd_touch_gt911 driver | ||
) | ||
|
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
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
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,7 +1,10 @@ | ||
#include "lilygo_tdeck.h" | ||
#include <stdbool.h> | ||
|
||
bool lilygo_tdeck_bootstrap(); | ||
bool lilygo_init_lvgl(); | ||
|
||
const HardwareConfig lilygo_tdeck = { | ||
.bootstrap = &lilygo_tdeck_bootstrap, | ||
.display_driver = &lilygo_tdeck_display_driver, | ||
.touch_driver = &lilygo_tdeck_touch_driver | ||
.init_lvgl = &lilygo_init_lvgl | ||
}; |
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
Oops, something went wrong.