Template project for University of York ELE00032C Lab 3 tasks

Dependencies:   UoY-serial

Committer:
ajp109
Date:
Fri Dec 17 14:48:48 2021 +0000
Revision:
3:272ec1db47dc
Parent:
2:64d80449da6d
Pull updates for 2022

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ajp109 0:77209603a6fe 1 #include "mbed.h"
ajp109 0:77209603a6fe 2
ajp109 2:64d80449da6d 3 void test() {
ajp109 2:64d80449da6d 4 int count = 3;
ajp109 2:64d80449da6d 5 printf("In test(), count = %d\r\n", count);
ajp109 2:64d80449da6d 6 }
ajp109 2:64d80449da6d 7
ajp109 0:77209603a6fe 8 int main()
ajp109 0:77209603a6fe 9 {
ajp109 2:64d80449da6d 10 int count = 5;
ajp109 0:77209603a6fe 11
ajp109 2:64d80449da6d 12 test();
ajp109 2:64d80449da6d 13
ajp109 2:64d80449da6d 14 printf("In main(), count = %d\r\n", count);
ajp109 0:77209603a6fe 15
ajp109 0:77209603a6fe 16 // Do nothing, forever...
ajp109 0:77209603a6fe 17 while (true);
ajp109 0:77209603a6fe 18 }