Skip to content

cannot find value RTS_PULSE_WIDTH in this scope #2

@wangzhankun

Description

@wangzhankun

我已经配置好rust的环境了,当执行just run的时候部分报错如下:

   Compiling user_lib v0.1.0 (/root/rv-n-ext-impl/rCore-N/user)
error[E0425]: cannot find value `RTS_PULSE_WIDTH` in this scope
   --> src/user_uart.rs:279:50
    |
279 |                         if self.rx_fifo_count == RTS_PULSE_WIDTH {
    |                                                  ^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `RTS_PULSE_WIDTH` in this scope
   --> src/user_uart.rs:281:57
    |
281 |                         } else if self.rx_fifo_count == RTS_PULSE_WIDTH * 2 {
    |                                                         ^^^^^^^^^^^^^^^ not found in this scope

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions