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

SAM3S8/SD8 Software Package 1.2
Functions | Variables

# main.c File Reference

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

Go to the source code of this file.

## Functions

int | main (void)
| pio_alternate_function Application entry point.

## Variables

const Pin | pinPB1 = PIN_PUSHBUTTON_1
volatile bool | button1Evt = false

## Detailed Description

This file contains all the specific code for the pio_alternate_function.

Definition in file main.c.

## Function Documentation

int main | ( | void | ) |

pio_alternate_function Application entry point.

Program the last page of internal flash with pattern 0x00000001,0x00000002,...,0x80000000.If the ERASE is in PIO mode, putting jumper on ERASE has no effect. That is, this pin could be used as general purpose I/O line. Otherwise,the content of falsh will be erased to 0xFFFFFFFF.

Returns:
  Unused (ANSI-C compatibility).

Definition at line 173 of file main.c.

Here is the call graph for this function:

## Variable Documentation

volatile bool button1Evt = false

Pushbutton #1 pin event flag.

Definition at line 116 of file main.c.

const Pin pinPB1 = PIN_PUSHBUTTON_1

Pushbutton #1 pin instance.

Definition at line 113 of file main.c.

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines