SAMV71 Xplained Ultra Software Package 1.5

main.c File Reference

#include "board.h"
#include <stdbool.h>
#include <stdio.h>

Go to the source code of this file.

Defines

#define MPU_UNPRIVILEGED_RAM_REGION   ( 0 )
#define MPU_PRIVILEGE_RAM_REGION   ( 1 )
#define MPU_PRIVILEGE_RAM_REGION_2   ( 2 )
#define MPU_UNPRIVILEGED_FLASH_REGION   ( 3 )
#define MPU_PRIVILEGED_FLASH_REGION   ( 4 )
#define MPU_PERIPHERALS_REGION_0   ( 5 )
#define MPU_PERIPHERALS_REGION_1   ( 6 )
#define MPU_PIOC_REGION_REGION   ( 7 )
#define MPU_PERIPHERALS_START_ADDRESS_0   0x40000000UL
#define MPU_PERIPHERALS_END_ADDRESS_0   (0x400E0E00UL - 1)
#define MPU_PERIPHERALS_START_ADDRESS_1   0x400E0E00UL
#define MPU_PERIPHERALS_END_ADDRESS_1   0x400E2000UL
#define MPU_PIOC_PERIPHERALS_REGION_START_ADDRESS   0x400E1200UL
#define MPU_PIOC_PERIPHERALS_REGION_END_ADDRESS   0x400E1400UL
#define MPU_SRAM_UNPRIVILEGE_START_ADDRESS   (SRAM_START_ADDRESS+0)
#define MPU_SRAM_UNPRIVILEGE_END_ADDRESS   (SRAM_START_ADDRESS+0x2FFFF)
#define MPU_SRAM_PRIVILEGE_START_ADDRESS   (SRAM_START_ADDRESS+0x30000)
#define MPU_SRAM_PRIVILEGE_END_ADDRESS   (SRAM_START_ADDRESS+0x4FFFF)
#define MPU_SRAM_PRIVILEGE2_START_ADDRESS   (SRAM_START_ADDRESS+0x50000)
#define MPU_SRAM_PRIVILEGE2_END_ADDRESS   (SRAM_START_ADDRESS+0x5FFFF)

Functions

void SVC_Handler (void)
 Default SVC interrupt handler.
void MemManage_Handler (void)
 Default MemManage interrupt handler. There is a weak handler by default and if the MPU feature is enabled, it must be implemented with the actual handler.
int main (void)
 Application entry point for MPU example.

Variables

uint32_t dwRaisePriDone = 0

Detailed Description

This file contains all the specific code for the MPU example.

Definition in file main.c.


Function Documentation

int main ( void   ) 

Application entry point for MPU example.

Returns:
Unused (ANSI-C compatibility).

Definition at line 348 of file main.c.

Here is the call graph for this function:


Variable Documentation

uint32_t dwRaisePriDone = 0

Flag to indicate whether the SVC is done

Definition at line 128 of file main.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines