瀏覽代碼

firmware: Make modules public to enable documentation warnings.

Mathias Gottschlag 5 年之前
父節點
當前提交
4d2ffd7838
共有 4 個文件被更改,包括 8 次插入4 次删除
  1. 1
    0
      hackamp/firmware/src/halext/mod.rs
  2. 5
    4
      hackamp/firmware/src/main.rs
  3. 1
    0
      hackamp/firmware/src/mixer.rs
  4. 1
    0
      hackamp/firmware/src/pins.rs

+ 1
- 0
hackamp/firmware/src/halext/mod.rs 查看文件

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

+ 5
- 4
hackamp/firmware/src/main.rs 查看文件

@@ -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 查看文件

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

+ 1
- 0
hackamp/firmware/src/pins.rs 查看文件

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

Loading…
取消
儲存