aboutsummaryrefslogtreecommitdiffhomepage
path: root/AT91SAM7S256/Source/c_ioctrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'AT91SAM7S256/Source/c_ioctrl.c')
-rw-r--r--AT91SAM7S256/Source/c_ioctrl.c78
1 files changed, 0 insertions, 78 deletions
diff --git a/AT91SAM7S256/Source/c_ioctrl.c b/AT91SAM7S256/Source/c_ioctrl.c
deleted file mode 100644
index daab322..0000000
--- a/AT91SAM7S256/Source/c_ioctrl.c
+++ /dev/null
@@ -1,78 +0,0 @@
-//
-// Date init 14.12.2004
-//
-// Revision date $Date:: 14-11-07 12:40 $
-//
-// Filename $Workfile:: c_ioctrl.c $
-//
-// Version $Revision:: 1 $
-//
-// Archive $Archive:: /LMS2006/Sys01/Main_V02/Firmware/Source/c_ioct $
-//
-// Platform C
-//
-
-
-#include "stdconst.h"
-#include "modules.h"
-#include "c_ioctrl.iom"
-#include "c_ioctrl.h"
-#include "d_ioctrl.h"
-
-static IOMAPIOCTRL IOMapIOCtrl;
-static VARSIOCTRL VarsIOCtrl;
-
-const HEADER cIOCtrl =
-{
- 0x00060001L,
- "IOCtrl",
- cIOCtrlInit,
- cIOCtrlCtrl,
- cIOCtrlExit,
- (void *)&IOMapIOCtrl,
- (void *)&VarsIOCtrl,
- (UWORD)sizeof(IOMapIOCtrl),
- (UWORD)sizeof(VarsIOCtrl),
- 0x0000 //Code size - not used so far
-};
-
-
-void cIOCtrlInit(void* pHeader)
-{
- dIOCtrlSetPower(0);
- dIOCtrlInit();
-}
-
-
-void cIOCtrlCtrl(void)
-{
- switch(IOMapIOCtrl.PowerOn)
- {
- case POWERDOWN:
- {
- dIOCtrlSetPower((POWERDOWN>>8));
- }
- break;
- case BOOT:
- {
- dIOCtrlSetPower((UBYTE)(BOOT>>8));
- dIOCtrlSetPwm((UBYTE)BOOT);
- }
- break;
- default:
- {
- /* No need to change the default value */
- /* if value is boot or reset it should come */
- /* back from reset - setting the value to 0 */
- }
- break;
- }
- dIOCtrlTransfer();
-}
-
-
-void cIOCtrlExit(void)
-{
- dIOCtrlExit();
-}
-