And even more d2x to samd renamings.
8 files changed, 12 insertions(+), 14 deletions(-)

M d2x_eic.c
M d2x_gpio.c
M d2x_nvm.c
M d2x_nvm.h
M d2x_common.h => samd_common.h
M samd_devinfo.c
M samd_devinfo.h
M samd_uart.c
M d2x_eic.c +1 -1
@@ 23,7 23,7 @@ 
 #include <sam.h>
 #include <ctl_api.h>
 #include <stdbool.h>
-#include "d2x_common.h"
+#include "samd_common.h"
 #include "d2x_eic.h"
 
 struct interrupt_pair

          
M d2x_gpio.c +1 -1
@@ 19,7 19,7 @@ 
  */
 #include <sam.h>
 
-#include "d2x_common.h"
+#include "samd_common.h"
 #include "d2x_gpio.h"
 
 int gpio_set_input(enum SAMD2X_PORT port, uint32_t pin)

          
M d2x_nvm.c +1 -1
@@ 21,7 21,7 @@ 
 #include <debugio.h>
 #include <sam.h>
 
-#include "d2x_common.h"
+#include "samd_common.h"
 #include "d2x_nvm.h"
 #include "d2x_devinfo.h"
 

          
M d2x_nvm.h +1 -1
@@ 21,7 21,7 @@ 
 #ifndef D2X_NVM_H
 #define D2X_NVM_H
 
-#include "d2x_common.h"
+#include "samd_common.h"
 
 /*
  * flash organization:

          
M d2x_common.h => samd_common.h +6 -6
@@ 17,11 17,11 @@ 
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  *
  */
-#ifndef D2X_COMMON_H
-#define D2X_COMMON_H
+
+#pragma once
 
-#define D2X_OK 0
-#define D2X_FAIL -1
-#define D2X_TIMEOUT -2
+#define SAMD_STATUS_OK 0
+#define SAMD_STATUS_FAIL -1
+#define SAMD_STATUS_TIMEOUT -2
 
-#endif /* D2X_COMMON_H */
+

          
M samd_devinfo.c +1 -1
@@ 23,8 23,8 @@ 
 #include <stddef.h>
 #include <sam.h>
 
+#include "samd_common.h"
 #include "samd_devinfo.h"
-#include "d2x_common.h"
 
 static const uint32_t bootloader_size_mapping[] =
   {

          
M samd_devinfo.h +0 -2
@@ 24,8 24,6 @@ 
 
 #include <stdint.h>
 
-#include "d2x_common.h"
-
 struct samd_devinfo {
   uint32_t flash_size;
   uint32_t flash_page_size;

          
M samd_uart.c +1 -1
@@ 24,7 24,7 @@ 
 #include <ctl_api.h>
 #include <sam.h>
 
-#include "d2x_common.h"
+#include "samd_common.h"
 #include "d2x_gpio.h"
 #include "samd_uart.h"
 #include "samd_sercom.h"