| |
|
|
|
| PA3288 Developer's Guide - Chip Support Libary |
| | |
Overview
GPIO
PLL
All clock frequency parameters in CSL functions are in Mhz. Usually PLL_Init is called once at system start up time.
The first parameter sets the system PLL clock, for example, 384 means 384000000Hz.
The second BOOLEAN parameter selects the CPU speed. In a typical case, when PLL clock is 384Mhz, CPU speed is 96Mhz when bCPU2X is FALSE, and 192Mhz when bCPU2X is TRUE.
SPI
Usually SPI_Init is called once at system start up time, with a SPI working clock (in Mhz) parameter and a function pointer parameter as the call back function for SPI_AsyncWrite.
SPI_AsyncWrite writes data using DMA without CPU waiting, the call back function will be called after all DMA operations finished.
Although we support multiple SPI devices, we only support one SPI device for DMA write only. All other SPI operations need to be done in CPU waiting mode.
The basic functions are SPI_EnableClock, SPI_DisableClock, SPI_SyncWrite, SPI_SyncRead and SPI_SyncReadWrite.
SPI_BulkWrite and SPI_BulkReadWrite provide a simple SPI interface. For example, SPI_BulkWrite simply calls SPI_EnableClock, SPI_SyncWrite and SPI_DisableClock one by one.
SPI_Write and SPI_ReadWrite provide a more simple interface for data length within 4 bytes by direct function call of SPI_BulkWrite and SPI_BulkReadWrite.
bsl\flash.c has the most complete examples of all kinds of SPI function calls.
TIMER
USB
|
|