Microchip® Advanced Software Framework

flash_program_example.c File Reference

Flash program 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"
#include "conf_example.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)
 Perform initialization and tests on flash. More...
 

#define STRING_EOL   "\r"
#define STRING_HEADER
Value:
"-- Flash Program Example --\r\n" \
"-- "BOARD_NAME" --\r\n" \
"-- Compiled: "__DATE__" "__TIME__" --"STRING_EOL
#define BOARD_NAME
Definition: fatfs_access_example.c:112
#define STRING_EOL
Definition: flash_program_example.c:117

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().