BOOTLOADER
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
testspi.c File Reference
#include "includes.h"

Go to the source code of this file.

Macros

#define TestSpiIdleState   0
#define TestSpiSpi0State0   1
#define TestSpiSpi0State1   2
#define TestSpiSpi1State0   3
#define TestSpiSpi1State1   4
#define TESTSPI_BUFFER_SIZE   100

Functions

void F_TestSpiInit (void)
void F_TestSpiSvc (void)
INT8U F_TestSpiStart (INT8U SpiNumber)
void __irq TestSpiSpi0Isr (void)
void __irq TestSpiSpi1Isr (void)

Variables

TESTSPI_CONTROL TestSpiCtrl
INT8U TestSpiRxIndex = 0
INT8U TestSpiRxBuffer [TESTSPI_BUFFER_SIZE]
INT8U TestSpiTxIndex = 0
INT8U TestSpiTxBuffer [TESTSPI_BUFFER_SIZE]

Macro Definition Documentation

#define TESTSPI_BUFFER_SIZE   100

Definition at line 18 of file testspi.c.

#define TestSpiIdleState   0

Definition at line 11 of file testspi.c.

#define TestSpiSpi0State0   1

Definition at line 12 of file testspi.c.

#define TestSpiSpi0State1   2

Definition at line 13 of file testspi.c.

#define TestSpiSpi1State0   3

Definition at line 14 of file testspi.c.

#define TestSpiSpi1State1   4

Definition at line 15 of file testspi.c.


Function Documentation

void F_TestSpiInit ( void  )

Definition at line 53 of file testspi.c.

INT8U F_TestSpiStart ( INT8U  SpiNumber)

Definition at line 115 of file testspi.c.

void F_TestSpiSvc ( void  )

Definition at line 61 of file testspi.c.

void __irq TestSpiSpi0Isr ( void  )

Definition at line 126 of file testspi.c.

void __irq TestSpiSpi1Isr ( void  )

Definition at line 152 of file testspi.c.


Variable Documentation

TESTSPI_CONTROL TestSpiCtrl

Definition at line 17 of file testspi.c.

INT8U TestSpiRxBuffer[TESTSPI_BUFFER_SIZE]
Initial value:
{
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0
}

Definition at line 20 of file testspi.c.

INT8U TestSpiRxIndex = 0

Definition at line 19 of file testspi.c.

INT8U TestSpiTxBuffer[TESTSPI_BUFFER_SIZE]
Initial value:
{
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
10,11,12,13,14,15,16,17,18,19,
20,21,22,23,24,25,26,27,28,29,
30,31,32,33,34,35,36,37,38,39,
40,41,42,43,44,45,46,47,48,49,
50,51,52,53,54,55,56,57,58,59,
60,61,62,63,64,65,66,67,68,69,
70,71,72,73,74,75,76,77,78,79,
80,81,82,83,84,85,86,87,88,89,
90,91,92,93,94,95,96,97,98,99
}

Definition at line 33 of file testspi.c.

INT8U TestSpiTxIndex = 0

Definition at line 32 of file testspi.c.