aboutsummaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2010-05-20moved the usb directory to its proper home in ./libmapleAJM
also, removed some old usb file, bootVect.h, which setup the static table for the runtime usb lib that no longer exists and was provided by the bootloader rev 1
2010-05-20added a delay to the resrt slide to allow enough time for graceul closures ↵AJM
of the serial port
2010-05-20fixed the receive 0 bytes bug, where full buffers block the usb port and ↵AJM
never get re-enabled.
2010-05-20added carraige feed to newline send on the test function usbSendHelloAJM
2010-05-20fixed the FIFO bug, tx/rx now seems stable and ready for integration.AJM
2010-05-20theres still a remaining bug whereby fast consecutive read/writes to serial ↵AJM
might crash the fifo, but other than that it seems to work. see usbSendHello for an example. include usb.h in your application, and call setupUSB() to turn everything on.
2010-05-20FINALLY figured out the tx/rx bugs, so the whole stack is officially ↵AJM
working. for future reference its ESSENTIAL that you set the EPNUM flag of the global device struct appropriately regardless of whether or not you enable or configure more endpoints.
2010-05-20finally got TX working without any delay, there is some weird timing ↵AJM
involved in what happens when the line state is toggled (host port disconnected) and theres still data waiting to go out, this will hang any while(txCount != 0) calls. similarly, sending data without checking txCount != 0 will hard fault the chip. This is all handled now by usbSendBytes, which returns -1 for unconnected, and 0 for simply 'waiting to send'
2010-05-20c++ ified all of the usb_core files, added the auto-reset feature to the ↵AJM
virtual com port, got the descriptors in functional although not pretty order that can be fixed using the attribute packing
2010-05-20added virtual com port echoing as the test configuration for the usb serial codeAJM
2010-05-20finished the entire low level usb app for virtual com minus the precise ↵AJM
handling of get/send data callbacks and toggle line state. completely undebugged for now.
2010-05-20added the usb_config file for general setup settings and filled out any ↵AJM
undefined macros in the usb descriptor files
2010-05-20added the string descriptors to the descriptor set so that when you plug in ↵AJM
the device it can actually report "LeafLabs Maple R3"
2010-05-20Added the virtual com port descriptors based on the LUFA/MYUsb model (which ↵AJM
was great). Still need to flesh out quite a few macros that were referenced but never defined.
2010-05-20added the skeleton dir for the usb application lib, since were still ↵AJM
dependent on st for low level access, the entire usb stack lives in the core application level (not in libmaple). the next project should be to include some low level usb stack in the libmaple
2010-04-25fix: Remove core directory from botched merge.Perry Hung
2010-04-25Refactoring:Perry Hung
The 'core' directory has now been renamed to 'wirish.' Wirish is our version of the Arduino Wiring language.
2010-04-24Initial SPI implementation.Perry Hung
Squashed commit of the following: commit b41eb846ca60559cff242d0c550699eb8f309909 Author: Perry Hung <iperry@alum.mit.edu> Date: Sat Apr 24 04:09:16 2010 -0400 Turn the other peripherals back on. Not extensively tested for interactions between peripherals. commit bf4fc3bf6bc02342ae508b52fb4515d361d626f6 Author: Perry Hung <iperry@alum.mit.edu> Date: Sat Apr 24 03:16:35 2010 -0400 Upper level libmaple interface Added a C++ HardwareSPI class to access the SPI interface. See HardwareSPI.cpp and HardwareSPI.h for documentation. commit 17e0e5edde60e9bf2aa4d52173ad7d47d6d6da75 Author: Perry Hung <iperry@alum.mit.edu> Date: Thu Apr 22 02:36:01 2010 -0400 Initial SPI Polling implementation. Initial commit of a polling-based SPI driver. The driver is limited to synchronous, blocking sends and a 8-bit data frame format. Tested on SPI1 and SPI2. Other peripherals are temporarily disabled, and the rx function is untested until I find a good peripheral to test everything on.
2010-04-22PinMode pullup bug fix, wiring pin mode bug fixPerry Hung
2010-04-20removed annoying warnings from core/wiring.c and fixed two compile errors on ↵bnewbold
with the example main.cpp
2010-04-19Added libmaple gpio_read_bitPerry Hung
2010-04-01Fix deleted lines from botched relicensing.Perry Hung
Accidentally deleted too many lines during relicensing, fix the remaining files. Should compile now.
2010-03-31Licensing: Relicensed libmaple under the MIT License.Perry Hung
Relicensed the bulk of libmaple under the more permissive MIT License, from GPLv3. Files that were largely or entirely derived from the Arduino, STM, or Lanchon retain their original licenses.
2010-03-31Removed inttypes.hPerry Hung
Removed inttypes.h from libmaple. Will have another pass through to use the standard libmaple types, but will come in another commit.
2010-03-30Removed STM32 flash code, replaced with barebones hacks for now.Perry Hung
At this point, there shouldn't be any STM code being compiled and linked against. There are still a bunch of STM header includes, though.
2010-03-30Merge branch 'master' into rcc-devPerry Hung
Conflicts: Makefile
2010-03-31Major hierarchy reorganization; see README.bnewbold
copy-to-ide and Makefile updated to conform; .gitignore added; LICENSE added