/* * Code generated from Atmel Start. * * This file will be overwritten when reconfiguring your Atmel Start project. * Please copy examples or other code you want to keep to a separate file * to avoid losing it when reconfiguring. */ #include "driver_examples.h" #include "driver_init.h" #include "utils.h" /** * Example of using USART_DBG to write "Hello World" using the IO abstraction. */ void USART_DBG_example(void) { struct io_descriptor *io; usart_sync_get_io_descriptor(&USART_DBG, &io); usart_sync_enable(&USART_DBG); io_write(io, (uint8_t *)"Hello World!", 12); } /** * Example of using SPI_SD_MMC to write "Hello World" using the IO abstraction. */ static uint8_t example_SPI_SD_MMC[12] = "Hello World!"; void SPI_SD_MMC_example(void) { struct io_descriptor *io; spi_m_sync_get_io_descriptor(&SPI_SD_MMC, &io); spi_m_sync_enable(&SPI_SD_MMC); io_write(io, example_SPI_SD_MMC, 12); } void delay_example(void) { delay_ms(5000); }