<p>Kévin Redon has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13676">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">remove example code<br><br>as the code will use alternative libraries, the examples will not<br>be able to compile anymore.<br>plus they are not required for the firmware and the example code<br>can be downloaded from atmel start.<br><br>Change-Id: If53df47089de9eb8498734c19d6a0420c1e79031<br>---<br>D sysmoOCTSIM/examples/driver_examples.c<br>D sysmoOCTSIM/examples/driver_examples.h<br>M sysmoOCTSIM/gcc/Makefile<br>3 files changed, 3 insertions(+), 284 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/76/13676/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/sysmoOCTSIM/examples/driver_examples.c b/sysmoOCTSIM/examples/driver_examples.c</span><br><span>deleted file mode 100644</span><br><span>index 14f1ae5..0000000</span><br><span>--- a/sysmoOCTSIM/examples/driver_examples.c</span><br><span>+++ /dev/null</span><br><span>@@ -1,243 +0,0 @@</span><br><span style="color: hsl(0, 100%, 40%);">-/*</span><br><span style="color: hsl(0, 100%, 40%);">- * Code generated from Atmel Start.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * This file will be overwritten when reconfiguring your Atmel Start project.</span><br><span style="color: hsl(0, 100%, 40%);">- * Please copy examples or other code you want to keep to a separate file</span><br><span style="color: hsl(0, 100%, 40%);">- * to avoid losing it when reconfiguring.</span><br><span style="color: hsl(0, 100%, 40%);">- */</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-#include "driver_examples.h"</span><br><span style="color: hsl(0, 100%, 40%);">-#include "driver_init.h"</span><br><span style="color: hsl(0, 100%, 40%);">-#include "utils.h"</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-/**</span><br><span style="color: hsl(0, 100%, 40%);">- * Example of using SIM0 to write "Hello World" using the IO abstraction.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * Since the driver is asynchronous we need to use statically allocated memory for string</span><br><span style="color: hsl(0, 100%, 40%);">- * because driver initiates transfer and then returns before the transmission is completed.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * Once transfer has been completed the tx_cb function will be called.</span><br><span style="color: hsl(0, 100%, 40%);">- */</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-static uint8_t example_SIM0[12] = "Hello World!";</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-static void tx_cb_SIM0(const struct usart_async_descriptor *const io_descr)</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-     /* Transfer completed */</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-void SIM0_example(void)</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-       struct io_descriptor *io;</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-       usart_async_register_callback(&SIM0, USART_ASYNC_TXC_CB, tx_cb_SIM0);</span><br><span style="color: hsl(0, 100%, 40%);">-       /*usart_async_register_callback(&SIM0, USART_ASYNC_RXC_CB, rx_cb);</span><br><span style="color: hsl(0, 100%, 40%);">-  usart_async_register_callback(&SIM0, USART_ASYNC_ERROR_CB, err_cb);*/</span><br><span style="color: hsl(0, 100%, 40%);">-       usart_async_get_io_descriptor(&SIM0, &io);</span><br><span style="color: hsl(0, 100%, 40%);">-      usart_async_enable(&SIM0);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-  io_write(io, example_SIM0, 12);</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-/**</span><br><span style="color: hsl(0, 100%, 40%);">- * Example of using SIM1 to write "Hello World" using the IO abstraction.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * Since the driver is asynchronous we need to use statically allocated memory for string</span><br><span style="color: hsl(0, 100%, 40%);">- * because driver initiates transfer and then returns before the transmission is completed.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * Once transfer has been completed the tx_cb function will be called.</span><br><span style="color: hsl(0, 100%, 40%);">- */</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-static uint8_t example_SIM1[12] = "Hello World!";</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-static void tx_cb_SIM1(const struct usart_async_descriptor *const io_descr)</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-  /* Transfer completed */</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-void SIM1_example(void)</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-       struct io_descriptor *io;</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-       usart_async_register_callback(&SIM1, USART_ASYNC_TXC_CB, tx_cb_SIM1);</span><br><span style="color: hsl(0, 100%, 40%);">-       /*usart_async_register_callback(&SIM1, USART_ASYNC_RXC_CB, rx_cb);</span><br><span style="color: hsl(0, 100%, 40%);">-  usart_async_register_callback(&SIM1, USART_ASYNC_ERROR_CB, err_cb);*/</span><br><span style="color: hsl(0, 100%, 40%);">-       usart_async_get_io_descriptor(&SIM1, &io);</span><br><span style="color: hsl(0, 100%, 40%);">-      usart_async_enable(&SIM1);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-  io_write(io, example_SIM1, 12);</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-/**</span><br><span style="color: hsl(0, 100%, 40%);">- * Example of using SIM2 to write "Hello World" using the IO abstraction.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * Since the driver is asynchronous we need to use statically allocated memory for string</span><br><span style="color: hsl(0, 100%, 40%);">- * because driver initiates transfer and then returns before the transmission is completed.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * Once transfer has been completed the tx_cb function will be called.</span><br><span style="color: hsl(0, 100%, 40%);">- */</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-static uint8_t example_SIM2[12] = "Hello World!";</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-static void tx_cb_SIM2(const struct usart_async_descriptor *const io_descr)</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-  /* Transfer completed */</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-void SIM2_example(void)</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-       struct io_descriptor *io;</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-       usart_async_register_callback(&SIM2, USART_ASYNC_TXC_CB, tx_cb_SIM2);</span><br><span style="color: hsl(0, 100%, 40%);">-       /*usart_async_register_callback(&SIM2, USART_ASYNC_RXC_CB, rx_cb);</span><br><span style="color: hsl(0, 100%, 40%);">-  usart_async_register_callback(&SIM2, USART_ASYNC_ERROR_CB, err_cb);*/</span><br><span style="color: hsl(0, 100%, 40%);">-       usart_async_get_io_descriptor(&SIM2, &io);</span><br><span style="color: hsl(0, 100%, 40%);">-      usart_async_enable(&SIM2);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-  io_write(io, example_SIM2, 12);</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-/**</span><br><span style="color: hsl(0, 100%, 40%);">- * Example of using SIM3 to write "Hello World" using the IO abstraction.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * Since the driver is asynchronous we need to use statically allocated memory for string</span><br><span style="color: hsl(0, 100%, 40%);">- * because driver initiates transfer and then returns before the transmission is completed.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * Once transfer has been completed the tx_cb function will be called.</span><br><span style="color: hsl(0, 100%, 40%);">- */</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-static uint8_t example_SIM3[12] = "Hello World!";</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-static void tx_cb_SIM3(const struct usart_async_descriptor *const io_descr)</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-  /* Transfer completed */</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-void SIM3_example(void)</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-       struct io_descriptor *io;</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-       usart_async_register_callback(&SIM3, USART_ASYNC_TXC_CB, tx_cb_SIM3);</span><br><span style="color: hsl(0, 100%, 40%);">-       /*usart_async_register_callback(&SIM3, USART_ASYNC_RXC_CB, rx_cb);</span><br><span style="color: hsl(0, 100%, 40%);">-  usart_async_register_callback(&SIM3, USART_ASYNC_ERROR_CB, err_cb);*/</span><br><span style="color: hsl(0, 100%, 40%);">-       usart_async_get_io_descriptor(&SIM3, &io);</span><br><span style="color: hsl(0, 100%, 40%);">-      usart_async_enable(&SIM3);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-  io_write(io, example_SIM3, 12);</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-/**</span><br><span style="color: hsl(0, 100%, 40%);">- * Example of using SIM4 to write "Hello World" using the IO abstraction.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * Since the driver is asynchronous we need to use statically allocated memory for string</span><br><span style="color: hsl(0, 100%, 40%);">- * because driver initiates transfer and then returns before the transmission is completed.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * Once transfer has been completed the tx_cb function will be called.</span><br><span style="color: hsl(0, 100%, 40%);">- */</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-static uint8_t example_SIM4[12] = "Hello World!";</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-static void tx_cb_SIM4(const struct usart_async_descriptor *const io_descr)</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-  /* Transfer completed */</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-void SIM4_example(void)</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-       struct io_descriptor *io;</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-       usart_async_register_callback(&SIM4, USART_ASYNC_TXC_CB, tx_cb_SIM4);</span><br><span style="color: hsl(0, 100%, 40%);">-       /*usart_async_register_callback(&SIM4, USART_ASYNC_RXC_CB, rx_cb);</span><br><span style="color: hsl(0, 100%, 40%);">-  usart_async_register_callback(&SIM4, USART_ASYNC_ERROR_CB, err_cb);*/</span><br><span style="color: hsl(0, 100%, 40%);">-       usart_async_get_io_descriptor(&SIM4, &io);</span><br><span style="color: hsl(0, 100%, 40%);">-      usart_async_enable(&SIM4);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-  io_write(io, example_SIM4, 12);</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-/**</span><br><span style="color: hsl(0, 100%, 40%);">- * Example of using SIM5 to write "Hello World" using the IO abstraction.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * Since the driver is asynchronous we need to use statically allocated memory for string</span><br><span style="color: hsl(0, 100%, 40%);">- * because driver initiates transfer and then returns before the transmission is completed.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * Once transfer has been completed the tx_cb function will be called.</span><br><span style="color: hsl(0, 100%, 40%);">- */</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-static uint8_t example_SIM5[12] = "Hello World!";</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-static void tx_cb_SIM5(const struct usart_async_descriptor *const io_descr)</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-  /* Transfer completed */</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-void SIM5_example(void)</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-       struct io_descriptor *io;</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-       usart_async_register_callback(&SIM5, USART_ASYNC_TXC_CB, tx_cb_SIM5);</span><br><span style="color: hsl(0, 100%, 40%);">-       /*usart_async_register_callback(&SIM5, USART_ASYNC_RXC_CB, rx_cb);</span><br><span style="color: hsl(0, 100%, 40%);">-  usart_async_register_callback(&SIM5, USART_ASYNC_ERROR_CB, err_cb);*/</span><br><span style="color: hsl(0, 100%, 40%);">-       usart_async_get_io_descriptor(&SIM5, &io);</span><br><span style="color: hsl(0, 100%, 40%);">-      usart_async_enable(&SIM5);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-  io_write(io, example_SIM5, 12);</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-/**</span><br><span style="color: hsl(0, 100%, 40%);">- * Example of using SIM6 to write "Hello World" using the IO abstraction.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * Since the driver is asynchronous we need to use statically allocated memory for string</span><br><span style="color: hsl(0, 100%, 40%);">- * because driver initiates transfer and then returns before the transmission is completed.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * Once transfer has been completed the tx_cb function will be called.</span><br><span style="color: hsl(0, 100%, 40%);">- */</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-static uint8_t example_SIM6[12] = "Hello World!";</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-static void tx_cb_SIM6(const struct usart_async_descriptor *const io_descr)</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-  /* Transfer completed */</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-void SIM6_example(void)</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-       struct io_descriptor *io;</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-       usart_async_register_callback(&SIM6, USART_ASYNC_TXC_CB, tx_cb_SIM6);</span><br><span style="color: hsl(0, 100%, 40%);">-       /*usart_async_register_callback(&SIM6, USART_ASYNC_RXC_CB, rx_cb);</span><br><span style="color: hsl(0, 100%, 40%);">-  usart_async_register_callback(&SIM6, USART_ASYNC_ERROR_CB, err_cb);*/</span><br><span style="color: hsl(0, 100%, 40%);">-       usart_async_get_io_descriptor(&SIM6, &io);</span><br><span style="color: hsl(0, 100%, 40%);">-      usart_async_enable(&SIM6);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-  io_write(io, example_SIM6, 12);</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-/**</span><br><span style="color: hsl(0, 100%, 40%);">- * Example of using UART_debug to write "Hello World" using the IO abstraction.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * Since the driver is asynchronous we need to use statically allocated memory for string</span><br><span style="color: hsl(0, 100%, 40%);">- * because driver initiates transfer and then returns before the transmission is completed.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * Once transfer has been completed the tx_cb function will be called.</span><br><span style="color: hsl(0, 100%, 40%);">- */</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-static uint8_t example_UART_debug[12] = "Hello World!";</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-static void tx_cb_UART_debug(const struct usart_async_descriptor *const io_descr)</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-        /* Transfer completed */</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-void UART_debug_example(void)</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">- struct io_descriptor *io;</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-       usart_async_register_callback(&UART_debug, USART_ASYNC_TXC_CB, tx_cb_UART_debug);</span><br><span style="color: hsl(0, 100%, 40%);">-   /*usart_async_register_callback(&UART_debug, USART_ASYNC_RXC_CB, rx_cb);</span><br><span style="color: hsl(0, 100%, 40%);">-    usart_async_register_callback(&UART_debug, USART_ASYNC_ERROR_CB, err_cb);*/</span><br><span style="color: hsl(0, 100%, 40%);">- usart_async_get_io_descriptor(&UART_debug, &io);</span><br><span style="color: hsl(0, 100%, 40%);">-        usart_async_enable(&UART_debug);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-    io_write(io, example_UART_debug, 12);</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span>diff --git a/sysmoOCTSIM/examples/driver_examples.h b/sysmoOCTSIM/examples/driver_examples.h</span><br><span>deleted file mode 100644</span><br><span>index 4f2ce98..0000000</span><br><span>--- a/sysmoOCTSIM/examples/driver_examples.h</span><br><span>+++ /dev/null</span><br><span>@@ -1,34 +0,0 @@</span><br><span style="color: hsl(0, 100%, 40%);">-/*</span><br><span style="color: hsl(0, 100%, 40%);">- * Code generated from Atmel Start.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * This file will be overwritten when reconfiguring your Atmel Start project.</span><br><span style="color: hsl(0, 100%, 40%);">- * Please copy examples or other code you want to keep to a separate file</span><br><span style="color: hsl(0, 100%, 40%);">- * to avoid losing it when reconfiguring.</span><br><span style="color: hsl(0, 100%, 40%);">- */</span><br><span style="color: hsl(0, 100%, 40%);">-#ifndef DRIVER_EXAMPLES_H_INCLUDED</span><br><span style="color: hsl(0, 100%, 40%);">-#define DRIVER_EXAMPLES_H_INCLUDED</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-#ifdef __cplusplus</span><br><span style="color: hsl(0, 100%, 40%);">-extern "C" {</span><br><span style="color: hsl(0, 100%, 40%);">-#endif</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-void SIM0_example(void);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-void SIM1_example(void);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-void SIM2_example(void);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-void SIM3_example(void);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-void SIM4_example(void);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-void SIM5_example(void);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-void SIM6_example(void);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-void UART_debug_example(void);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-#ifdef __cplusplus</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-#endif</span><br><span style="color: hsl(0, 100%, 40%);">-#endif // DRIVER_EXAMPLES_H_INCLUDED</span><br><span>diff --git a/sysmoOCTSIM/gcc/Makefile b/sysmoOCTSIM/gcc/Makefile</span><br><span>index 0191815..bd4bdb0 100644</span><br><span>--- a/sysmoOCTSIM/gcc/Makefile</span><br><span>+++ b/sysmoOCTSIM/gcc/Makefile</span><br><span>@@ -28,7 +28,6 @@</span><br><span>  \</span><br><span> hal/src \</span><br><span> hpl/ramecc \</span><br><span style="color: hsl(0, 100%, 40%);">-examples \</span><br><span> hpl/oscctrl \</span><br><span> stdio_redirect/gcc \</span><br><span> gcc \</span><br><span>@@ -83,7 +82,6 @@</span><br><span> ncn8025.o \</span><br><span> command.o \</span><br><span> hpl/osc32kctrl/hpl_osc32kctrl.o \</span><br><span style="color: hsl(0, 100%, 40%);">-examples/driver_examples.o \</span><br><span> driver_init.o \</span><br><span> hal/src/hal_usart_async.o \</span><br><span> hpl/sercom/hpl_sercom.o \</span><br><span>@@ -131,7 +129,6 @@</span><br><span> "ncn8025.o" \</span><br><span> "command.o" \</span><br><span> "hpl/osc32kctrl/hpl_osc32kctrl.o" \</span><br><span style="color: hsl(0, 100%, 40%);">-"examples/driver_examples.o" \</span><br><span> "driver_init.o" \</span><br><span> "hal/src/hal_usart_async.o" \</span><br><span> "hpl/sercom/hpl_sercom.o" \</span><br><span>@@ -185,7 +182,6 @@</span><br><span> "octsim_i2c.d" \</span><br><span> "ncn8025.d" \</span><br><span> "command.d" \</span><br><span style="color: hsl(0, 100%, 40%);">-"examples/driver_examples.d" \</span><br><span> "hal/src/hal_cache.d" \</span><br><span> "hal/src/hal_sleep.d" \</span><br><span> "hal/utils/src/utils_ringbuffer.d" \</span><br><span>@@ -242,7 +238,7 @@</span><br><span>      @echo ARM/GNU C Compiler</span><br><span>     $(QUOTE)arm-none-eabi-gcc$(QUOTE) -x c -mthumb -DDEBUG -Os -ffunction-sections -mlong-calls -g3 -Wall -c -std=gnu99 \</span><br><span> -D__SAME54N19A__ -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 \</span><br><span style="color: hsl(0, 100%, 40%);">--I"../" -I"../config" -I"../examples" -I"../hal/include" -I"../hal/utils/include" -I"../hpl/cmcc" -I"../hpl/core" -I"../hpl/dmac" -I"../hpl/gclk" -I"../hpl/mclk" -I"../hpl/osc32kctrl" -I"../hpl/oscctrl" -I"../hpl/pm" -I"../hpl/port" -I"../hpl/ramecc" -I"../hpl/sercom" -I"../hpl/usb" -I"../hri" -I"../" -I"../config" -I"../usb" -I"../usb/class/cdc" -I"../usb/class/cdc/device" -I"../usb/device" -I"../" -I"../config" -I"../stdio_redirect" -I"../" -I"../dma_m2m" -I"../" -I"../CMSIS/Include" -I"../include"  \</span><br><span style="color: hsl(120, 100%, 40%);">+-I"../" -I"../config" -I"../hal/include" -I"../hal/utils/include" -I"../hpl/cmcc" -I"../hpl/core" -I"../hpl/dmac" -I"../hpl/gclk" -I"../hpl/mclk" -I"../hpl/osc32kctrl" -I"../hpl/oscctrl" -I"../hpl/pm" -I"../hpl/port" -I"../hpl/ramecc" -I"../hpl/sercom" -I"../hpl/usb" -I"../hri" -I"../" -I"../config" -I"../usb" -I"../usb/class/cdc" -I"../usb/class/cdc/device" -I"../usb/device" -I"../" -I"../config" -I"../stdio_redirect" -I"../" -I"../dma_m2m" -I"../" -I"../CMSIS/Include" -I"../include"  \</span><br><span> -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)"  -o "$@" "$<"</span><br><span>        @echo Finished building: $<</span><br><span> </span><br><span>@@ -251,7 +247,7 @@</span><br><span>     @echo ARM/GNU Assembler</span><br><span>      $(QUOTE)arm-none-eabi-as$(QUOTE) -x c -mthumb -DDEBUG -Os -ffunction-sections -mlong-calls -g3 -Wall -c -std=gnu99 \</span><br><span> -D__SAME54N19A__ -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 \</span><br><span style="color: hsl(0, 100%, 40%);">--I"../" -I"../config" -I"../examples" -I"../hal/include" -I"../hal/utils/include" -I"../hpl/cmcc" -I"../hpl/core" -I"../hpl/dmac" -I"../hpl/gclk" -I"../hpl/mclk" -I"../hpl/osc32kctrl" -I"../hpl/oscctrl" -I"../hpl/pm" -I"../hpl/port" -I"../hpl/ramecc" -I"../hpl/sercom" -I"../hpl/usb" -I"../hri" -I"../" -I"../config" -I"../usb" -I"../usb/class/cdc" -I"../usb/class/cdc/device" -I"../usb/device" -I"../" -I"../config" -I"../stdio_redirect" -I"../" -I"../dma_m2m" -I"../" -I"../CMSIS/Include" -I"../include"  \</span><br><span style="color: hsl(120, 100%, 40%);">+-I"../" -I"../config" -I"../hal/include" -I"../hal/utils/include" -I"../hpl/cmcc" -I"../hpl/core" -I"../hpl/dmac" -I"../hpl/gclk" -I"../hpl/mclk" -I"../hpl/osc32kctrl" -I"../hpl/oscctrl" -I"../hpl/pm" -I"../hpl/port" -I"../hpl/ramecc" -I"../hpl/sercom" -I"../hpl/usb" -I"../hri" -I"../" -I"../config" -I"../usb" -I"../usb/class/cdc" -I"../usb/class/cdc/device" -I"../usb/device" -I"../" -I"../config" -I"../stdio_redirect" -I"../" -I"../dma_m2m" -I"../" -I"../CMSIS/Include" -I"../include"  \</span><br><span> -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)"  -o "$@" "$<"</span><br><span>         @echo Finished building: $<</span><br><span> </span><br><span>@@ -260,7 +256,7 @@</span><br><span>     @echo ARM/GNU Preprocessing Assembler</span><br><span>        $(QUOTE)arm-none-eabi-gcc$(QUOTE) -x c -mthumb -DDEBUG -Os -ffunction-sections -mlong-calls -g3 -Wall -c -std=gnu99 \</span><br><span> -D__SAME54N19A__ -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 \</span><br><span style="color: hsl(0, 100%, 40%);">--I"../" -I"../config" -I"../examples" -I"../hal/include" -I"../hal/utils/include" -I"../hpl/cmcc" -I"../hpl/core" -I"../hpl/dmac" -I"../hpl/gclk" -I"../hpl/mclk" -I"../hpl/osc32kctrl" -I"../hpl/oscctrl" -I"../hpl/pm" -I"../hpl/port" -I"../hpl/ramecc" -I"../hpl/sercom" -I"../hpl/usb" -I"../hri" -I"../" -I"../config" -I"../usb" -I"../usb/class/cdc" -I"../usb/class/cdc/device" -I"../usb/device" -I"../" -I"../config" -I"../stdio_redirect" -I"../" -I"../dma_m2m" -I"../" -I"../CMSIS/Include" -I"../include"  \</span><br><span style="color: hsl(120, 100%, 40%);">+-I"../" -I"../config" -I"../hal/include" -I"../hal/utils/include" -I"../hpl/cmcc" -I"../hpl/core" -I"../hpl/dmac" -I"../hpl/gclk" -I"../hpl/mclk" -I"../hpl/osc32kctrl" -I"../hpl/oscctrl" -I"../hpl/pm" -I"../hpl/port" -I"../hpl/ramecc" -I"../hpl/sercom" -I"../hpl/usb" -I"../hri" -I"../" -I"../config" -I"../usb" -I"../usb/class/cdc" -I"../usb/class/cdc/device" -I"../usb/device" -I"../" -I"../config" -I"../stdio_redirect" -I"../" -I"../dma_m2m" -I"../" -I"../CMSIS/Include" -I"../include"  \</span><br><span> -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)"  -o "$@" "$<"</span><br><span>        @echo Finished building: $<</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13676">change 13676</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/13676"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ccid-firmware </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: If53df47089de9eb8498734c19d6a0420c1e79031 </div>
<div style="display:none"> Gerrit-Change-Number: 13676 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Kévin Redon <kredon@sysmocom.de> </div>