Skip to content

These module docs are in beta and may be incomplete.

modm:platform: Platform HAL

Target-specific implementation of the Hardware Abstraction Layer.

Content

// Class
class modm::CanBitTiming< int32_t Clk, int32_t Bitrate >;
class modm::cortex::SysTickTimer;
class modm::platform::Adc1;
class modm::platform::Adc2;
class modm::platform::Adc3;
class modm::platform::AdcInterrupt1;
class modm::platform::AdcInterrupt2;
class modm::platform::AdcInterrupt3;
class modm::platform::AdvancedControlTimer;
class modm::platform::BasicTimer;
class modm::platform::BitBangI2cMaster< class Scl , class Sda  >;
class modm::platform::BitBangOneWireMaster< typename Pin  >;
class modm::platform::BitBangSpiMaster< typename Sck , typename Mosi , typename Miso =GpioUnused >;
class modm::platform::Can1;
class modm::platform::Can2;
class modm::platform::CanFilter;
class modm::platform::ClockControl;
class modm::platform::Dma1::Stream0;
class modm::platform::Dma1::Stream1;
class modm::platform::Dma1::Stream2;
class modm::platform::Dma1::Stream3;
class modm::platform::Dma1::Stream4;
class modm::platform::Dma1::Stream5;
class modm::platform::Dma1::Stream6;
class modm::platform::Dma1::Stream7;
class modm::platform::Dma1;
class modm::platform::Dma2::Stream0;
class modm::platform::Dma2::Stream1;
class modm::platform::Dma2::Stream2;
class modm::platform::Dma2::Stream3;
class modm::platform::Dma2::Stream4;
class modm::platform::Dma2::Stream5;
class modm::platform::Dma2::Stream6;
class modm::platform::Dma2::Stream7;
class modm::platform::Dma2;
class modm::platform::DmaBase;
class modm::platform::GeneralPurposeTimer;
class modm::platform::GpioA0;
class modm::platform::GpioA10;
class modm::platform::GpioA11;
class modm::platform::GpioA12;
class modm::platform::GpioA13;
class modm::platform::GpioA14;
class modm::platform::GpioA15;
class modm::platform::GpioA1;
class modm::platform::GpioA2;
class modm::platform::GpioA3;
class modm::platform::GpioA4;
class modm::platform::GpioA5;
class modm::platform::GpioA6;
class modm::platform::GpioA7;
class modm::platform::GpioA8;
class modm::platform::GpioA9;
class modm::platform::GpioB0;
class modm::platform::GpioB10;
class modm::platform::GpioB11;
class modm::platform::GpioB12;
class modm::platform::GpioB13;
class modm::platform::GpioB14;
class modm::platform::GpioB15;
class modm::platform::GpioB1;
class modm::platform::GpioB2;
class modm::platform::GpioB3;
class modm::platform::GpioB4;
class modm::platform::GpioB5;
class modm::platform::GpioB6;
class modm::platform::GpioB7;
class modm::platform::GpioB8;
class modm::platform::GpioB9;
class modm::platform::GpioC0;
class modm::platform::GpioC10;
class modm::platform::GpioC11;
class modm::platform::GpioC12;
class modm::platform::GpioC13;
class modm::platform::GpioC14;
class modm::platform::GpioC15;
class modm::platform::GpioC1;
class modm::platform::GpioC2;
class modm::platform::GpioC3;
class modm::platform::GpioC4;
class modm::platform::GpioC5;
class modm::platform::GpioC6;
class modm::platform::GpioC7;
class modm::platform::GpioC8;
class modm::platform::GpioC9;
class modm::platform::GpioD0;
class modm::platform::GpioD10;
class modm::platform::GpioD11;
class modm::platform::GpioD12;
class modm::platform::GpioD13;
class modm::platform::GpioD14;
class modm::platform::GpioD15;
class modm::platform::GpioD1;
class modm::platform::GpioD2;
class modm::platform::GpioD3;
class modm::platform::GpioD4;
class modm::platform::GpioD5;
class modm::platform::GpioD6;
class modm::platform::GpioD7;
class modm::platform::GpioD8;
class modm::platform::GpioD9;
class modm::platform::GpioE0;
class modm::platform::GpioE10;
class modm::platform::GpioE11;
class modm::platform::GpioE12;
class modm::platform::GpioE13;
class modm::platform::GpioE14;
class modm::platform::GpioE15;
class modm::platform::GpioE1;
class modm::platform::GpioE2;
class modm::platform::GpioE3;
class modm::platform::GpioE4;
class modm::platform::GpioE5;
class modm::platform::GpioE6;
class modm::platform::GpioE7;
class modm::platform::GpioE8;
class modm::platform::GpioE9;
class modm::platform::GpioF0;
class modm::platform::GpioF10;
class modm::platform::GpioF11;
class modm::platform::GpioF12;
class modm::platform::GpioF13;
class modm::platform::GpioF14;
class modm::platform::GpioF15;
class modm::platform::GpioF1;
class modm::platform::GpioF2;
class modm::platform::GpioF3;
class modm::platform::GpioF4;
class modm::platform::GpioF5;
class modm::platform::GpioF6;
class modm::platform::GpioF7;
class modm::platform::GpioF8;
class modm::platform::GpioF9;
class modm::platform::GpioG0;
class modm::platform::GpioG10;
class modm::platform::GpioG11;
class modm::platform::GpioG12;
class modm::platform::GpioG13;
class modm::platform::GpioG14;
class modm::platform::GpioG15;
class modm::platform::GpioG1;
class modm::platform::GpioG2;
class modm::platform::GpioG3;
class modm::platform::GpioG4;
class modm::platform::GpioG5;
class modm::platform::GpioG6;
class modm::platform::GpioG7;
class modm::platform::GpioG8;
class modm::platform::GpioG9;
class modm::platform::GpioH0;
class modm::platform::GpioH10;
class modm::platform::GpioH11;
class modm::platform::GpioH12;
class modm::platform::GpioH13;
class modm::platform::GpioH14;
class modm::platform::GpioH15;
class modm::platform::GpioH1;
class modm::platform::GpioH2;
class modm::platform::GpioH3;
class modm::platform::GpioH4;
class modm::platform::GpioH5;
class modm::platform::GpioH6;
class modm::platform::GpioH7;
class modm::platform::GpioH8;
class modm::platform::GpioH9;
class modm::platform::GpioI0;
class modm::platform::GpioI10;
class modm::platform::GpioI11;
class modm::platform::GpioI12;
class modm::platform::GpioI13;
class modm::platform::GpioI14;
class modm::platform::GpioI15;
class modm::platform::GpioI1;
class modm::platform::GpioI2;
class modm::platform::GpioI3;
class modm::platform::GpioI4;
class modm::platform::GpioI5;
class modm::platform::GpioI6;
class modm::platform::GpioI7;
class modm::platform::GpioI8;
class modm::platform::GpioI9;
class modm::platform::GpioInverted< class Pin  >;
class modm::platform::GpioJ0;
class modm::platform::GpioJ12;
class modm::platform::GpioJ13;
class modm::platform::GpioJ14;
class modm::platform::GpioJ15;
class modm::platform::GpioJ1;
class modm::platform::GpioJ2;
class modm::platform::GpioJ3;
class modm::platform::GpioJ4;
class modm::platform::GpioJ5;
class modm::platform::GpioK3;
class modm::platform::GpioK4;
class modm::platform::GpioK5;
class modm::platform::GpioK6;
class modm::platform::GpioK7;
class modm::platform::GpioPort< class StartGpio , int8_t Width >;
class modm::platform::GpioSet< class... Gpios >;
class modm::platform::GpioUnused;
class modm::platform::I2cMaster1;
class modm::platform::I2cMaster2;
class modm::platform::I2cMaster3;
class modm::platform::RandomNumberGenerator;
class modm::platform::SoftwareGpioPort< class... Gpios >;
class modm::platform::SpiBase;
class modm::platform::SpiHal1;
class modm::platform::SpiHal2;
class modm::platform::SpiHal3;
class modm::platform::SpiHal4;
class modm::platform::SpiHal5;
class modm::platform::SpiHal6;
class modm::platform::SpiMaster1;
class modm::platform::SpiMaster2;
class modm::platform::SpiMaster3;
class modm::platform::SpiMaster4;
class modm::platform::SpiMaster5;
class modm::platform::SpiMaster6;
class modm::platform::Timer10;
class modm::platform::Timer11;
class modm::platform::Timer12;
class modm::platform::Timer13;
class modm::platform::Timer14;
class modm::platform::Timer1;
class modm::platform::Timer2;
class modm::platform::Timer3;
class modm::platform::Timer4;
class modm::platform::Timer5;
class modm::platform::Timer6;
class modm::platform::Timer7;
class modm::platform::Timer8;
class modm::platform::Timer9;
class modm::platform::Uart4;
class modm::platform::Uart5;
class modm::platform::Uart7;
class modm::platform::Uart8;
class modm::platform::UartBase;
class modm::platform::UartBaudrate;
class modm::platform::UartHal4;
class modm::platform::UartHal5;
class modm::platform::UartHal7;
class modm::platform::UartHal8;
class modm::platform::UartSpiMaster1;
class modm::platform::UartSpiMaster2;
class modm::platform::UartSpiMaster3;
class modm::platform::UartSpiMaster6;
class modm::platform::Usart1;
class modm::platform::Usart2;
class modm::platform::Usart3;
class modm::platform::Usart6;
class modm::platform::UsartHal1;
class modm::platform::UsartHal2;
class modm::platform::UsartHal3;
class modm::platform::UsartHal6;

// Struct
struct modm::CanBitTiming::CanBitTimingConfiguration;
struct modm::platform::CanFilter::ExtendedFilterMask;
struct modm::platform::CanFilter::ExtendedFilterMaskShort;
struct modm::platform::CanFilter::ExtendedIdentifier;
struct modm::platform::CanFilter::ExtendedIdentifierShort;
struct modm::platform::CanFilter::Identifier;
struct modm::platform::CanFilter::IdentifierShort;
struct modm::platform::CanFilter::StandardFilterMask;
struct modm::platform::CanFilter::StandardFilterMaskShort;
struct modm::platform::CanFilter::StandardIdentifier;
struct modm::platform::CanFilter::StandardIdentifierShort;
struct modm::platform::Gpio;

// Function
static uint32_t modm::platform::getUniqueId(uint8_t offset);
void _delay_ms(uint32_t ms);
void _delay_ns(uint32_t ns);
void _delay_us(uint32_t us);

// Enum
enum ErrorCode;
enum class StartupError;

// Typedef
typedef void(* modm::cortex::InterruptHandler) (void))(void);

Dependencies

modm:platform modm_platform modm: platform modm_platform_1_wire_bitbang modm: platform: 1-wire.bitbang modm_platform_1_wire_bitbang->modm_platform modm_platform_adc modm: platform: adc modm_platform_adc->modm_platform modm_platform_can modm: platform: can modm_platform_can->modm_platform modm_platform_can_common modm: platform: can.common modm_platform_can_common->modm_platform modm_platform_clock modm: platform: clock modm_platform_clock->modm_platform modm_platform_clock_cortex modm: platform: clock.cortex modm_platform_clock_cortex->modm_platform modm_platform_core modm: platform: core modm_platform_core->modm_platform modm_platform_dma modm: platform: dma modm_platform_dma->modm_platform modm_platform_fault_cortex modm: platform: fault.cortex modm_platform_fault_cortex->modm_platform modm_platform_gpio modm: platform: gpio modm_platform_gpio->modm_platform modm_platform_gpio_common modm: platform: gpio.common modm_platform_gpio_common->modm_platform modm_platform_i2c modm: platform: i2c modm_platform_i2c->modm_platform modm_platform_i2c_bitbang modm: platform: i2c.bitbang modm_platform_i2c_bitbang->modm_platform modm_platform_id modm: platform: id modm_platform_id->modm_platform modm_platform_random modm: platform: random modm_platform_random->modm_platform modm_platform_spi modm: platform: spi modm_platform_spi->modm_platform modm_platform_spi_bitbang modm: platform: spi.bitbang modm_platform_spi_bitbang->modm_platform modm_platform_timer modm: platform: timer modm_platform_timer->modm_platform modm_platform_uart modm: platform: uart modm_platform_uart->modm_platform modm_platform_uart_spi modm: platform: uart.spi modm_platform_uart_spi->modm_platform