M d2x_adc.c => platform_samd_adc.c +0 -0
M d2x_adc.h => platform_samd_adc.h +0 -0
M samd_clocks.c => platform_samd_clocks.c +0 -0
M d2x_clocks.h => platform_samd_clocks.h +9 -3
@@ 18,8 18,12 @@
*
*/
-#ifndef D2X_CLOCKS_H
-#define D2X_CLOCKS_H
+#pragma once
+
+#include <stdbool.h>
+#include <stdint.h>
+
+#include "libtools/ctl_tools.h"
enum d2x_clock_type {
D2X_INTERNAL_32K_CLK,
@@ 28,4 32,6 @@ enum d2x_clock_type {
D2X_INTERNAL_8M_CLK
};
-#endif /* D2X_CLOCKS_H */
No newline at end of file
+CTL_STATUS_t sercom_init_clocks(uint8_t sercom_no, bool use_dfll48);
+CTL_STATUS_t sercom_disable_clock(uint8_t sercom_no);
+
M samd_common.h => platform_samd_common.h +0 -0
M samd_devinfo.c => platform_samd_devinfo.c +0 -0
M samd_devinfo.h => platform_samd_devinfo.h +0 -0
M d2x_eic.c => platform_samd_eic.c +0 -0
M d2x_eic.h => platform_samd_eic.h +2 -2
@@ 25,7 25,7 @@
#include <stdbool.h>
#include <sam.h>
-#include "d2x_clocks.h"
+#include "platform_samd_clocks.h"
enum EIC_Pin_Sense {
SENSE_EDGE_NONE = EIC_CONFIG_SENSE0_NONE_Val,
@@ 46,4 46,4 @@ int d2x_eic_disable(void);
int d2x_eic_enable_int(uint8_t int_no, bool filter, enum EIC_Pin_Sense sense, eic_callback_fn fn, void *user_data);
int d2x_eic_disable_int(uint8_t int_no);
-#endif /* D2X_EIC_H */
No newline at end of file
+#endif /* D2X_EIC_H */
M d2x_gpio.c => platform_samd_gpio.c +0 -0
M d2x_gpio.h => platform_samd_gpio.h +0 -0
M samd_i2c.c => platform_samd_i2c.c +0 -0
M samd_i2c.h => platform_samd_i2c.h +0 -0
M d2x_nvm.c => platform_samd_nvm.c +0 -0
M d2x_nvm.h => platform_samd_nvm.h +0 -0
M d2x_rtc.c => platform_samd_rtc.c +0 -0
M d2x_rtc.h => platform_samd_rtc.h +2 -4
@@ 18,12 18,11 @@
*
*/
-#ifndef D2X_RTC_H
-#define D2X_RTC_H
+#pragma once
#include <stdint.h>
-#include "d2x_clocks.h"
+#include "platform_samd_clocks.h"
typedef void (*rtc_handler_fn)(void);
@@ 47,4 46,3 @@ void d2x_rtc_set_date(const struct d2x_r
void d2x_rtc_enable(void);
void d2x_rtc_disable(void);
-#endif /* D2X_RTC_H */
No newline at end of file
M samd_sercom.c => platform_samd_sercom.c +0 -0
M samd_sercom.h => platform_samd_sercom.h +0 -0
M d2x_sleep.h => platform_samd_sleep.h +0 -0
M samd_spi.c => platform_samd_spi.c +0 -0
M samd_spi.h => platform_samd_spi.h +0 -0
M d2x_tc.c => platform_samd_tc.c +0 -0
M d2x_tc.h => platform_samd_tc.h +0 -0
M d2x_tickless_idle.c => platform_samd_tickless_idle.c +0 -0
M d2x_tickless_idle.h => platform_samd_tickless_idle.h +0 -0
M samd_uart.c => platform_samd_uart.c +0 -0
M samd_uart.h => platform_samd_uart.h +0 -0
M d2x_wdt.c => platform_samd_wdt.c +0 -0
M d2x_wdt.h => platform_samd_wdt.h +0 -0
R samd_clocks.h => +0 -29
@@ 1,29 0,0 @@
-/* Peripheral Library for Atmel SAMD20 and SAMD21
- *
- * Permissive open source ISC license.
- *
- * Copyright (c) 2015 Tero Koskinen <tero.koskinen@iki.fi>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- */
-
-#pragma once
-
-#include <stdbool.h>
-#include <stdint.h>
-
-#include "libtools/ctl_tools.h"
-
-CTL_STATUS_t sercom_init_clocks(uint8_t sercom_no, bool use_dfll48);
-CTL_STATUS_t sercom_disable_clock(uint8_t sercom_no);