ObjectFollower

Dependencies:   TPixy-Interface

Fork of PlayBack by ECE4333 - 2018 - Ahmed & Brandon

Revision:
7:73fd05fe556a
Parent:
0:a355e511bc5d
Child:
8:a0890fa79084
--- a/ExternalInterruptThread.cpp	Sat Feb 10 19:35:21 2018 +0000
+++ b/ExternalInterruptThread.cpp	Thu Feb 15 01:15:26 2018 +0000
@@ -12,14 +12,23 @@
 DigitalOut led2(LED2);
 
 
+/*******************************************************************************
+* @brief    This is the initialization function for ExternalInterruptthread
+* @param    none
+* @return   none
+*******************************************************************************/
 void ExternalInterruptThreadInit()
 {
     Bumper.rise(&ExtInterruptISR); // Attach the address of the interrupt handler to the rising edge of Bumper
     ExtInterruptId = osThreadCreate(osThread(ExtInterruptThread), NULL);            
 }
 
-
-// ******** External Interrupt Thread ********
+ 
+/*******************************************************************************
+* @brief    ******** External Interrupt Thread ********
+* @param    none
+* @return   none
+*******************************************************************************/
 void ExtInterruptThread(void const *argument)
 {
     while (true) {
@@ -29,7 +38,11 @@
 }
 
 
-// ******** External Interrupt Handler ********
+/*******************************************************************************
+* @brief    ******** External Interrupt ISR ********
+* @param    none
+* @return   none
+*******************************************************************************/
 void ExtInterruptISR(void)
 {
     osSignalSet(ExtInterruptId,0x01); // Send signal to the thread with ID, ExtInterruptId, i.e., ExtInterruptThread.