1087 views|5 replies

6378

Posts

8

Resources
The OP
 

Read the check-in terminal: Chapters 25-27 - "RT-Thread Device Driver Development Guide" [Copy link]

Dear reading friends @nanruo @chrisrh @wakojosin @xiaolinen @damiaa

The reading check-in period ends on October 7th, and everyone can arrange their own progress.

The terminal was released in advance to celebrate the double holidays. The following questions are expected to be answered after reading Chapters 25-27 of the "RT-Thread Device Driver Development Guide".

1.USB device drivers are advanced drivers. Developing such device drivers requires developers to be familiar with the corresponding peripheral protocols. When developing USBD device drivers, it is not necessary to implement all the operation methods provided by the driver framework. Some operation methods may not be implemented. For example, which ones?
2.CAN interrupt functions do not return values. In the process of driver writing, according to different interrupt events, event
3.Which functions need to be called when entering and exiting interrupts?

This post is from Embedded System
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle

Latest reply

1. Configure, suspend, and wake up 2. RT_CAN_EVENT_RX_IND(01); RT_CAN_EVENT_TX_DONE(02); RT_CAN_EVENT_TX_FAIL(03); RT_CAN_EVENT_RX_TIMEOUT(05) ;   Details Published on 2023-10-16 09:32
Personal signature微信搜索公众号“EEWORLDBBS”快去添加关注吧!

6064

Posts

4

Resources
2
 
This post was last edited by damiaa on 2023-9-25 21:00

1.USB device drivers are advanced drivers. To develop such device drivers, developers must be familiar with the corresponding peripheral protocols. When developing USBD device drivers, it is not necessary to implement all the operation methods provided by the driver framework. Some operation methods may not be implemented. For example, which ones?

set_config

Suspended

wakeup


2. The CAN interrupt function does not have a return value. In the process of driver writing, according to different interrupt events, event

RT_CAN_EVENT_R︸_IND 01

RT_CAN_EVENT_TX_DONE 02

RT_CAN_EVENT_TX_FAIL 03

RT_CAN_EVENT_RX_TIMEOUT 05

RT_CAN_EVENT_RXOF_IND 06

 
3. Which functions need to be called when entering and exiting an interrupt?

Call interrupt entry rt_interrupt_enter();

and exit function rt_interrupt_leave();

This post is from Embedded System
 
 

81

Posts

3

Resources
3
 

1.USB device drivers are advanced drivers. To develop such device drivers, developers must be familiar with the corresponding peripheral protocols. When developing USBD device drivers, it is not necessary to implement all the operation methods provided by the driver framework. Some operation methods may not be implemented. For example, which ones?

set_config,suspend,wakeup
2.CAN interrupt function does not have a return value. In the process of driver writing, according to different interrupt events, event

Take RT_CAN_EVENT_RX_IND/TX_DONE/TX_FAIL/RX_TIMEOUT/RXOF_IND
3. Which functions need to be called when entering and exiting the interrupt?

Need to call rt_interrupt_enter and rt_interrupt_leave

This post is from Embedded System
 
 
 

91

Posts

0

Resources
4
 

1. The three operations of set_config, suspend, and wakeup may not be implemented

2. RT_CAN_EVENT_RX_IND; RT_CAN_EVENT_TX_DONE; RT_CAN_EVENT_TX_FAIL; RT_CAN_EVENT_RX_TIMEOUT; RT_CAN_EVENT_RXOF_IND;

3. When entering and exiting an interrupt, you need to call rt_interrupt_enter() and rt_interrupt_leave()

This post is from Embedded System
 
 
 

174

Posts

1

Resources
5
 

1.USB device drivers are advanced drivers. To develop such device drivers, developers must be familiar with the corresponding peripheral protocols. When developing USBD device drivers, it is not necessary to implement all the operation methods provided by the driver framework. Some operation methods may not be implemented. For example, which ones?

set_config configures USBD device, suspend suspends USBD device, wakeup wakes up USBD device

2. The CAN interrupt function does not have a return value. In the process of driver writing, according to different interrupt events, event

The following values are possible: 0x01/*receive complete*/, 0x02/*send complete*/, 0x03/*send failed*/, 0x05/*receive timeout*/, 0x06/*receive overflow*/

3. Which functions need to be called when entering and exiting an interrupt?

When entering and exiting an interrupt, you need to call the interrupt entry function rt_interrupt_enter and the interrupt exit function rt_interrupt_leave.

2023.10.01, happy National Day holiday~

This post is from Embedded System
 
 
 

12

Posts

0

Resources
6
 

1. Configure, suspend, and wake up

2. RT_CAN_EVENT_RX_IND(01); RT_CAN_EVENT_TX_DONE(02); RT_CAN_EVENT_TX_FAIL(03); RT_CAN_EVENT_RX_TIMEOUT(05)
;

This post is from Embedded System
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list