Function drone_cortexm::swo::update_prescaler[][src]

pub fn update_prescaler(swoscaler: u32)

Updates the SWO prescaler register.

Examples

use drone_core::log;
use drone_cortexm::swo;

swo::update_prescaler(72_000_000 / log::baud_rate!() - 1);