Skip to content

Commit

Permalink
moved interrupts to inside blank namespace and added space in hpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmb5932 committed Nov 8, 2024
2 parents 73b9001 + dff10d4 commit e9f975c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 8 additions & 4 deletions samples/adc/multi_adc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@ int main() {

while (1) {
core::log::LOGGER.log(core::log::Logger::LogLevel::INFO, "--------------------\r\n");
core::log::LOGGER.log(core::log::Logger::LogLevel::INFO, "ADC0 : %d mV\r\n", static_cast<uint32_t>(adc0.read() * 1000));
core::log::LOGGER.log(core::log::Logger::LogLevel::INFO, "ADC0: %d%%\r\n", static_cast<uint32_t>(adc0.readPercentage() * 100));
core::log::LOGGER.log(
core::log::Logger::LogLevel::INFO, "ADC0 : %d mV\r\n", static_cast<uint32_t>(adc0.read() * 1000));
core::log::LOGGER.log(
core::log::Logger::LogLevel::INFO, "ADC0: %d%%\r\n", static_cast<uint32_t>(adc0.readPercentage() * 100));
core::log::LOGGER.log(core::log::Logger::LogLevel::INFO, "ADC0 raw: %d\r\n\r\n", adc0.readRaw());

core::log::LOGGER.log(core::log::Logger::LogLevel::INFO, "ADC1 : %d mV\r\n", static_cast<uint32_t>(adc1.read() * 1000));
core::log::LOGGER.log(core::log::Logger::LogLevel::INFO, "ADC1: %d%%\r\n", static_cast<uint32_t>(adc1.readPercentage() * 100));
core::log::LOGGER.log(
core::log::Logger::LogLevel::INFO, "ADC1 : %d mV\r\n", static_cast<uint32_t>(adc1.read() * 1000));
core::log::LOGGER.log(
core::log::Logger::LogLevel::INFO, "ADC1: %d%%\r\n", static_cast<uint32_t>(adc1.readPercentage() * 100));
core::log::LOGGER.log(core::log::Logger::LogLevel::INFO, "ADC1 raw: %d\r\n\r\n", adc1.readRaw());
core::log::LOGGER.log(core::log::Logger::LogLevel::INFO, "--------------------\r\n\r\n");
time::wait(500);
Expand Down
6 changes: 4 additions & 2 deletions samples/adc/single_adc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ int main() {

while (1) {
core::log::LOGGER.log(core::log::Logger::LogLevel::INFO, "--------------------\r\n");
core::log::LOGGER.log(core::log::Logger::LogLevel::INFO, "ADC0 : %d mV\r\n", static_cast<uint32_t>(adc0.read() * 1000));
core::log::LOGGER.log(core::log::Logger::LogLevel::INFO, "ADC0: %d%%\r\n", static_cast<uint32_t>(adc0.readPercentage() * 100));
core::log::LOGGER.log(
core::log::Logger::LogLevel::INFO, "ADC0 : %d mV\r\n", static_cast<uint32_t>(adc0.read() * 1000));
core::log::LOGGER.log(
core::log::Logger::LogLevel::INFO, "ADC0: %d%%\r\n", static_cast<uint32_t>(adc0.readPercentage() * 100));
core::log::LOGGER.log(core::log::Logger::LogLevel::INFO, "ADC0 raw: %d\r\n\r\n", adc0.readRaw());
core::log::LOGGER.log(core::log::Logger::LogLevel::INFO, "--------------------\r\n\r\n");
time::wait(500);
Expand Down

0 comments on commit e9f975c

Please sign in to comment.