-
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.
* improvements for cross-platform compiling * moved tactility-core to libs/ * splitup improvements * remove git/gitmodules from freertos * better platformbetter platform checks * added build scripts * delete mbedtls * re-add mbedtls * fixes and improvements * added pc build * simplify build scripts * revert build scrpit * updated builds * fix for pc * fix for pc * fix for build
- Loading branch information
1 parent
c830c66
commit a94baf0
Showing
2,359 changed files
with
674,656 additions
and
137 deletions.
There are no files selected for viewing
File renamed without changes.
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,16 @@ | ||
name: Build | ||
on: [push] | ||
jobs: | ||
Build-PC: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: Configure Project | ||
uses: threeal/[email protected] | ||
- name: Prepare Project | ||
run: cmake -S ./ -B build | ||
- name: Build Project | ||
run: cmake --build build |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
.DS_Store | ||
|
||
build/ | ||
build-sim/ | ||
cmake-build-debug/ | ||
cmake-build-release/ | ||
CMakeCache.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
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,19 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
|
||
set(BOARD_COMPONENTS tactility) | ||
|
||
if("${IDF_TARGET}" STREQUAL "esp32") | ||
list(APPEND BOARD_COMPONENTS yellow_board) | ||
endif() | ||
|
||
# T-Deck is an S3 platform | ||
if("${IDF_TARGET}" STREQUAL "esp32s3") | ||
list(APPEND BOARD_COMPONENTS lilygo_tdeck) | ||
endif() | ||
|
||
idf_component_register( | ||
SRC_DIRS "src" | ||
"src/hello_world" | ||
REQUIRES ${BOARD_COMPONENTS} | ||
) | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,7 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
|
||
file(GLOB SOURCES "src/*.c") | ||
add_executable(app-sim ${SOURCES}) | ||
target_link_libraries(app-sim PRIVATE tactility-core) | ||
target_link_libraries(app-sim PRIVATE freertos-kernel) | ||
|
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,42 @@ | ||
#include "log.h" | ||
|
||
#include "FreeRTOS.h" | ||
#include "task.h" | ||
#include "portmacro.h" | ||
|
||
|
||
void vAssertCalled( unsigned long ulLine, const char * const pcFileName ) | ||
{ | ||
static portBASE_TYPE xPrinted = pdFALSE; | ||
volatile uint32_t ulSetToNonZeroInDebuggerToContinue = 0; | ||
|
||
/* Parameters are not used. */ | ||
( void ) ulLine; | ||
( void ) pcFileName; | ||
|
||
taskENTER_CRITICAL(); | ||
{ | ||
/* You can step out of this function to debug the assertion by using | ||
the debugger to set ulSetToNonZeroInDebuggerToContinue to a non-zero | ||
value. */ | ||
while( ulSetToNonZeroInDebuggerToContinue == 0 ) | ||
{ | ||
} | ||
} | ||
taskEXIT_CRITICAL(); | ||
} | ||
|
||
int main() { | ||
// static const Config config = { | ||
// .hardware = NULL, | ||
// .apps = { | ||
// &hello_world_app | ||
// }, | ||
// .services = { }, | ||
// .auto_start_app_id = NULL | ||
// }; | ||
// | ||
// tactility_start(&config); | ||
TT_LOG_I("app", "Hello, world!"); | ||
return 0; | ||
} |
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 @@ | ||
#!/bin/sh | ||
if [[ -v ESP_IDF_VERSION ]]; then | ||
idf.py build | ||
else | ||
cmake -S ./ -B build-sim | ||
cmake --build build-sim | ||
fi | ||
|
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,5 @@ | ||
#!/bin/sh | ||
rm -rf build | ||
rm -rf build-sim | ||
rm -rf cmake-* | ||
|
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
idf_component_register( | ||
REQUIRES spiffs | ||
) | ||
|
||
set(ASSETS_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/assets") | ||
spiffs_create_partition_image(assets ${ASSETS_SRC_DIR} FLASH_IN_PROJECT) | ||
|
||
set(CONFIG_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/config") | ||
spiffs_create_partition_image(config ${CONFIG_SRC_DIR} FLASH_IN_PROJECT) |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
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
37 changes: 37 additions & 0 deletions
37
components/tactility/src/services/wifi/wifi_credentials_mock.c
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,37 @@ | ||
#ifndef ESP_PLATFORM | ||
|
||
#include "wifi_credentials.h" | ||
|
||
#include "log.h" | ||
|
||
#define TAG "wifi_credentials" | ||
|
||
// region Wi-Fi Credentials - public | ||
|
||
bool tt_wifi_credentials_contains(const char* ssid) { | ||
// TODO: Implement | ||
return false; | ||
} | ||
|
||
void tt_wifi_credentials_init() { | ||
TT_LOG_W(TAG, "init mock implementation"); | ||
} | ||
|
||
bool tt_wifi_credentials_get(const char* ssid, char password[TT_WIFI_CREDENTIALS_PASSWORD_LIMIT]) { | ||
// TODO: Implement | ||
return false; | ||
} | ||
|
||
bool tt_wifi_credentials_set(const char* ssid, char password[TT_WIFI_CREDENTIALS_PASSWORD_LIMIT]) { | ||
// TODO: Implement | ||
return false; | ||
} | ||
|
||
bool tt_wifi_credentials_remove(const char* ssid) { | ||
// TODO: Implement | ||
return false; | ||
} | ||
|
||
// end region Wi-Fi Credentials - public | ||
|
||
#endif |
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.