Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added support for esp32 core v3 #4

Merged
merged 1 commit into from
Oct 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/qf_port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void QActive::start(QPrioSpec const prioSpec,

/* task name provided by the user in QF_setTaskName() or default name */
char const *taskName = (m_thread != nullptr)
? static_cast<char const *>(m_thread)
? reinterpret_cast<char const *>(m_thread)
: static_cast<char const *>("AO");

/* statically create the FreeRTOS task for the AO */
Expand All @@ -138,7 +138,7 @@ void QActive::setAttr(std::uint32_t attr1, void const *attr2) {
switch (attr1) {
case TASK_NAME_ATTR:
/* temporarily store the name */
m_thread = const_cast<void *>(attr2); /* cast 'const' away */
m_thread = reinterpret_cast<TaskHandle_t>(const_cast<void *>(attr2)); /* cast 'const' away */
break;
/* ... */
}
Expand Down