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
USBHostLite/usbhost_cpu.h
- Committer:
- jrsikken
- Date:
- 2010-11-27
- Revision:
- 1:8b001f936bb0
File content as of revision 1:8b001f936bb0:
/* ************************************************************************************************************** * 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_cpu.h * Programmer(s) : Ravikanth.P * Version : * ************************************************************************************************************** */ #ifndef USBHOST_CPU_H #define USBHOST_CPU_H /* ************************************************************************************************************** * TYPE DEFINITIONS OF DATA TYPES ************************************************************************************************************** */ typedef unsigned int USB_INT32U; typedef signed int USB_INT32S; typedef unsigned short USB_INT16U; typedef signed short USB_INT16S; typedef unsigned char USB_INT08U; typedef signed char USB_INT08S; #endif