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
usbhost_cpu.h
00001 /* 00002 ************************************************************************************************************** 00003 * NXP USB Host Stack 00004 * 00005 * (c) Copyright 2008, NXP SemiConductors 00006 * (c) Copyright 2008, OnChip Technologies LLC 00007 * All Rights Reserved 00008 * 00009 * www.nxp.com 00010 * www.onchiptech.com 00011 * 00012 * File : usbhost_cpu.h 00013 * Programmer(s) : Ravikanth.P 00014 * Version : 00015 * 00016 ************************************************************************************************************** 00017 */ 00018 00019 #ifndef USBHOST_CPU_H 00020 #define USBHOST_CPU_H 00021 00022 /* 00023 ************************************************************************************************************** 00024 * TYPE DEFINITIONS OF DATA TYPES 00025 ************************************************************************************************************** 00026 */ 00027 00028 typedef unsigned int USB_INT32U; 00029 typedef signed int USB_INT32S; 00030 typedef unsigned short USB_INT16U; 00031 typedef signed short USB_INT16S; 00032 typedef unsigned char USB_INT08U; 00033 typedef signed char USB_INT08S; 00034 00035 #endif
Generated on Sat Jul 23 2022 07:55:29 by 1.7.2