Pārlūkot izejas kodu

firmware: Make modules public to enable documentation warnings.

Mathias Gottschlag 5 gadus atpakaļ
vecāks
revīzija
4d2ffd7838

+ 1
- 0
hackamp/firmware/src/halext/mod.rs Parādīt failu

@@ -1 +1,2 @@
1
+//! Hardware drivers missing in the HAL.
1 2
 #![warn(missing_docs)]

+ 5
- 4
hackamp/firmware/src/main.rs Parādīt failu

@@ -8,10 +8,11 @@ use panic_semihosting as _;
8 8
 use audio_buffer::AudioBuffer;
9 9
 use pins::Pins;
10 10
 
11
-mod audio_buffer;
12
-mod halext;
13
-mod mixer;
14
-mod pins;
11
+// Remove "pub" to check whether there is any dead code.
12
+pub mod audio_buffer;
13
+pub mod halext;
14
+pub mod mixer;
15
+pub mod pins;
15 16
 
16 17
 #[rtic::app(device = stm32f4xx_hal::stm32, peripherals = true)]
17 18
 const APP: () = {

+ 1
- 0
hackamp/firmware/src/mixer.rs Parādīt failu

@@ -1 +1,2 @@
1
+//! Functionality to mix and forward different audio streams.
1 2
 #![warn(missing_docs)]

+ 1
- 0
hackamp/firmware/src/pins.rs Parādīt failu

@@ -1,3 +1,4 @@
1
+//! GPIO pin configuration.
1 2
 #![warn(missing_docs)]
2 3
 
3 4
 /// Type which contains all GPIO pins.

Notiek ielāde…
Atcelt
Saglabāt