Skip to content

Commit

Permalink
ctxlink: Remove unneeded "PLATFORM_HAS_POWER_SWITCH" guard
Browse files Browse the repository at this point in the history
  • Loading branch information
sidprice committed Jul 13, 2024
1 parent d53c583 commit 4e48208
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/platforms/ctxlink/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ void platform_request_boot(void)

#pragma GCC diagnostic pop

#ifdef PLATFORM_HAS_POWER_SWITCH
bool platform_target_get_power(void)
{
return !gpio_get(PWR_BR_PORT, PWR_BR_PIN);
Expand All @@ -274,7 +273,6 @@ bool platform_target_set_power(const bool power)
gpio_set_val(PWR_BR_PORT, PWR_BR_PIN, !power);
return true;
}
#endif

void platform_target_clk_output_enable(bool enable)
{
Expand Down

0 comments on commit 4e48208

Please sign in to comment.