https://github.com/peronchichino/fhtw_bic_mcsd_assign2
https://github.com/peronchichino/fhtw_bic_mcsd_assign2
c l432kc nucleo nucleo-board stm32
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/peronchichino/fhtw_bic_mcsd_assign2
- Owner: Peronchichino
- Created: 2023-04-05T10:34:34.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-05T10:41:53.000Z (about 2 years ago)
- Last Synced: 2025-01-03T12:44:28.409Z (6 months ago)
- Topics: c, l432kc, nucleo, nucleo-board, stm32
- Language: C
- Homepage:
- Size: 4.56 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FHTW_BIC_MCSD_Assign2 Description:
Timer Task
The purpose of this task is to become familiar with the concept of interrupts as well as timers and become aware of the functional limitations due to certain implementations.
Task Description
Based on the STM32L Getting Started Project evaluate and add the following functionality:Write a function _tim_timeout_blocking() that will return after a specified timeout time provided as parameter to the function in a suitable way. The function shall be implemented as a blocking function, i.e., the system shall be put into a sleep mode until the timeout time elapses.
Write a function _tim_timeout_nonblocking_with_callback() that will return after a specified timeout time provided as parameter to the function in a suitable way. The function shall be implemented as a non-blocking function, i.e., the function shall return immediately. After the timeout elapses a callback function provided via a function pointer argument shall be invoked.
Create an simple application in your main() function that tests these functions.
# Points:
10/10