SAM3S8/SD8 Software Package: examples/usart_serial/main.c File Reference

SAM3S8/SD8 Software Package 1.2
Defines | Functions

# main.c File Reference

`#include "board.h"`
`#include <stdint.h>`
`#include <stdio.h>`

Go to the source code of this file.

## Defines

#define | BUFFER_SIZE 150
#define | PDC_TRANSFER 1
#define | BYTE_TRANSFER 0

## Functions

void | USART1_IrqHandler (void)
| Interrupt handler for USART. Echo the bytes received and starts next receive.
void | TC0_IrqHandler (void)
| Interrupt handler for TC0. Record the number of bytes received, then restarts a read transfer on the USART if the transfer was stopped.
int | main (void)
| Application entry point for usart_serial example.

## Detailed Description

This file contains all the specific code for the usart_serial

Definition in file main.c.

## Define Documentation

#define BUFFER_SIZE 150

Size of the receive buffer used by the PDC, in bytes.

Definition at line 106 of file main.c.

#define BYTE_TRANSFER 0

USART FIFO transfer type definiton

Definition at line 112 of file main.c.

#define PDC_TRANSFER 1

USART PDC transfer type definiton

Definition at line 109 of file main.c.

## Function Documentation

int main | ( | void | ) |

Application entry point for usart_serial example.

Returns:
  Unused (ANSI-C compatibility).

Definition at line 338 of file main.c.

Here is the call graph for this function:

void TC0_IrqHandler | ( | void | ) |

Interrupt handler for TC0. Record the number of bytes received, then restarts a read transfer on the USART if the transfer was stopped.

Default interrupt handler for TC0.

Toggle LED state.

Definition at line 222 of file main.c.

void USART1_IrqHandler | ( | void | ) |

Interrupt handler for USART. Echo the bytes received and starts next receive.

Default interrupt handler for USART1.

Definition at line 151 of file main.c.

Here is the call graph for this function:
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines