更换语言:
   Contact us
  • Follow CooCox
  •         
  • CooCox Market
  •         
  • Tech Support
  •     
Home  › CoX Peripheral Interface
 

CoX Peripheral Library is the definition of a group of interface functions. It defines the functional access functions of MCU’s common peripherals, such as IIC, SPI, UART, etc. CoX makes full functions, drivers based on CoX can be ported to other MCU easily.

CoX Peripheral Library can be divided into four parts:

  • Common mandatory type interface.
  • Common type of non-mandatory interface.
  • MCU-specific interface.
  • MCU register interface.

Features :

  • Free and open source under BSD license
  • Peripherals library with a unified standard interface, can be ported to other MCUs easily
  • Full functions of the peripheral, CoX still provides a set of APIs for special MCU features
  • Support interrupt, CoX extracts a set of interrupt events
  • A lot of reused drivers
  • Extensive documentation generated using doxygen standard
  • Standard definition of the API reference for almost all the Cortex-M0/M3 MCU manuals
  • Add a new innovative element, such as the short pin (PA2) in GPIO module
  • Strict coding standard and does not affect code size and speed, through rigorous testing and verification
  • Configurable
  • Provide blank template to make port more easily

 See what’s the difference between the new CoX and old CoX (released in September 2010, and has been ported to several MCU platforms, such as LPC11xx, NUC1xx and so on.)

Why do we use CoX ?

  • CoX Peripheral is not only a common interface for drivers, but also a full peripheral library
  • CoX function interface unify the definition of the access functions of MCU’s common peripherals, which makes you port programs among different MCUs more conveniently.
  • CoX has a set of specific realization for each MCU, and its code size and speed are nearly the same as the library that the suppliers provided.

When should we use CoX ?

  • If users may change MCU in the future and do not want to do too much unnecessary port work.
  • If users plan to use the existing drivers based on CoX interface.


How to use CoX ?

CoX is a group of APIs and Macros who have the prefix x. such as  xGPIOPinRead(), etc..
Click here to see more about how to use CoX.

Interface Definition

Interface Description States Date
Startup CoX startup code 09/2011
LowLayer CoX lowlayer support, such as type define, register define,  debug assert and so on. 09/2011
CORE Cortex-M0/M3 Core Peripheral Interface 09/2011
SysCtl System Control(CG & PMC) Peripheral Interface 09/2011
DMA DMA Peripheral Interface 09/2011
GPIO GPIO & AFIO Peripheral Interface 09/2011
UART UART Peripheral Interface 09/2011
SPI SPI(SSI) Peripheral Interface 09/2011
I2C I2C Peripheral Interface 09/2011
TIMER Timer Peripheral Interface 09/2011
PWM PWM Peripheral Interface 09/2011
RTC RTC Peripheral Interface 09/2011
WDT Watchdog Timer Peripheral Interface 09/2011
ADC ADC Peripheral Interface 09/2011
ACMP Analog Comparator Peripheral Interface 09/2011
I2S Inter-Integrated Circuit Sound(I2S) Peripheral Interface 12/2011 (delay)
CAN CAN Bus Peripheral Interface 12/2011 (delay)
USB USB Device/Host/OTG Peripheral Interface 12/2011 (delay)
EBI EBI bus Peripheral Interface 12/2011 (delay)


Supported MCU Platform

Manufacturer   Series  States  Date Download
CooCox CoX Port Template 09/2011 Download
Nuvoton NUC1xx 09/2011 Download
NUC122 12/2011 Download
M051 12/2012 Download
Mini51 2/2012 Download
NXP LPC11c1x 2012  NA
LPC11xx 12/2011 (delay)  NA
LPC12xx 2012  NA
LPC13xx 2012  NA
LPC17xx 2012  NA
ST STM32F10x 7/2012 Download
TI Stellaris 12/2011 (delay)  NA
Holtek HT32F125x 7/2012 Download
HT32F175x_275x 7/2012 Download
FreeScale KLx 09/2012 Download

* If you hope other MCUs can be supported by CoX as soon as possible, you can develop them by yourself with our guide, contact us please!

   Join us on Github, you can:
1. Get the repository of CoX
2. Participate in Cox development
   Learn More about Cox on GitHub

 CoX News

  • CoX_Nuvoton_M051 V2.2.1.1
© 2009 -2011 CooCox - Terms of Use         Business Model         Market             About us             Terms and Conditions