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

Redo workaround for pin_def errors on KINETIS #16620

Merged
merged 2 commits into from
Mar 11, 2022
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions platforms/chibios/_pin_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
*/
#pragma once

#if defined(MCU_KINETIS)
// TODO: including this avoids "error: expected identifier before '(' token" errors
// here just to please KINETIS builds...
# include <hal.h>
#endif

// Defines mapping for Proton C replacement
#ifdef CONVERT_TO_PROTON_C
// Left side (front)
Expand Down
4 changes: 0 additions & 4 deletions platforms/pin_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
*/
#pragma once

// TODO: including this avoids "error: expected identifier before '(' token" errors
// here just to please KINETIS builds...
#include "platform_deps.h"

// useful for direct pin mapping
#define NO_PIN (pin_t)(~0)

Expand Down