Microchip® Advanced Software Framework

flash_read_unique_id_example.c File Reference

Flash read Unique Identifier example for SAM.

Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.

#include "asf.h"
#include "stdio_serial.h"
#include "conf_board.h"
#include "conf_clock.h"

Macros

#define STRING_EOL   "\r"
 
#define STRING_HEADER
 

Typedefs

typedef unsigned long UL
 

Functions

static void configure_console (void)
 Configure console using UART. More...
 
int main (void)
 efc_unique_id_example Application entry point. More...
 

#define STRING_EOL   "\r"
#define STRING_HEADER
Value:
"-- Flash Read Unique Identifier Example --\r\n" \
"-- "BOARD_NAME" --\r\n" \
"-- Compiled: "__DATE__" "__TIME__" --"STRING_EOL
#define STRING_EOL
Definition: flash_read_unique_id_example.c:93
#define BOARD_NAME
Definition: fatfs_access_example.c:112

Referenced by main().

typedef unsigned long UL

static void configure_console ( void  )
static

Configure console using UART.

References uart_rs232_options::baudrate, stdio_serial_init(), and sysclk_enable_peripheral_clock().

Referenced by main().

int main ( void  )

efc_unique_id_example Application entry point.

Returns
Unused (ANSI-C compatibility).

References board_init(), configure_console(), FLASH_ACCESS_MODE_128, flash_init(), FLASH_RC_OK, flash_read_unique_id(), STRING_HEADER, and sysclk_init().