Skip to content

Commit

Permalink
🐛 fixes uart3 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
acarrou committed Oct 15, 2023
1 parent 6fedd1e commit 66f7f26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion demos/applications/telemetry-recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ hal::status application(hardware_map& p_map)
auto telemetry_recorder_data = HAL_CHECK(telemetry_recorder.record());

if (telemetry_recorder_data.gps_locked == false){
hal::print(console, "!!!GPS not locked!!!\n");
hal::print(console, "!!!GPS not fully locked!!!\n");
}else{
hal::print(console, "GPS locked\n");
auto gps_offset = HAL_CHECK(telemetry_recorder.gps_baro_altitude_offset());
Expand Down
12 changes: 7 additions & 5 deletions demos/platforms/lpc4078.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,18 @@ hal::result<hardware_map> initialize_platform()
.baud_rate = 115200,
}));

static auto i2c = HAL_CHECK((hal::lpc40::i2c::get(2,
hal::i2c::settings{
.clock_rate = 100.0_kHz,
})));

static auto uart3 = HAL_CHECK(hal::lpc40::uart::get(3,
uart3_buffer,
hal::serial::settings{
.baud_rate = 9600,
.baud_rate = 38400,
}));

static auto i2c = HAL_CHECK((hal::lpc40::i2c::get(2,
hal::i2c::settings{
.clock_rate = 100.0_kHz,
})));


return hardware_map{
.console = &uart0,
Expand Down

0 comments on commit 66f7f26

Please sign in to comment.