Thread signal operating method and system of embedded real-time operation system
A real-time operating system and operating system technology, applied in the thread signal operation method and system field of embedded real-time operating system, can solve the problems of chip area and power consumption expansion, inflexibility, low implementation efficiency, etc., and reduce the superposition of hardware modules. , the effect of improving processing efficiency and reducing overhead
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] Such as figure 1 Shown, the thread signal operating system of a kind of embedded real-time operating system, comprises main control module and PC, and the core of described main control module is MCU chip, comprises serial port, USB port, and described serial port communicates with the outside world as default communication equipment Communication, the USB port is connected to the USB port of the PC, and the main control module also includes an actual thread signal waiting module, an actual thread signal setting module, a system service call interrupt module, a suspendable system call interrupt module, and an actual thread signal waiting module. To add a waiting mark to the running first task thread or the second task thread, suspend the operation of the first task thread or the second task thread and put it in the waiting queue, and suspend the system call interrupt module for interrupting the queue from the interrupt queue Get data; Execute the corresponding processin...
Embodiment 2
[0032] On the basis of the above-mentioned embodiments, as a further preferred solution, a thread signal operation method of an embedded real-time operating system, based on the above-mentioned thread signal operating system, includes the following steps,
[0033] Step 1: macro-defining thread signals, including the first task thread signal, the second task thread signal and the third task thread signal;
[0034] Step 2: Set the waiting thread signal for the first task. In this example, the thread signal is 1_SIGNAL. At this time, the first task enters the delay queue; until the serial port sends the thread signal 1_SIGNAL, it enters the ready queue, and the system schedules to complete the follow-up Execution of the module; set the waiting thread signal for the second task. In this case, the thread signal is 2_SIGNAL. At this time, the second task enters the delay queue; until the third task sends the thread signal 2_SIGNAL, it enters the ready queue and is processed by the sy...
Embodiment 3
[0041] On the basis of the foregoing embodiments, as a further preferred solution: as Figure 2 to Figure 4 As shown, the MCU chip selects the KL36 board kit. The MCU of this kit is the Kinetis MKL36Z64VLH4 with ARM Cortex-M0+ core. The chip is a 64-pin LQFP package, 64KB Flash, including SysTick timer, GPIO, serial port, A / D, D / A, I2C, SPI, CAN, USB; and test hardware and MUC evaluation board, the serial port is connected to the MUC evaluation board, the test hardware is connected to the MUC evaluation board and controlled by the main control module; the serial port is used as the default communication device To communicate with the outside world, connect the "USB port" of the "USB-MicroUSB serial cable" to the USB port of the PC, and connect the MicroUSB end of the serial cable to the MicroUSB port on the AHL-IOT-GEC evaluation board (corresponding to UART_2, which is served by PTE16 and PTE17) serial port transceiver pins); the test hardware is tri-color light hardware, con...
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