NinjaFlight
|
Hardware Configuration & Setup. More...
#include "usb_type.h"
Go to the source code of this file.
Macros | |
#define | MASS_MEMORY_START 0x04002000 |
#define | BULK_MAX_PACKET_SIZE 0x00000040 |
Functions | |
void | Set_System (void) |
void | Set_USBClock (void) |
void | Enter_LowPowerMode (void) |
void | Leave_LowPowerMode (void) |
void | USB_Interrupts_Config (void) |
void | USB_Cable_Config (FunctionalState NewState) |
void | Get_SerialNum (void) |
uint32_t | CDC_Send_DATA (uint8_t *ptrBuffer, uint8_t sendLength) |
uint32_t | CDC_Receive_DATA (uint8_t *recvBuf, uint32_t len) |
uint8_t | usbIsConfigured (void) |
uint8_t | usbIsConnected (void) |
uint32_t | CDC_BaudRate (void) |
Variables | |
__IO uint32_t | receiveLength |
__IO uint32_t | packetSent |
Hardware Configuration & Setup.
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
#define BULK_MAX_PACKET_SIZE 0x00000040 |
#define MASS_MEMORY_START 0x04002000 |
uint32_t CDC_BaudRate | ( | void | ) |
uint32_t CDC_Receive_DATA | ( | uint8_t * | recvBuf, |
uint32_t | len | ||
) |
uint32_t CDC_Send_DATA | ( | uint8_t * | ptrBuffer, |
uint8_t | sendLength | ||
) |
void Enter_LowPowerMode | ( | void | ) |
void Get_SerialNum | ( | void | ) |
void Leave_LowPowerMode | ( | void | ) |
void Set_System | ( | void | ) |
< At this stage the microcontroller clock setting is already configured, this is done through SystemInit() function which is called from startup file (startup_stm32f10x_xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f10x.c file
void Set_USBClock | ( | void | ) |
void USB_Cable_Config | ( | FunctionalState | NewState | ) |
void USB_Interrupts_Config | ( | void | ) |
uint8_t usbIsConfigured | ( | void | ) |
uint8_t usbIsConnected | ( | void | ) |
__IO uint32_t packetSent |
__IO uint32_t receiveLength |