This program displays heart rate and time between heart beats on LCD, prints it to a USB serial port, print it to a bluetooth serial port and store it on a USB mass storage device. The program has two interrupt routines: 1.Every 1ms a counter is increased with one, 2. On every heart beat the counter is value copied. In the main loop the beats per minute are calculated. Ext.Modules:- Polar RMCM-01 heart rate module connected to pin8. - 2x16 LCD - a RF-BT0417CB bluetooth serial device connected to p27 and p28 - an USB mass storage device

Dependencies:   TextLCD mbed

USBHostLite/usbhost_err.h

Committer:
jrsikken
Date:
2011-01-04
Revision:
2:e660e68a91fa
Parent:
1:8b001f936bb0

File content as of revision 2:e660e68a91fa:

/*
**************************************************************************************************************
*                                                 NXP USB Host Stack
*
*                                     (c) Copyright 2008, NXP SemiConductors
*                                     (c) Copyright 2008, OnChip  Technologies LLC
*                                                 All Rights Reserved
*
*                                                  www.nxp.com
*                                               www.onchiptech.com
*
* File           : usbhost_err.h
* Programmer(s)  : Ravikanth.P
* Version        :
*
**************************************************************************************************************
*/

#ifndef  USBHOST_ERR_H
#define  USBHOST_ERR_H


/*
**************************************************************************************************************
*                                        GENERAL DEFINITIONS
**************************************************************************************************************
*/

#define  OK                        0
#define  MATCH_FOUND               0

/*
**************************************************************************************************************
*                                HOST CONTROLLER SPECIFIC ERROR CODES
**************************************************************************************************************
*/

#define  ERR_TD_FAIL              -1

/*
**************************************************************************************************************
*                                  MASS STORAGE SPECIFIC ERROR CODES
**************************************************************************************************************
*/

#define  ERR_MS_CMD_FAILED       -10
#define  ERR_BAD_CONFIGURATION   -11
#define  ERR_NO_MS_INTERFACE     -12

/*
**************************************************************************************************************
*                                      FAT SPECIFIC ERROR CODES
**************************************************************************************************************
*/

#define  MATCH_NOT_FOUND         -20
#define  ERR_FAT_NOT_SUPPORTED   -21
#define  ERR_OPEN_LIMIT_REACHED  -22
#define  ERR_INVALID_BOOT_SIG    -23
#define  ERR_INVALID_BOOT_SEC    -24
#define  ERR_ROOT_DIR_FULL       -25

#endif