Skip to content

Commit c12d94e

Browse files
committed
Merge remote-tracking branch 'remotes/origin/master' into 723
2 parents a4034f7 + 20cd90e commit c12d94e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+167
-160
lines changed

SConscript

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ src += Glob('lib/mp-readline/*.c')
99
src += Glob('lib/utils/*.c')
1010
src += Glob('extmod/*.c')
1111
src += Glob('port/*.c')
12+
src += Glob('port/modules/*.c')
13+
src += Glob('port/modules/machine/*.c')
1214
src += Glob('lib/netutils/*.c')
1315
src += Glob('lib/timeutils/*.c')
1416
src += Glob('drivers/bus/*.c')
1517
src += Glob('port/native/*.c')
1618

1719
path = [cwd + '/']
1820
path += [cwd + '/port']
21+
path += [cwd + '/port/modules']
22+
path += [cwd + '/port/modules/machine']
1923

2024
LOCAL_CCFLAGS = ''
2125

port/fdfile.h

Lines changed: 0 additions & 40 deletions
This file was deleted.

port/help.c

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ mp_obj_t machine_hard_i2c_make_new(const mp_obj_type_t *type, size_t n_args, siz
8383
struct rt_i2c_bus_device *i2c_bus = rt_i2c_bus_device_find(iic_device);
8484

8585
if (i2c_bus == RT_NULL) {
86-
rt_kprintf("can't find %s device\r\n", iic_device);
86+
mp_printf(&mp_plat_print, "can't find %s device\r\n", iic_device);
8787
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "I2C(%s) doesn't exist", iic_device));
8888
}
8989

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ mp_obj_t machine_hard_spi_make_new(const mp_obj_type_t *type, size_t n_args, siz
5656

5757
struct rt_spi_device *rt_spi_device = (struct rt_spi_device *) rt_device_find(spi_dev_name);
5858
if (rt_spi_device == RT_NULL || rt_spi_device->parent.type != RT_Device_Class_SPIDevice) {
59-
rt_kprintf("ERROR: SPI device %s not found!\n", spi_dev_name);
59+
mp_printf(&mp_plat_print, "ERROR: SPI device %s not found!\n", spi_dev_name);
6060
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "SPI(%s) doesn't exist", spi_dev_name));
6161
}
6262

0 commit comments

Comments
 (0)