update num groups definition

This commit is contained in:
Karun 2024-04-22 13:08:21 -04:00
parent 4bf2178de7
commit 3cd6232d43

View File

@ -13,6 +13,11 @@ use crate::pac::tsc::Tsc as Regs;
use crate::rcc::RccPeripheral;
use crate::{peripherals, Peripheral};
#[cfg(tsc_v1)]
const TSC_NUM_GROUPS: u32 = 6;
#[cfg(tsc_v2)]
const TSC_NUM_GROUPS: u32 = 7;
#[cfg(tsc_v3)]
const TSC_NUM_GROUPS: u32 = 8;
/// Error type defined for TSC