![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
USB Host Lite downloaded from NXP web site. Untested! Compiled, dropped on MBED, booted up, and get the console message that it is initializing the stack. I however do not have the ability to connect a USB Memory device to test it.
Uart/usbhost_uart.h@0:0826fcc5d020, 2010-01-13 (annotated)
- Committer:
- mshoemaker
- Date:
- Wed Jan 13 01:29:30 2010 +0000
- Revision:
- 0:0826fcc5d020
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mshoemaker | 0:0826fcc5d020 | 1 | /* |
mshoemaker | 0:0826fcc5d020 | 2 | ************************************************************************************************************** |
mshoemaker | 0:0826fcc5d020 | 3 | * NXP USB Host Stack |
mshoemaker | 0:0826fcc5d020 | 4 | * |
mshoemaker | 0:0826fcc5d020 | 5 | * (c) Copyright 2008, NXP SemiConductors |
mshoemaker | 0:0826fcc5d020 | 6 | * (c) Copyright 2008, OnChip Technologies LLC |
mshoemaker | 0:0826fcc5d020 | 7 | * All Rights Reserved |
mshoemaker | 0:0826fcc5d020 | 8 | * |
mshoemaker | 0:0826fcc5d020 | 9 | * www.nxp.com |
mshoemaker | 0:0826fcc5d020 | 10 | * www.onchiptech.com |
mshoemaker | 0:0826fcc5d020 | 11 | * |
mshoemaker | 0:0826fcc5d020 | 12 | * File : usbhost_uart.h |
mshoemaker | 0:0826fcc5d020 | 13 | * Programmer(s) : Prasad.K.R.S.V |
mshoemaker | 0:0826fcc5d020 | 14 | * Version : |
mshoemaker | 0:0826fcc5d020 | 15 | * |
mshoemaker | 0:0826fcc5d020 | 16 | ************************************************************************************************************** |
mshoemaker | 0:0826fcc5d020 | 17 | */ |
mshoemaker | 0:0826fcc5d020 | 18 | |
mshoemaker | 0:0826fcc5d020 | 19 | #ifndef USBHOST_UART_H |
mshoemaker | 0:0826fcc5d020 | 20 | #define USBHOST_UART_H |
mshoemaker | 0:0826fcc5d020 | 21 | |
mshoemaker | 0:0826fcc5d020 | 22 | /* |
mshoemaker | 0:0826fcc5d020 | 23 | ************************************************************************************************************** |
mshoemaker | 0:0826fcc5d020 | 24 | * INCLUDE HEADER FILES |
mshoemaker | 0:0826fcc5d020 | 25 | ************************************************************************************************************** |
mshoemaker | 0:0826fcc5d020 | 26 | */ |
mshoemaker | 0:0826fcc5d020 | 27 | |
mshoemaker | 0:0826fcc5d020 | 28 | #include <stdarg.h> |
mshoemaker | 0:0826fcc5d020 | 29 | #include <stdio.h> |
mshoemaker | 0:0826fcc5d020 | 30 | #include "usbhost_inc.h" |
mshoemaker | 0:0826fcc5d020 | 31 | |
mshoemaker | 0:0826fcc5d020 | 32 | /* |
mshoemaker | 0:0826fcc5d020 | 33 | ************************************************************************************************************** |
mshoemaker | 0:0826fcc5d020 | 34 | * UART DEFINITIONS |
mshoemaker | 0:0826fcc5d020 | 35 | ************************************************************************************************************** |
mshoemaker | 0:0826fcc5d020 | 36 | */ |
mshoemaker | 0:0826fcc5d020 | 37 | //#define Fcclk 48000000 |
mshoemaker | 0:0826fcc5d020 | 38 | //#define Fpclk (Fcclk / 2) |
mshoemaker | 0:0826fcc5d020 | 39 | |
mshoemaker | 0:0826fcc5d020 | 40 | /* |
mshoemaker | 0:0826fcc5d020 | 41 | ************************************************************************************************************** |
mshoemaker | 0:0826fcc5d020 | 42 | * FUNCTION PROTOTYPES |
mshoemaker | 0:0826fcc5d020 | 43 | ************************************************************************************************************** |
mshoemaker | 0:0826fcc5d020 | 44 | */ |
mshoemaker | 0:0826fcc5d020 | 45 | |
mshoemaker | 0:0826fcc5d020 | 46 | void UART_Init ( USB_INT32U baudrate); |
mshoemaker | 0:0826fcc5d020 | 47 | void UART_PrintChar ( USB_INT08U ch); |
mshoemaker | 0:0826fcc5d020 | 48 | void UART_PrintStr (const USB_INT08U *str); |
mshoemaker | 0:0826fcc5d020 | 49 | void UART_Printf(const USB_INT08U *format, ...); |
mshoemaker | 0:0826fcc5d020 | 50 | |
mshoemaker | 0:0826fcc5d020 | 51 | #endif |