modm API documentation
modm::platform::GeneratorConfiguration Struct Reference

Public Attributes

ClockSource source {}
 
uint32_t divider = 1
 
bool gpioOutputEnabled = false
 

Member Data Documentation

uint32_t modm::platform::GeneratorConfiguration::divider = 1

The clock will be divided by the selected divider. Normal integer division and division by 2^(N+1) is supported. The registers will be automatically configured in the appropriate mode for division by powers of 2.

Warning
Not all generator instances support the full 16 bit divider value range. This is currently not checked yet at compile-time. Only the maximum limits are verified.

The documentation for this struct was generated from the following file: