浏览代码

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
+//! Hardware drivers missing in the HAL.
1
 #![warn(missing_docs)]
2
 #![warn(missing_docs)]

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

8
 use audio_buffer::AudioBuffer;
8
 use audio_buffer::AudioBuffer;
9
 use pins::Pins;
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
 #[rtic::app(device = stm32f4xx_hal::stm32, peripherals = true)]
17
 #[rtic::app(device = stm32f4xx_hal::stm32, peripherals = true)]
17
 const APP: () = {
18
 const APP: () = {

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

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

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

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

正在加载...
取消
保存