summaryrefslogtreecommitdiff
path: root/digital/beacon/src/Bitcloud_stack/Components/BSP/MESHBEAN/include/bspTaskManager.h
diff options
context:
space:
mode:
authorFlorent Duchon2012-03-18 12:22:02 +0100
committerFlorent Duchon2012-03-18 16:30:37 +0100
commita54ad9edce697133a024aff096e50f7e4f389d5b (patch)
tree9b87c5f8fce3fc0127a2e36b8a809508c1a3298b /digital/beacon/src/Bitcloud_stack/Components/BSP/MESHBEAN/include/bspTaskManager.h
parent8ac7f52728a8ec2a09a6eeebc3cf5d4afff9b485 (diff)
digital/beacon: import Zigbit stack (bitcloud) & avr sources
Diffstat (limited to 'digital/beacon/src/Bitcloud_stack/Components/BSP/MESHBEAN/include/bspTaskManager.h')
-rw-r--r--digital/beacon/src/Bitcloud_stack/Components/BSP/MESHBEAN/include/bspTaskManager.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/digital/beacon/src/Bitcloud_stack/Components/BSP/MESHBEAN/include/bspTaskManager.h b/digital/beacon/src/Bitcloud_stack/Components/BSP/MESHBEAN/include/bspTaskManager.h
new file mode 100644
index 00000000..a2198513
--- /dev/null
+++ b/digital/beacon/src/Bitcloud_stack/Components/BSP/MESHBEAN/include/bspTaskManager.h
@@ -0,0 +1,60 @@
+/**************************************************************************//**
+\file bspTaslManager.h
+
+\brief Declarations of enums and functions of BSP task manager.
+
+\author
+ Atmel Corporation: http://www.atmel.com \n
+ Support email: avr@atmel.com
+
+ Copyright (c) 2008-2011, Atmel Corporation. All rights reserved.
+ Licensed under Atmel's Limited License Agreement (BitCloudTM).
+
+\internal
+ History:
+ 29/05/07 E. Ivanov - Created
+*******************************************************************************/
+
+#ifndef _BSPTASKHANDLER_H
+#define _BSPTASKHANDLER_H
+
+/******************************************************************************
+ Includes section
+******************************************************************************/
+// \cond
+#include <types.h>
+#include <taskManager.h>
+// \endcond
+
+/******************************************************************************
+ Define(s) section
+******************************************************************************/
+enum
+{
+ BSP_BUTTONS = (uint8_t)1 << 0,
+ BSP_TEMPERATURE = (uint8_t)1 << 1,
+ BSP_LIGHT = (uint8_t)1 << 2,
+ BSP_BATTERY = (uint8_t)1 << 3,
+};
+
+/******************************************************************************
+ External variables section
+******************************************************************************/
+extern volatile uint8_t bspTaskFlags;
+
+/******************************************************************************
+ Inline static functions section
+******************************************************************************/
+/***************************************************************************//**
+\brief posting bsp task for task manager.
+\param[in]
+ flag - task number
+*******************************************************************************/
+INLINE void bspPostTask(uint8_t flag)
+{
+ bspTaskFlags |= flag;
+ SYS_PostTask(BSP_TASK_ID);
+}
+
+#endif /* _BSPTASKHANDLER_H */
+// eof bspTaskManager.h