BigEd / python-on-a-chip

Automatically exported from code.google.com/p/python-on-a-chip
Other
1 stars 3 forks source link

Provide support for the PIC24 / dsPIC33 platforms #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This ticket proposes support of the PIC24 / dsPIC33 platforms.

Original issue reported on code.google.com by bjones460@gmail.com on 28 Jan 2010 at 6:15

GoogleCodeExporter commented 9 years ago
r502:
- Refactored get_xxx functions to work with Python objects, not just arguments
- Added Python wrappers for several more functions
- Moved wrappers to pyFuncsInC.c/h

Original comment by bjones460@gmail.com on 24 Jun 2010 at 2:34

GoogleCodeExporter commented 9 years ago
r506:
- More digital I/O functions added
- More tests added

Original comment by bjones460@gmail.com on 29 Jun 2010 at 4:42

GoogleCodeExporter commented 9 years ago
r507:
- Started work on analog input
- Doxygen fixes
- Refactored code to expose helper funcs in pyFuncInC
- More unit and system tests added

Original comment by bjones460@gmail.com on 29 Jun 2010 at 4:44

GoogleCodeExporter commented 9 years ago
r508:
- Merged trunk
- Commented out bytearray code for now
- All tests passed

Original comment by bjones460@gmail.com on 29 Jun 2010 at 9:25

GoogleCodeExporter commented 9 years ago
r509:
- Added remainder of PIC24 support library
- Added ADC reads based on that library

Original comment by bjones460@gmail.com on 30 Jun 2010 at 9:24

GoogleCodeExporter commented 9 years ago
r510:
- Initial unit tests for PWM module
- First pass code for PWM
- Fix to error in _bi.py fix

Original comment by bjones460@gmail.com on 1 Jul 2010 at 2:46

GoogleCodeExporter commented 9 years ago
r511:
- Finished pwm init code
- Updated pmImgCreator.py to match #defines in pmfeatues.h
- System, unit tests for PWM complete
- Wrapped PWM code in C for Python calling

Original comment by bjones460@gmail.com on 2 Jul 2010 at 5:04

GoogleCodeExporter commented 9 years ago
r512:
- Finished PWM code
- Added more unit and system tests
- Added in ADC simulation ability
- Cut down pmfeatures.h even more to fit in 64K
- Added a getFloat function

Original comment by bjones460@gmail.com on 5 Jul 2010 at 7:34

GoogleCodeExporter commented 9 years ago
r513:
- Addressed the following code review items, courtesy of Dean Hall, with one 
modification: rather than change pmImgCreator.py, this version provides the 
full-featured VM with all the #defines enabled

====    =================================   ====================================
r       File:LineNum                        Comment
====    =================================   ====================================
415     docs/src/HowToPortPyMite.txt:54     Remove the question in the 
parentheses.
438     src/vm/pmEmptyPlatformDefs.h:28     Remove "No ... system test..." 
comment
445     src/tests/system/Makefile           THANK YOU for fixing this!!!!
461     readme.h                            I would like to get rid of readme.h 
if possible to eliminate redundant text.
510     src/lib/__bi.py:904                 Move "NATIVE_SET_TOS(PM_NONE);" 
after the #endif, so None is on TOS.
511     src/tools/pmImgCreator.py           Do not merge these changes.  *(1)
512     src/tools/pmImgCreator.py           (same as 511)
====    =================================   ====================================

(1)     The workaround for this situation that I've been using is to make a
       patch file using "svn diff", put the patch file in src/platform/pic24/
       and create a "make once" rule in pic24/Makefile to apply the patch.

Original comment by bjones460@gmail.com on 6 Jul 2010 at 7:34

GoogleCodeExporter commented 9 years ago
r518:
Resolved three issues found by Dean

src/platform/pic24/pyFuncsInC.c:1752
   Can a non-py form of this function be called from within plat_init() to
   avoid a py wrapper?  Doing so would save some heap.

Resolution: converted vars to #defines and eliminated the need for initXxx 
functions

src/platform/pic24/plat.c:76
   Consider disabling the Timer2 interrupt in plat_deinit() so that
   pm_vmPeriodic() isn't called after the VM exits.

Resolution: disabled timer interrupt

src/platform/pic24/pyFuncsInC.c:88
   configDigitalPinPy() calls CHECK_NUM_ARGS(6), but its python wrapper,
   digital_io.__init__() (src/platform/pic24/pic24_dspic33.py:64)
   accepts a variable number of args (4-6)

Resolution: now accepts variable args, default args

Original comment by bjones460@gmail.com on 13 Jul 2010 at 4:10

GoogleCodeExporter commented 9 years ago
r522:
- Merged in the PIC24/dsPIC33 branch.
- Included makefile tweaks to support a "bytecode" target
- Fixes system test makefile bug to rebuild only when necessary
- Minor clean-up to doxygen comments in VM

Original comment by bjones460@gmail.com on 23 Jul 2010 at 9:30

GoogleCodeExporter commented 9 years ago

Original comment by dwhall...@gmail.com on 25 Jul 2010 at 3:28