Damien George
bcc9298e5b
stmhal: Add TODO's to exti.c; fix delay in lcd.c.
2014-03-29 01:24:44 +00:00
Damien George
eed6f26bed
stmhal: Use rt_check_nargs to check number of arguments.
2014-03-26 22:46:03 +00:00
Damien George
174bca7b5a
stmhal: Remove ExtiMeta object and clean up class constants.
2014-03-26 22:35:55 +00:00
Damien George
9b196cddab
Remove mp_obj_type_t.methods entry and use .locals_dict instead.
...
Originally, .methods was used for methods in a ROM class, and
locals_dict for methods in a user-created class. That distinction is
unnecessary, and we can use locals_dict for ROM classes now that we have
ROMable maps.
This removes an entry in the bloated mp_obj_type_t struct, saving a word
for each ROM object and each RAM object. ROM objects that have a
methods table (now a locals_dict) need an extra word in total (removed
the methods pointer (1 word), no longer need the sentinel (2 words), but
now need an mp_obj_dict_t wrapper (4 words)). But RAM objects save a
word because they never used the methods entry.
Overall the ROM usage is down by a few hundred bytes, and RAM usage is
down 1 word per user-defined type/class.
There is less code (no need to check 2 tables), and now consistent with
the way ROM modules have their tables initialised.
Efficiency is very close to equivaluent.
2014-03-26 21:47:19 +00:00
Damien George
c12b2213c1
Change mp_method_t.name from const char * to qstr.
...
Addresses issue #377 .
2014-03-26 20:15:40 +00:00
Damien George
38f0c607b0
stmhal: Change Usart creation function to class make_new.
2014-03-25 23:40:54 +00:00
Damien George
3021632501
stmhal: Shuffle around some init functions in main().
2014-03-25 23:33:47 +00:00
Damien George
6cfda3084d
stmhal: Add I2C support; change accel driver to use new I2C.
2014-03-25 23:26:14 +00:00
Damien George
caac542b23
Proper support for registering builtin modules in ROM.
...
Comes with some refactoring of code and renaming of files. All modules
are now named mod*.[ch].
2014-03-25 14:18:18 +00:00
Dave Hylands
f0729b19ad
Fix netduino to build
...
Fix adc to work with resolution changes.
2014-03-24 23:26:41 -07:00
Damien George
da5e269e51
stmhal: Make pyb.ADC the ADC class (not a function).
2014-03-24 19:27:13 +00:00
Dave Hylands
1403298a65
stmhal - fixed up adc stuff
...
Added support for the ADC channels and mappings to make_pins.py
I'm not sure if the hal properly deals with the channel 16/18 differences
between the 40x and 42x. It seems to deal with it partially. This particular
aspect will need testing on a 42x or 43x.
2014-03-24 11:16:35 -07:00
Damien George
6609d636d0
stmhal: Add comment to DAC driver for function to implement.
2014-03-24 15:17:40 +00:00
Damien George
b13492f8ad
stmhal: Add DAC driver.
2014-03-24 15:15:33 +00:00
Damien George
f704e7f20e
stmhal: Improve REPL CTRL commands.
2014-03-24 12:23:37 +00:00
Damien George
2f8beb8d88
stmhal: Fix bug with USB CDC transmit buffer wrap around.
2014-03-24 12:23:03 +00:00
Damien George
0e9d96f18f
stmhal: Make Led, Servo and Accel their class, not a function.
2014-03-24 11:48:39 +00:00
Damien George
5fd2ebbbdd
stmhal: Update help function.
2014-03-24 11:27:56 +00:00
Damien George
f357a19202
stmhal: Fix issues with USB CDC init and receive.
...
Late USB enumeration could clear settings after they had been set.
Now fixed by not clearing some settings on init.
RX was blocking if received characters were not being processed, so
CTRL-C would not be picked up. Now "fixed" by not blocking, but
instead discarding incoming characters if they overflow the buffer.
2014-03-23 18:54:48 +00:00
Damien George
9050b2ee33
stmhal: Improved interface to accelerometer.
2014-03-23 15:34:54 +00:00
Damien George
6fc5449343
stmhal: Remove servo LED debugging.
2014-03-23 14:52:46 +00:00
Damien George
90834b956d
stm/stmhal: Change gammaf to tgammaf.
2014-03-23 14:00:02 +00:00
Damien George
506589a4b7
stmhal: Change flash MSD from fixed to removable drive.
2014-03-23 12:48:58 +00:00
Damien George
5a16658b21
stmhal: Copy changes to math.c from stm port.
2014-03-23 00:34:49 +00:00
Damien George
965e2bafea
stmhal: Improve LED intensity get/set method.
2014-03-23 00:25:09 +00:00
Damien George
5e756c9860
stmhal: Rename servo_TIM2_Handle -> TIM2_Handle.
2014-03-22 23:57:03 +00:00
Damien George
908a670dfc
stmhal: Add intensity method for blue LED.
...
As part of this, rejig the way TIM3 is initialised, since it's now
shared by USB CDC and the blue LED PWM.
2014-03-22 23:54:13 +00:00
Damien George
02fa035800
stmhal: Add input() and pyb.input() functions.
2014-03-22 23:53:50 +00:00
Damien George
8138205bea
stm/stmhal: Add more math stubs.
2014-03-22 20:44:43 +00:00
Damien George
0119fc7532
stmhal: Servo driver can move at a given speed.
2014-03-22 18:34:16 +00:00
Damien George
626f6b8133
stmhal: Add servo driver.
2014-03-22 15:52:33 +00:00
Damien George
d311655655
stmhal: Add time module with sleep function.
2014-03-22 15:06:29 +00:00
Damien George
ad7b84a7b9
stmhal: Add os module with a few basic functions.
2014-03-22 14:56:32 +00:00
Damien George
684164a8cf
stmhal: Add PYBv10 config; add RNG support.
2014-03-22 13:41:02 +00:00
Damien George
2fb37847a7
stmhal: Tidy up USB CDC+MSC device some more.
2014-03-22 13:21:58 +00:00
Damien George
fb1d6d097e
sthmal: Remove obsolete files.
2014-03-22 12:51:10 +00:00
Damien George
a6787edcea
stmhal: Tidy up USB device configuration. Make it use less RAM.
2014-03-22 12:46:23 +00:00
Damien George
fb25c2d95f
stmhal: USB CDC and MSC device work together.
2014-03-22 12:32:54 +00:00
Damien George
8913c04831
stmhal: Add support for USB MSC device.
...
This gives a functioning, independent MSC device.
2014-03-21 23:32:01 +00:00
Damien George
c070ff24a9
Disable some math functions until they work correctly.
2014-03-21 20:52:54 +00:00
Damien George
f78d9b1a72
stmhal: Add accelerometer driver; fix bug with LFN.
2014-03-20 23:33:30 +00:00
Damien George
494600bc99
stmhal: Add lcd.c to Makefile, and init LCD in main.
2014-03-19 13:12:30 +00:00
Damien George
e2e9011253
stmhal: Add LCD driver.
2014-03-19 13:11:59 +00:00
Damien George
b92d3e1fde
stmhal: Add fatfs support, working with flash and SD card.
2014-03-17 14:04:19 +00:00
Damien George
9e5ea4d768
stmhal: Add flash write support and flash storage driver.
2014-03-17 13:31:35 +00:00
Damien George
8a9a31e57b
stmhal: Add autoflash script, to flash a DFU device automatically.
2014-03-17 13:04:51 +00:00
Damien George
fb431bf556
stmhal: Add SD card support.
...
Just low-level read/write support. No filesystem yet.
2014-03-17 13:03:41 +00:00
Damien George
781687c772
stmhal: Remove unnecessary include.
2014-03-17 10:24:29 +00:00
Dave Hylands
9c122029ec
stmhal - Add usart support
2014-03-16 09:02:12 -07:00
Damien George
02a8543841
stmhal: Check CDC tx buffer has free space before filling with data.
2014-03-15 16:54:23 +00:00