Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
Namespaces | Typedefs
aliases.hpp File Reference

Optional convenience aliases for SBL namespaces. More...

#include <sbl/driver/gpio.hpp>
#include <sbl/driver/timer.hpp>
#include <sbl/driver/init.hpp>
Include dependency graph for aliases.hpp:

Go to the source code of this file.

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs functionality.
 

Typedefs

using sbl::Gpio = driver::Gpio
 
using sbl::Timer = driver::Timer
 
using sbl::PinMode = driver::PinMode
 

Detailed Description

Optional convenience aliases for SBL namespaces.

Include this header to bring driver functions and common types into the sbl:: namespace for shorter code. This is opt-in.

Without aliases (explicit): sbl::driver::Gpio::set_mode(pin, sbl::driver::PinMode::Output); sbl::driver::Timer::delay_ms(500);

With aliases (convenient): sbl::Gpio::set_mode(pin, sbl::PinMode::Output); sbl::Timer::delay_ms(500);

Definition in file aliases.hpp.