#include "board.h"
#include <USBDescriptors.h>
#include <USBRequests.h>
#include "USBD.h"
#include <USBD_HAL.h>
#include <USBDDriver.h>
#include <VIDEODescriptors.h>
#include <USBVideo.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
Go to the source code of this file.
Detailed Description
This file contains all the specific code for the usb_video_isi
Contents
The code can be roughly broken down as follows:
- Configuration functions
- Configure TWI
- Configure pins for OV sensor
- Configure ISI controller
- Interrupt handlers
- The main function, which implements the program behaviour
Definition in file main.c.
Define Documentation
#define BOARD_BASE_TWI_ISI TWIHS0 |
TWI base address for Sensor configuration
Definition at line 148 of file main.c.
#define BOARD_ID_TWI_ISI ID_TWIHS0 |
TWI peripheral ID for Sensor configuration
Definition at line 146 of file main.c.
#define BOARD_PINS_TWI_ISI PINS_TWI0 |
TWI Pins definition
Definition at line 143 of file main.c.
#define ISI_BASE SDRAM_CS_ADDR |
ISI DMA buffer base address
Definition at line 151 of file main.c.
#define ISI_MAX_PREV_BUFFER 12 |
Frame Buffer Descriptors , it depends on size of external memory, more is better
Definition at line 155 of file main.c.
TWI clock frequency in Hz.
Definition at line 140 of file main.c.
Function Documentation
Application entry point for ISI USB video example.
- Returns:
- Unused (ANSI-C compatibility).
Definition at line 684 of file main.c.
Invoked whenever a SETUP request is received from the host. Forwards the request to the standard handler.
Definition at line 605 of file main.c.
void USBDDriverCallbacks_InterfaceSettingChanged |
( |
uint8_t |
interface, |
|
|
uint8_t |
setting | |
|
) |
| | |
Invoked whenever the active setting of an interface is changed by the host. Reset streaming interface.
- Parameters:
-
| interface | Interface number. |
| setting | Newly active setting. |
Definition at line 640 of file main.c.
Variable Documentation
ISI pins to configure.
Definition at line 168 of file main.c.