Commit graph

1184 commits

Author SHA1 Message Date
Perry Hung 35811da8ab Removed stm32 rcc code. Briefly tested the basic set up procedure,
brings up the board to 72MHz, clocked by external crystal PLL boosted to
72MHz.
2010-03-26 00:58:23 -04:00
Perry Hung ca8033c92a Started removing STM32 STD RCC code. Compiles but doesn't run yet. 2010-03-25 19:50:13 -04:00
Perry Hung 8d6bf3b196 Removed main.cpp and updated example_main.cpp and added a blinky
version. New users are expected to write their or main.cpp or copy
from an example version.
2010-03-23 01:41:08 -04:00
Perry Hung 3639ad2cf0 Unified analog, digital, and timer pin mappings to implement the mapping
we discussed. There's no such thing as A0-A15 anymore.  You should now
be able to do something like:

unsigned int val;
pinMode(15, INPUT_ANALOG);
val = analogRead(15);
2010-03-23 01:25:00 -04:00
Perry Hung 48be688f45 Added open-drain output and analog-input modes 2010-03-22 23:52:08 -04:00
Perry Hung 96ce013f87 Merge branch 'master' of git@github.com:leaflabs/maple-library 2010-03-22 23:37:50 -04:00
Perry Hung 76e746273c Add a carriage return for println, remove it from the usart send
routine.
2010-03-22 23:19:36 -04:00
bnewbold b9dc087750 Configure port D correctly so that header pin 25 works; this may
have unintended consequences?
2010-03-18 18:35:59 -04:00
bnewbold f045e25ac5 building instructions and added OS forking to Makefile 2010-03-16 20:28:55 -04:00
bnewbold 8be3c78e0a actual files needed for IDE get copied 2010-03-13 02:54:24 -05:00
bnewbold 9a0efba240 script to copy src files to IDE; renamed README 2010-03-12 12:25:30 -05:00
iperry 254f10ffb2 new pin mapping
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@149 749a229e-a60e-11de-b98f-4500b42dc123
2010-03-11 05:24:55 +00:00
iperry 7fb999bb52 turn usb interrupts on after failed assert so bootloader still works
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@148 749a229e-a60e-11de-b98f-4500b42dc123
2010-03-11 05:17:57 +00:00
iperry 64444756ec turn usb interrupts on after failed assert so bootloader still works
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@147 749a229e-a60e-11de-b98f-4500b42dc123
2010-03-11 05:17:46 +00:00
ajmeyer@mit.edu 966e4ac594 modded the library makefile to work with patched dfu-util, also added the USER_FLASH section to the rom linker
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@131 749a229e-a60e-11de-b98f-4500b42dc123
2010-02-12 20:57:45 +00:00
iperry 2826bbb424 Enabled 39 GPIOs for digitalWrite(), fixed timer/usart collisions on PWM/USART pins
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@120 749a229e-a60e-11de-b98f-4500b42dc123
2010-01-17 02:57:17 +00:00
iperry d468ccac44 added serial1 support
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@113 749a229e-a60e-11de-b98f-4500b42dc123
2010-01-13 20:25:45 +00:00
iperry a597f3f3ce forgot to turn on the interrupt for usar3
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@110 749a229e-a60e-11de-b98f-4500b42dc123
2010-01-10 14:06:15 +00:00
iperry f1598e62ac enabled serial3
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@109 749a229e-a60e-11de-b98f-4500b42dc123
2010-01-10 13:22:52 +00:00
iperry c7163bee35 typo
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@108 749a229e-a60e-11de-b98f-4500b42dc123
2010-01-10 07:59:00 +00:00
iperry 06576660b9 git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@107 749a229e-a60e-11de-b98f-4500b42dc123 2010-01-10 07:58:30 +00:00
iperry 5ca8a80d1f moved jtag target and fixed flash target
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@106 749a229e-a60e-11de-b98f-4500b42dc123
2010-01-10 07:42:49 +00:00
iperry 8012e52afb Tweaked makefile to get rid of silly make flags. Added a udev rule in support/ to eliminate sudo req for make program
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@105 749a229e-a60e-11de-b98f-4500b42dc123
2010-01-10 07:30:18 +00:00
iperry a038b4f987 changed math.h to wiring_math.h to avoid collision with newlib's math library
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@99 749a229e-a60e-11de-b98f-4500b42dc123
2010-01-08 01:22:43 +00:00
ajmeyer@mit.edu 2addfe8c42 Added a print class for USB, works identically to the Serial object. Bugs out if you try and pump more than 64 bytes through it in a single packet (which is really the OS's decision). This can be fixed
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@93 749a229e-a60e-11de-b98f-4500b42dc123
2010-01-07 03:31:35 +00:00
ajmeyer@mit.edu 5f423270cd added a simpler main.cpp and moved the complicated stuff into a separate file
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@88 749a229e-a60e-11de-b98f-4500b42dc123
2009-12-27 09:17:32 +00:00
iperry b6674cd738 Fixed delayMicroseconds, changed serial interface, added an (untested) runtime check for pwm/serial collision, moved more headers around.
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@79 749a229e-a60e-11de-b98f-4500b42dc123
2009-12-25 08:39:24 +00:00
ajmeyer@mit.edu 3bb04834ff added demo code on main.cpp to build a simple two way channel over the virtual serial port. To use this, run ln -s /dev/ttyACM0 /dev/ttyS9 then open up Maple IDE and select ttyS9 as the serial port. you should be able to see the count of the number of bytes in as well as the blink message
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@78 749a229e-a60e-11de-b98f-4500b42dc123
2009-12-19 18:23:31 +00:00
ajmeyer@mit.edu 6a0091418a added a usb.h and usb.c to cover some of the low level access functions that we can use to build the usb serial port. my sandbox widgets are in main.cpp, look at it then throw it out. I adjusted the stm32f10x_conf.h file to properly NOT include certain st lib files that werent being used, and modified the NVIC init to cope with the bootloader
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@76 749a229e-a60e-11de-b98f-4500b42dc123
2009-12-19 15:14:29 +00:00
iperry acf59b1abb Added licensing. Moved lots of header files around. Added HardwareSerial reads, writes. Tweaked some of the util and assert functions. Added various useful routines for printing stuff to the serial port. Continued moving out stm32lib. Slightly more consistent naming, this will come in another change.
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@74 749a229e-a60e-11de-b98f-4500b42dc123
2009-12-19 10:53:07 +00:00
ajmeyer@mit.edu af4c4985ce fixed some minor naming issues in usb.c/h usb_serialWriteStr is nonfunctional
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@73 749a229e-a60e-11de-b98f-4500b42dc123
2009-12-19 08:41:53 +00:00
ajmeyer@mit.edu 7021adc50a added USB support (TX over virtual com port), the linker modifications to work with the bootloader, a modified libcs-lanchon-stm32.a, and the arduino-required main.cxx and WProgram.h
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@72 749a229e-a60e-11de-b98f-4500b42dc123
2009-12-19 08:03:54 +00:00
iperry a8aaabae4c removed extraneous files, stm32lib examples
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@70 749a229e-a60e-11de-b98f-4500b42dc123
2009-12-17 02:46:08 +00:00
iperry 32e57dac2e Initial commit of library code, moved from leaftest repo
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@69 749a229e-a60e-11de-b98f-4500b42dc123
2009-12-17 02:37:07 +00:00