GlobLib
HAL and API libraries for MCUs and hardware.

Generic header file to include all modules. More...

Files

file  stm32f103cb_core.h
 Generic header file for all modules.
 

Functions

void USB_coms (timer_main timerNumber)
 Set up USB "serial" communication. The passed timer is used to update the device. More...
 
void delayms (uint32_t delay)
 Millisecond blocking delay. More...
 

Detailed Description

Generic header file to include all modules.

This file can be included in applications to include all peripheral modules for the MCU.

This file additionally contains useful fucntions specific to the stm32f103cb

Author
Stuart Ianna
Version
0.1
Date
May 2018
Warning
None
Bug:
None
Todo:
Compilers
  • arm-none-eabi-gcc (15:4.9.3+svn231177-1) 4.9.3 20150529 (prerelease)

Function Documentation

void delayms ( uint32_t  delay)

Millisecond blocking delay.

Parameters
delayThe required delay

Definition at line 65 of file stm32f103cb_core.c.

void USB_coms ( timer_main  timerNumber)

Set up USB "serial" communication. The passed timer is used to update the device.

The following options are valid.

- TIMER_1
- TIMER_2
- TIMER_3
- TIMER_4
- SYSTICK

Currently this also sets the main clock speed to 72MHz (external crystal)

Parameters
timerNumberthe timer to initial the USB device with

Definition at line 19 of file stm32f103cb_core.c.