button
Dependencies: BMI160 SDFileSystem USBDevice max32630fthr
Fork of MPSMAX by
src/Functions.cpp@2:5767f3f6909f, 2018-05-08 (annotated)
- Committer:
- FaizanAhmad
- Date:
- Tue May 08 13:45:42 2018 +0000
- Revision:
- 2:5767f3f6909f
- Parent:
- 0:769c5a7b3939
\button
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
FaizanAhmad | 0:769c5a7b3939 | 1 | #include <stdlib.h> |
FaizanAhmad | 0:769c5a7b3939 | 2 | #include <string.h> |
FaizanAhmad | 0:769c5a7b3939 | 3 | #include "sc_types.h" |
FaizanAhmad | 0:769c5a7b3939 | 4 | #include "Default.h" |
FaizanAhmad | 0:769c5a7b3939 | 5 | #include "DefaultRequired.h" |
FaizanAhmad | 0:769c5a7b3939 | 6 | #include "main.h" |
FaizanAhmad | 0:769c5a7b3939 | 7 | |
FaizanAhmad | 0:769c5a7b3939 | 8 | extern void defaultIface_menu(const Default* handle, const sc_integer select1) |
FaizanAhmad | 0:769c5a7b3939 | 9 | { |
FaizanAhmad | 0:769c5a7b3939 | 10 | PrintStatus_Serial(1); |
FaizanAhmad | 0:769c5a7b3939 | 11 | } |
FaizanAhmad | 0:769c5a7b3939 | 12 | extern void defaultIface_function(const Default* handle, const sc_integer select2) |
FaizanAhmad | 0:769c5a7b3939 | 13 | { |
FaizanAhmad | 0:769c5a7b3939 | 14 | PrintStatus_Serial(2); |
FaizanAhmad | 0:769c5a7b3939 | 15 | } |
FaizanAhmad | 0:769c5a7b3939 | 16 | extern void defaultIface_execute(const Default* handle) |
FaizanAhmad | 0:769c5a7b3939 | 17 | { |
FaizanAhmad | 0:769c5a7b3939 | 18 | PrintStatus_Serial(3); |
FaizanAhmad | 0:769c5a7b3939 | 19 | } |
FaizanAhmad | 0:769c5a7b3939 | 20 | extern void defaultIfaceFunc_ready(const Default* handle) |
FaizanAhmad | 0:769c5a7b3939 | 21 | { |
FaizanAhmad | 0:769c5a7b3939 | 22 | PrintStatus_Serial(4); |
FaizanAhmad | 0:769c5a7b3939 | 23 | } |
FaizanAhmad | 0:769c5a7b3939 | 24 | extern void defaultIfaceFunc_active(const Default* handle) |
FaizanAhmad | 0:769c5a7b3939 | 25 | { |
FaizanAhmad | 0:769c5a7b3939 | 26 | PrintStatus_Serial(5); |
FaizanAhmad | 0:769c5a7b3939 | 27 | } |
FaizanAhmad | 0:769c5a7b3939 | 28 | extern void defaultIfaceFunc_alarm(const Default* handle) |
FaizanAhmad | 0:769c5a7b3939 | 29 | { |
FaizanAhmad | 0:769c5a7b3939 | 30 | PrintStatus_Serial(6); |
FaizanAhmad | 0:769c5a7b3939 | 31 | } |
FaizanAhmad | 0:769c5a7b3939 | 32 | extern void defaultIfaceFunc_moveDownAct(const Default* handle) |
FaizanAhmad | 0:769c5a7b3939 | 33 | { |
FaizanAhmad | 0:769c5a7b3939 | 34 | PrintStatus_Serial(7); |
FaizanAhmad | 0:769c5a7b3939 | 35 | } |
FaizanAhmad | 0:769c5a7b3939 | 36 | |
FaizanAhmad | 0:769c5a7b3939 | 37 | extern void defaultIfaceFunc_moveUpAct(const Default* handle) |
FaizanAhmad | 0:769c5a7b3939 | 38 | { |
FaizanAhmad | 0:769c5a7b3939 | 39 | PrintStatus_Serial(8); |
FaizanAhmad | 0:769c5a7b3939 | 40 | } |
FaizanAhmad | 0:769c5a7b3939 | 41 | extern void defaultIfaceFunc_return(const Default* handle) |
FaizanAhmad | 0:769c5a7b3939 | 42 | { |
FaizanAhmad | 0:769c5a7b3939 | 43 | PrintStatus_Serial(9); |
FaizanAhmad | 0:769c5a7b3939 | 44 | } |
FaizanAhmad | 0:769c5a7b3939 | 45 | extern void default_setTimer(Default* handle, const sc_eventid evid, const sc_integer time_ms, const sc_boolean periodic) |
FaizanAhmad | 0:769c5a7b3939 | 46 | { |
FaizanAhmad | 0:769c5a7b3939 | 47 | |
FaizanAhmad | 0:769c5a7b3939 | 48 | } |
FaizanAhmad | 0:769c5a7b3939 | 49 | |
FaizanAhmad | 0:769c5a7b3939 | 50 | extern void default_unsetTimer(Default* handle, const sc_eventid evid) |
FaizanAhmad | 0:769c5a7b3939 | 51 | { |
FaizanAhmad | 0:769c5a7b3939 | 52 | } |