Skip to content

Commit

Permalink
🎨 Use <> includes for demo resource_list
Browse files Browse the repository at this point in the history
  • Loading branch information
kammce committed Aug 12, 2024
1 parent a237de6 commit 3896664
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion demos/applications/__device__.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <libhal-util/serial.hpp>
#include <libhal-util/steady_clock.hpp>

#include "../resource_list.hpp"
#include <resource_list.hpp>

void application(resource_list& p_map)
{
Expand Down
2 changes: 1 addition & 1 deletion demos/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ resource_list resources{};
[[noreturn]] void terminate_handler() noexcept
{

if (not resources.status_led && not resources.console) {
if (not resources.status_led && not resources.clock) {
// spin here until debugger is connected
while (true) {
continue;
Expand Down
4 changes: 2 additions & 2 deletions demos/platforms/lpc4078.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
#include <libhal-lpc40/uart.hpp>
#include <libhal-util/as_bytes.hpp>

#include "../resource_list.hpp"
#include <resource_list.hpp>

resource_list initialize_platform()
{
using namespace hal::literals;

// Set the MCU to the maximum clock speed
hal::lpc40::maximum(10.0_MHz);
hal::lpc40::maximum(12.0_MHz);

// Create a hardware counter
static hal::cortex_m::dwt_counter counter(
Expand Down

0 comments on commit 3896664

Please sign in to comment.