| 62 | } |
| 63 | |
| 64 | static rt_err_t reset_simple_reset(struct rt_reset_control *rstc) |
| 65 | { |
| 66 | rt_err_t err; |
| 67 | struct reset_simple *rsts = raw_to_reset_simple(rstc); |
| 68 | |
| 69 | if (!rsts->reset_us) |
| 70 | { |
| 71 | return -RT_ENOSYS; |
| 72 | } |
| 73 | |
| 74 | if ((err = reset_simple_assert(rstc))) |
| 75 | { |
| 76 | return err; |
| 77 | } |
| 78 | |
| 79 | rt_hw_us_delay(rsts->reset_us + (rsts->reset_us >> 1)); |
| 80 | |
| 81 | return reset_simple_deassert(rstc); |
| 82 | } |
| 83 | |
| 84 | static int reset_simple_status(struct rt_reset_control *rstc) |
| 85 | { |
nothing calls this directly
no test coverage detected