safety.c File Reference


Detailed Description

Safety routines.

Application note:
AVR453: Smart Battery Reference Design
Documentation:
For comprehensive code documentation, supported compilers, compiler settings and supported devices see readme.html
Author:
Atmel Corporation: http://www.atmel.com
Support email: avr@atmel.com
Original author: Rob G. Fries - Apt Inc.
Revision
URL
Date

Definition in file safety.c.

#include "pack.h"
#include "safety.h"
#include "iom406.h"
#include "pwrmgmt.h"

Go to the source code of this file.

Defines

#define MODULE_SAFETY

Functions

__interrupt void HWP_int (void)
void HWProtectinit (void)
void SafetyScan (void)


Define Documentation

#define MODULE_SAFETY

Definition at line 25 of file safety.c.


Function Documentation

__interrupt void HWP_int ( void   ) 

Definition at line 57 of file safety.c.

References DoShutdown(), SHUTDOWN_REASON_CHARGE_OVERCURRENT, SHUTDOWN_REASON_DISCHARGE_OVERCURRENT, SHUTDOWN_REASON_SHORTCIRCUIT, and SHUTDOWN_REASON_UNDERVOLTAGE.

void HWProtectinit ( void   ) 

Definition at line 34 of file safety.c.

Referenced by InitAll().

void SafetyScan ( void   ) 

Todo:
Should be called periodically to double-check all h/w config & safety parameters

Todo:
You can add more safety-monitoring code here.

Definition at line 79 of file safety.c.


Generated on Mon Nov 12 15:59:59 2007 for AVR453 Smart Battery Reference Design by  doxygen 1.5.3