Function ti_sbl::invoke_bootloader [−][src]
pub fn invoke_bootloader<P>(
port: &mut P,
inverted: bool,
bootloader_active_high: bool
) -> Result<()> where
P: SerialPort,
Use the DTR and RTS lines to control bootloader and the !RESET pin. This can automatically invoke the bootloader without the user having to toggle any pins.
Parameters:
inverted
: if it’sfalse
(default) DTR is connected to the bootloader pin, RTS connnected to !RESET. If it’strue
it’s the other way aroundbootloader_active_high
: whether the bootloader pin used is active low or active high.