Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MPU9250_SPI
Fork of WearableDevice_Nucleo by
event.h@6:939df52d75c9, 2017-10-12 (annotated)
- Committer:
- gusteibolt
- Date:
- Thu Oct 12 13:26:59 2017 +0000
- Revision:
- 6:939df52d75c9
- Parent:
- 5:18e89e309715
- Child:
- 7:ebaaff27840b
Added event.h and event.cpp for dealing with the event treatments
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gusteibolt | 5:18e89e309715 | 1 | /* |
gusteibolt | 5:18e89e309715 | 2 | * Los Putacos |
gusteibolt | 5:18e89e309715 | 3 | * Copyright (C) 2017, All rights reserved. |
gusteibolt | 5:18e89e309715 | 4 | * ________________________________________ |
gusteibolt | 5:18e89e309715 | 5 | * |
gusteibolt | 5:18e89e309715 | 6 | * Created by: Gustavo Campana, Michael Schmidt, Miguel Lopez |
gusteibolt | 5:18e89e309715 | 7 | * Date: 12-Oct-2017 |
gusteibolt | 5:18e89e309715 | 8 | * Version: V0.1 |
gusteibolt | 5:18e89e309715 | 9 | */ |
gusteibolt | 5:18e89e309715 | 10 | |
gusteibolt | 5:18e89e309715 | 11 | //----------------------------------------------------------------- |
gusteibolt | 5:18e89e309715 | 12 | #ifndef EVENT_H_ |
gusteibolt | 5:18e89e309715 | 13 | #define EVENT_H_ |
gusteibolt | 5:18e89e309715 | 14 | |
gusteibolt | 5:18e89e309715 | 15 | // Your code here! |
gusteibolt | 6:939df52d75c9 | 16 | void print_stinrg(char); |
gusteibolt | 6:939df52d75c9 | 17 | void print_thread(void const); |
gusteibolt | 6:939df52d75c9 | 18 | |
gusteibolt | 6:939df52d75c9 | 19 | void print_stinrg(char c = '*') |
gusteibolt | 6:939df52d75c9 | 20 | { |
gusteibolt | 6:939df52d75c9 | 21 | pc.putc(c); |
gusteibolt | 6:939df52d75c9 | 22 | } |
gusteibolt | 6:939df52d75c9 | 23 | |
gusteibolt | 6:939df52d75c9 | 24 | void print_thread(void const *argv) |
gusteibolt | 6:939df52d75c9 | 25 | { |
gusteibolt | 6:939df52d75c9 | 26 | pc.printf((const char*)argv); |
gusteibolt | 6:939df52d75c9 | 27 | } |
gusteibolt | 6:939df52d75c9 | 28 | |
gusteibolt | 5:18e89e309715 | 29 | |
gusteibolt | 5:18e89e309715 | 30 | |
gusteibolt | 5:18e89e309715 | 31 | #endif // EVENT_H_ |
gusteibolt | 5:18e89e309715 | 32 | //----------------------------------------------------------------- |