uvcdemo.c

来自「Hello I Send som Source Code Aboat LPC20」· C语言 代码 · 共 53 行

C
53
字号
/*----------------------------------------------------------------------------
 *      Name:    uvcdemo.c
 *      Purpose: USB video class Demo
 *      Version: V1.00
 *----------------------------------------------------------------------------
 *      This file is part of the uVision/ARM development tools.
 *      This software may only be used under the terms of a valid, current,
 *      end user licence from KEIL for a compatible version of KEIL software
 *      development tools. Nothing else gives you the right to use it.
 *
 *      Copyright (c) 2005-2007 Keil Software.
 *---------------------------------------------------------------------------*/

#include <LPC23xx.H>                                  /* LPC23xx definitions */

#include "type.h"

#include "usb.h"
#include "usbcfg.h"
#include "usbhw.h"
#include "usbcore.h"
#include "uvc.h"
#include "uvcuser.h"
#include "uvcdemo.h"
#include "LCD.h"


/*----------------------------------------------------------------------------
  Main Program
 *---------------------------------------------------------------------------*/
int main (void) {

  PINSEL10 = 0;                             /* Disable ETM interface */
  FIO2DIR  = LEDMSK;                        /* LED's defined as Outputs */

  LCD_init();                               /* Initialize LCD display module */
  LCD_cur_off();
  LCD_cls();
  LCD_puts("MCB2300 USB UVC");
  LCD_puts("  www.keil.com  ");


  USB_Init();                               /* USB Initialization */
  USB_Connect(TRUE);                        /* USB Connect */

  while (!USB_Configuration) ;              /* wait until USB is configured */

  while (1) {                               /* Loop forever */
    ;
  } // end while											   
} // end main ()

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?