This file contains hidden or 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
/* Tickless idle using RTC and STOP2 for long delays, WFI for short delays */ | |
void vPortSuppressTicksAndSleep( TickType_t xExpectedIdleTime ) | |
{ | |
if (xExpectedIdleTime == 0) { | |
return; | |
} | |
const TickType_t ticksPerSecond = configTICK_RATE_HZ; | |
const TickType_t STOP2_THRESHOLD = pdMS_TO_TICKS(2000); /* 2s minimum for STOP2 */ | |
This file contains hidden or 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
#ifndef _DEBUG_COLOR_H_ | |
#define _DEBUG_COLOR_H_ | |
#define TTY_COLOR_YELLOW "\033[1;33m" | |
#define TTY_COLOR_GREEN "\033[1;32m" | |
#define TTY_COLOR_RED "\033[1;31m" | |
#define TTY_COLOR_RESET "\033[0m" | |
#define TTY_COLOR_DEF "\033[0;39m" | |
#define TTY_COLOR_BLUE "\033[1;34m" | |
#define TTY_COLOR_CYAN "\033[1;36m" |
This file contains hidden or 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
/* | |
* MIT License | |
* | |
* Copyright (c) 2025 Denys Suprunenko chipsoft@gmail.com | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |