Skip to content
This repository was archived by the owner on Jul 6, 2019. It is now read-only.

Commit 6de339f

Browse files
committed
Added more apidocs
1 parent 107e7fa commit 6de339f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/hal/lpc11xx/syscon.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ use super::regs;
2323
/// Interrupt vectors source.
2424
#[derive(PartialEq, Debug)]
2525
pub enum ISRLocation {
26+
/// ISR mapped to bootloader.
2627
Bootloader = 0,
28+
/// ISR mapped to RAM.
2729
RAM = 1,
30+
/// ISR mapped to Flash ROM.
2831
Flash = 2
2932
}
3033

@@ -48,9 +51,13 @@ pub fn set_isr_location(loc: ISRLocation) {
4851

4952
/// Peripherals that are soft-resettable via reset_peripheral.
5053
pub enum ResetPeripheral {
54+
/// Reset SPI0.
5155
SPI0,
56+
/// Reset SPI1.
5257
SPI1,
58+
/// Reset I2C.
5359
I2C,
60+
/// Reset CAN.
5461
CAN,
5562
}
5663

@@ -84,6 +91,7 @@ pub unsafe fn reset_peripheral(peripheral: ResetPeripheral) {
8491
}
8592
}
8693

94+
/// Initialises system clock to specified boot configuration.
8795
pub fn init_system_clock() {
8896
regs::SYSCON().pdruncfg
8997
.set_sysosc_pd(regs::SYSCON_pdruncfg_sysosc_pd::POWERED);

0 commit comments

Comments
 (0)