SWEN-340

Non-Blocking In-class Activity

Overview

This is an in-class activity to explore USART and Blocking vs Non-Blocking

Setup

    Reference: Nucleo Reference Manual (Pages 1339-1344)

    NOTE We will use same FirstTimer project that you worked on previously, using new demo.c file

    Step 1: Download demo-non-blocking.c

    Step 2: Rename it to demo.c

    Step 3: Make a copy of your FirstTimer project. (call the new project non-blocking)

    Step 4: copy the new demo.c to non-blocking project (replacing existing demo.c file)

    Step 5: Update UART.h with the new non-blocking UART_Read_nonblocking function prototype.

    Step 6: Update UART.c with the new non-blocking UART_Read_nonblocking function.

Submission

Submit the updated UART.h, UART.c and demo.c files to the MyCourses assignment folder "in-class non-blocking".
Please do NOT put your file in a zip file.

Grading

NOTE -- This is graded based on a reasonable effort. You will
get full credit if you have code that compiles and runs (without any warnings).

This is an in-class activity and you are expected to do most of the work
during the class.