[core] Prepare for project name change

This commit is contained in:
Kuba Szczodrzyński
2023-04-24 11:35:39 +02:00
parent 85a687fc56
commit 461e4c6df0
56 changed files with 105 additions and 103 deletions

View File

@@ -2,7 +2,7 @@
#pragma once
#include <libretuya.h>
#include <libretiny.h>
/**
* @brief Get CPU family ID (as lt_cpu_family_t enum member).

View File

@@ -2,10 +2,10 @@
#pragma once
#include <libretuya.h>
#include <libretiny.h>
/**
* @brief Get LibreTuya version string.
* @brief Get LibreTiny version string.
*/
const char *lt_get_version();

View File

@@ -2,7 +2,7 @@
#pragma once
#include <libretuya.h>
#include <libretiny.h>
/**
* @brief Read flash chip ID and return a lt_flash_id_t struct.

View File

@@ -2,7 +2,7 @@
#pragma once
#include <libretuya.h>
#include <libretiny.h>
/**
* @brief Initialize the family core (optional).

View File

@@ -2,7 +2,7 @@
#pragma once
#include <libretuya.h>
#include <libretiny.h>
/**
* @brief Get total RAM size.

View File

@@ -2,7 +2,7 @@
#pragma once
#include <libretuya.h>
#include <libretiny.h>
#include <uf2ota/uf2types.h>
/**

View File

@@ -2,7 +2,7 @@
#pragma once
#include <libretuya.h>
#include <libretiny.h>
// https://stackoverflow.com/a/3437484
#define MAX(a, b) \

View File

@@ -2,7 +2,7 @@
#pragma once
#include <libretuya.h>
#include <libretiny.h>
/**
* @brief Enable the hardware watchdog.

View File

@@ -37,7 +37,7 @@
// #define FDB_BIG_ENDIAN
#if LT_DEBUG_FDB
#include <libretuya.h>
#include <libretiny.h>
#include <printf/printf.h>
#define FDB_PRINT(...) __wrap_printf(__VA_ARGS__)
#define FDB_DEBUG_ENABLE

View File

@@ -14,7 +14,7 @@
#include <stdlib.h>
#include <string.h>
// LibreTuya version macros
// LibreTiny version macros
#ifndef LT_VERSION
#define LT_VERSION 1.0.0
#endif
@@ -28,7 +28,7 @@
#define GCC_VERSION_STR \
STRINGIFY_MACRO(__GNUC__) "." STRINGIFY_MACRO(__GNUC_MINOR__) "." STRINGIFY_MACRO(__GNUC_PATCHLEVEL__)
#define LT_BANNER_STR \
"LibreTuya v" LT_VERSION_STR " on " LT_BOARD_STR ", compiled at " __DATE__ " " __TIME__ ", GCC " GCC_VERSION_STR \
"LibreTiny v" LT_VERSION_STR " on " LT_BOARD_STR ", compiled at " __DATE__ " " __TIME__ ", GCC " GCC_VERSION_STR \
" (-O" STRINGIFY_MACRO(__OPTIMIZE_LEVEL__) ")"
// Functional macros

View File

@@ -2,7 +2,7 @@
#pragma once
// This file collects all LibreTuya C API includes.
// This file collects all LibreTiny C API includes.
// The functions are implemented in lt_api.c, which is located
// in the common core, and in the family cores.

View File

@@ -47,7 +47,7 @@ static const uint8_t colors[] = {
};
#endif
#if LIBRETUYA_ARDUINO
#if LIBRETINY_ARDUINO
unsigned long millis(void);
#endif
@@ -61,7 +61,7 @@ void lt_log(const uint8_t level, const char *format, ...) {
return;
#if LT_LOGGER_TIMESTAMP
#if LIBRETUYA_ARDUINO
#if LIBRETINY_ARDUINO
float seconds = millis() / 1000.0f;
#elif LT_HAS_FREERTOS
float seconds = xTaskGetTickCount() * portTICK_PERIOD_MS / 1000.0f;

View File

@@ -2,7 +2,7 @@
#pragma once
#include <libretuya.h>
#include <libretiny.h>
#ifdef __cplusplus
extern "C" {

View File

@@ -1,6 +1,6 @@
/* Copyright (c) Kuba Szczodrzyński 2022-06-19. */
#include <libretuya.h>
#include <libretiny.h>
#include <fal.h>