Automatic detection method and device of SDIO interface peripheral
A detection method and technology of detection device, which are applied in the fields of instruments, electrical digital data processing, etc., can solve problems such as lack of implementation methods
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0063] Embodiment 1. An automatic detection method for SDIO interface peripherals.
[0064] In order to automatically detect SDIO interface peripherals in an embedded system, the embodiment of the present invention provides an automatic detection scheme for SDIO interface peripherals by using two arbitrary general-purpose GPIOs on a common embedded processor platform.
[0065] Combine below figure 1 The method of the first embodiment will be described in detail.
[0066] figure 1 It is a schematic flow chart of the automatic detection method of the SDIO interface peripherals of the first embodiment of the present invention, as figure 1 As shown, the embodiment of the present invention includes an embedded processor and SDIO interface peripherals, wherein GPIO1 and GPIO2 in the embedded processor are shorted together, comprising the following steps:
[0067] Step S101, setting the GPIO1 and GPIO2 as output and input respectively, wherein the initialization state of GPIO1 is ...
Embodiment 2
[0078] Embodiment 2, an automatic detection method for SDIO interface peripherals.
[0079] Combine below figure 2 The method of this embodiment will be described in detail.
[0080] figure 2 It is a schematic flow chart of the automatic detection method of the SDIO interface peripherals of the second embodiment of the present invention, as figure 2 As shown, the method of the present embodiment includes:
[0081] Step S201 , in the initialization stage, GPIO1 and GPIO2 are respectively set as output and input, wherein the initialization state of GPIO1 is high level.
[0082] Step S202, registering the SDIO device, adding a driver interface for detection of plug-in and pull-out states, and adding an operation of reading the level status of GPIO2 in the driver interface implementation function.
[0083] Step S203, the system starts.
[0084] Step S204 , the driver of the SDIO interface peripheral is loaded, and the GPIO2 is detected to be at a high level through the cor...
Embodiment 3
[0094] Embodiment 3, an automatic detection device for SDIO interface peripherals.
[0095] On the hardware, the imx515 embedded processor of Freescale and the peripheral of the SDIO interface are used as the core, and the two GPIOs in the embedded processor SOC (System on Chip, chip-level system) are short-circuited together.
[0096] Combine below image 3 The method of this embodiment will be described in detail.
[0097] image 3 It is a schematic diagram of an automatic detection device for SDIO interface peripherals in Embodiment 3 of the present invention, as image 3 As shown, the device of this embodiment includes: SOC main controller 301, SDIO interface peripherals 302, wherein said SOC main controller 301 has at least two general-purpose GPIO ports, respectively 303GPIO1 and 304GPIO2, said embedded processing The 303GPIO1 and 304GPIO2 in the device are shorted together; also includes: an initialization module, which is suitable for setting the 303GPIO1 and 304GPI...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com