mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-05 10:15:28 +00:00
MAX6675 stub
This commit is contained in:
@ -363,6 +363,7 @@
|
||||
<ClCompile Include="src\driver\drv_main.c">
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug Win32 ScriptOnly|Win32'">true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="src\driver\drv_max6675.c" />
|
||||
<ClCompile Include="src\driver\drv_max72xx_clock.c" />
|
||||
<ClCompile Include="src\driver\drv_max72xx_internal.c" />
|
||||
<ClCompile Include="src\driver\drv_max72xx_single.c" />
|
||||
|
||||
@ -326,6 +326,7 @@
|
||||
<ClCompile Include="src\win_main_scriptOnly.c" />
|
||||
<ClCompile Include="src\win_stubs.c" />
|
||||
<ClCompile Include="src\selftest\selftest_http_led.c" />
|
||||
<ClCompile Include="src\driver\drv_max6675.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="src\base64\base64.h" />
|
||||
|
||||
@ -128,6 +128,9 @@ void ChargingLimit_AppendInformationToHTTPIndexPage(http_request_t *request);
|
||||
void RN8209_Init(void);
|
||||
void RN8029_RunEverySecond(void);
|
||||
|
||||
void MAX6675_Init(void);
|
||||
void MAX6675_RunEverySecond(void);
|
||||
|
||||
void PWMG_Init();
|
||||
|
||||
#define SM2135_DELAY 4
|
||||
|
||||
@ -172,6 +172,13 @@ static driver_t g_drivers[] = {
|
||||
//drvdetail:"requires":""}
|
||||
{ "CSE7766", CSE7766_Init, CSE7766_RunEverySecond, BL09XX_AppendInformationToHTTPIndexPage, NULL, NULL, NULL, false },
|
||||
#endif
|
||||
#if ENABLE_DRIVER_MAX6675
|
||||
//drvdetail:{"name":"MAX6675",
|
||||
//drvdetail:"title":"TODO",
|
||||
//drvdetail:"descr":"BQQQK",
|
||||
//drvdetail:"requires":""}
|
||||
{ "MAX6675", MAX6675_Init, MAX6675_RunEverySecond, NULL, NULL, NULL, NULL, false },
|
||||
#endif
|
||||
#if ENABLE_DRIVER_PT6523
|
||||
//drvdetail:{"name":"PT6523",
|
||||
//drvdetail:"title":"TODO",
|
||||
|
||||
18
src/driver/drv_max6675.c
Normal file
18
src/driver/drv_max6675.c
Normal file
@ -0,0 +1,18 @@
|
||||
// NOTE: based on https://github.com/RobTillaart/HT16K33.git MIT code
|
||||
#include "../new_common.h"
|
||||
#include "../new_pins.h"
|
||||
#include "../new_cfg.h"
|
||||
// Commands register, execution API and cmd tokenizer
|
||||
#include "../cmnds/cmd_public.h"
|
||||
#include "../mqtt/new_mqtt.h"
|
||||
#include "../logging/logging.h"
|
||||
#include "drv_local.h"
|
||||
#include "../hal/hal_pins.h"
|
||||
|
||||
void MAX6675_RunEverySecond() {
|
||||
|
||||
}
|
||||
|
||||
void MAX6675_Init() {
|
||||
|
||||
}
|
||||
@ -54,6 +54,7 @@
|
||||
#define ENABLE_DRIVER_CHARGINGLIMIT 1
|
||||
#define ENABLE_DRIVER_BATTERY 1
|
||||
#define ENABLE_DRIVER_PT6523 1
|
||||
#define ENABLE_DRIVER_MAX6675 1
|
||||
#define ENABLE_DRIVER_TEXTSCROLLER 1
|
||||
#define ENABLE_NTP_SUNRISE_SUNSET 1
|
||||
// parse things like $CH1 or $hour etc
|
||||
@ -84,6 +85,7 @@
|
||||
#define ENABLE_DRIVER_CSE7766 1
|
||||
//#define ENABLE_DRIVER_BMP280 1
|
||||
//#define ENABLE_DRIVER_PT6523 1
|
||||
//#define ENABLE_DRIVER_MAX6675 1
|
||||
//#define ENABLE_DRIVER_TEXTSCROLLER 1
|
||||
#define ENABLE_DRIVER_TUYAMCU 1
|
||||
//#define ENABLE_DRIVER_HT16K33 1
|
||||
|
||||
Reference in New Issue
Block a user