atmel-samd: Rename module classes so they don't conflict with names from ASF.

This commit is contained in:
Scott Shawcroft 2016-08-28 00:02:05 -07:00
parent 16fc045509
commit b883a15d82
12 changed files with 14 additions and 20 deletions

View File

@ -113,13 +113,13 @@ SRC_ASF = $(addprefix asf/sam0/,\
)
SRC_C = \
adc.c \
main.c \
modmachine.c \
modmachine_adc.c \
modmachine_dac.c \
modmachine_pin.c \
modutime.c \
mpdac.c \
mphalport.c \
pin.c \
pin_named_pins.c \
uart.c \
asf/common/services/sleepmgr/samd/sleepmgr.c \

View File

@ -2,7 +2,7 @@
#ifndef __MICROPY_INCLUDED_ATMEL_SAMD_BOARDS_FEATHER_M0_BLE_PINS_H__
#define __MICROPY_INCLUDED_ATMEL_SAMD_BOARDS_FEATHER_M0_BLE_PINS_H__
#include "pin.h"
#include "modmachine_pin.h"
extern const pin_obj_t pin_PA02;
extern const pin_obj_t pin_PB08;

View File

@ -2,7 +2,7 @@
#ifndef __MICROPY_INCLUDED_ATMEL_SAMD_BOARDS_FEATHER_M0_BLE_PINS_H__
#define __MICROPY_INCLUDED_ATMEL_SAMD_BOARDS_FEATHER_M0_BLE_PINS_H__
#include "pin.h"
#include "modmachine_pin.h"
extern const pin_obj_t pin_PA02;
extern const pin_obj_t pin_PB08;

View File

@ -18,7 +18,7 @@
#include "asf/sam0/drivers/system/system.h"
#include "mpconfigboard.h"
#include "pin.h"
#include "modmachine_pin.h"
#include "uart.h"
void do_str(const char *src, mp_parse_input_kind_t input_kind) {

View File

@ -31,9 +31,9 @@
#include "py/obj.h"
#include "py/runtime.h"
#include "adc.h"
#include "mpdac.h"
#include "pin.h"
#include "modmachine_adc.h"
#include "modmachine_dac.h"
#include "modmachine_pin.h"
#if MICROPY_PY_MACHINE

View File

@ -31,8 +31,8 @@
#include "py/runtime.h"
#include "py/binary.h"
#include "py/mphal.h"
#include "adc.h"
#include "pin.h"
#include "modmachine_adc.h"
#include "modmachine_pin.h"
#include "asf/sam0/drivers/adc/adc.h"

View File

@ -28,14 +28,8 @@
#include <stdint.h>
#include <string.h>
//
// #include "py/nlr.h"
#include "py/runtime.h"
// #include "timer.h"
#include "mpdac.h"
// #include "dma.h"
// #include "pin.h"
// #include "genhdr/pins.h"
#include "modmachine_dac.h"
#include "asf/sam0/drivers/dac/dac.h"

View File

@ -31,7 +31,7 @@
#include "py/nlr.h"
#include "py/runtime.h"
#include "py/mphal.h"
#include "pin.h"
#include "modmachine_pin.h"
#include "asf/sam0/drivers/port/port.h"

View File

@ -29,7 +29,7 @@
#include "py/runtime.h"
#include "py/mphal.h"
#include "pin.h"
#include "modmachine_pin.h"
STATIC void pin_named_pins_obj_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
pin_named_pins_obj_t *self = self_in;