aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/boards
Commit message (Collapse)AuthorAgeFilesLines
* st_stm32f401cdiscovery: USART3 pins; clearer pin referencesbnewbold2015-03-031-12/+10
|
* st_stm32f401cdiscovery: better wirish board supportbnewbold2015-03-031-5/+27
|
* replace unnecessary 'XXX' stringsbnewbold2015-03-011-1/+1
|
* st_stm32f401c_discovery: fix SPI pin numbersbnewbold2015-03-011-8/+9
|
* board support: stm32f401c_discovery -> st_stm32f401cdiscoverybryan newbold2015-03-012-4/+4
|
* stm32f401c_discovery: disable on-board SPI1 MEMS Gyro by defaultbryan newbold2015-03-011-3/+7
| | | | Signed-off-by: bryan newbold <bnewbold@robocracy.org>
* stm32f401c_discovery: add support for GPIO port E (up to 80 GPIO)bryan newbold2015-03-012-49/+69
| | | | | | Also fix comments/indexing for other GPIO ports. Signed-off-by: bryan newbold <bnewbold@robocracy.org>
* stm32f4: update board files STM32F401CDiscovery boardPerry Hung2015-03-012-16/+79
| | | | | -add basic pin map for STM32F401CDiscovery board -set CYCLE_PER_MICROSECOND
* stm32f4: add support for stm32f401CDiscovery boardPerry Hung2015-03-012-0/+196
| | | | Add support for stm32f401CDiscovery board running an STM32F401VGT6
* board support: opencm904 -> robotis_opencm904bnewbold2015-02-282-5/+0
|
* board support: cm900 -> robotis_cm900bnewbold2015-02-282-8/+2
|
* board support: nucleo -> st_nucleo_f103rbbnewbold2015-02-282-5/+5
| | | | Also correct attribution in Wirish board.h
* board support: rename VLDiscovery -> st_stm32vldiscoverybnewbold2015-02-282-4/+4
|
* Adding support for NUCLEO-F103RBGrégoire Passault2015-02-282-0/+251
| | | | Signed-off-by: Grégoire Passault <g.passault@gmail.com>
* Adding support for cm900 and opencm904 boards (robotis)Gregwar2014-02-204-0/+441
| | | | Signed-off-by: Grégoire Passault <g.passault@gmail.com>
* Hack: Provide a hook so Mini doesn't disable JTAG/SWD.Marti Bolivar2012-07-311-1/+3
| | | | | | | The nonexistence of a configuration system is starting to become kind of a pain. Oh well; let's keep piling hacks on until things break. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* Add pin alias enums to other boards.Marti Bolivar2012-07-245-0/+41
| | | | | | | | Repeat Anton's VLDiscovery trick on the rest of the boards. Leave out st_stm3220g_eval since that's just a teaser to get people to play with F2. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* Doxygen hacks and fixups.Marti Bolivar2012-06-281-1/+1
| | | | | | | | - Shut Doxygen up in various places - Fix some genuine docs bugs - Ignore sources we're not responsible for Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* maple: board.cpp: More comments.Marti Bolivar2012-06-081-5/+5
| | | | Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* maple: board.h: More comments, remove SYSTICK_RELOAD_VAL.Marti Bolivar2012-06-081-9/+14
| | | | | | | We derive SYSTICK_RELOAD_VAL from CYCLES_PER_MICROSECOND now, so let's hide it for expert use. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* maple/board.cpp: Demo weakness of boardInit().Marti Bolivar2012-06-071-0/+5
| | | | | | | This shows people what to do to write boardInit(), but also how to save work if they don't need it. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* maple/board.cpp: Use PMAP_ROW().Marti Bolivar2012-06-071-45/+55
| | | | Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* maple/board.cpp: Add more explanatory comments.Marti Bolivar2012-06-071-0/+16
| | | | Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* Preprocessor-fu to derive BOARD_HAVE_USARTn from <board/board.h>.Marti Bolivar2012-06-017-44/+1
| | | | Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* Bring back HardwareSerial.Marti Bolivar2012-06-017-6/+50
| | | | | | | | | | | | | | | | | | | | | | | | To make this happen, we need to have <board/board.h> tell us whether or not it's got each of the USARTs. Do that with BOARD_HAVE_USARTn, for n = 1,...,6. This lets us define HardwareSerial instances only when appropriate, and gets rid of some board-specific hacks we'd accumulated. The new <libmaple/usart.h> now has a convenience function for determining the bus rate by using the appropriate STM32_PCLKx macro, so we can shave a uint32 per instance, which is nice given that they're all going to be in memory. This changes the constructor arguments, but the API only specifies the semantics of the predefined instances, so this is still backwards-compatible. (We should look into storing the instances in Flash -- they don't change, after all.) We don't actually need struct usart_dev's definition in HardwareSerial.h, so replace it with a forward declaration and include <libmaple/usart.h> it in HardwareSerial.cpp instead. Assert some copyrights. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* STM32VLDiscovery support filesAnton Eltchaninov2012-05-032-0/+195
| | | | | Signed-off-by: Anton Eltchaninov <anton.eltchaninov@gmail.com> Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* [WIP] boards: Add st_stm3220g_eval.Marti Bolivar2012-04-112-0/+109
| | | | | | | This supports ST's STM3220G-EVAL, the standard "kitchen-sink" evaluation board for the STM32F2 series. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* Move public headers to include directories; related cleanups.Marti Bolivar2012-04-1110-60/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move libmaple/*.h to (new) libmaple/include/libmaple/. The new accepted way to include a libmaple header foo.h is with: #include <libmaple/foo.h> This is more polite in terms of the include namespace. It also allows us to e.g. implement the Arduino SPI library at all (which has header SPI.h; providing it was previously impossible on case-insensitive filesystems due to libmaple's spi.h). Similarly for Wirish. The old include style (#include "header.h") is now deprecated. libmaple/*.h: - Change include guard #defines from _FOO_H_ to _LIBMAPLE_FOO_H_. - Add license headers where they're missing - Add conditional extern "C" { ... } blocks where they're missing (they aren't always necessary, but we might was well do it against the future, while we're at it.). - Change includes from #include "foo.h" to #include <libmaple/foo.h>. - Move includes after extern "C". - Remove extra trailing newlines Note that this doesn't include the headers under libmaple/usb/ or libmaple/usb/usb_lib. These will get fixed later. libmaple/*.c: - Change includes from #include "foo.h" to #include <libmaple/foo.h>. Makefile: - Add I$(LIBMAPLE_PATH)/include/libmaple to GLOBAL_FLAGS. This allows for users (including Wirish) to migrate their code, but should go away ASAP, since it slows down compilation. Wirish: - Move wirish/**/*.h to (new) wirish/include/wirish/. This ignores the USB headers, which, as usual, are getting handled after everything else. - Similarly generify wirish/boards/ structure. For each supported board "foo", move wirish/boards/foo.h and wirish/boards/foo.cpp to wirish/boards/foo/include/board/board.h and wirish/boards/foo/board.cpp, respectively. Also remove the #ifdef hacks around the .cpp files. - wirish/rules.mk: put wirish/boards/foo/include in the include path (and add wirish/boards/foo/board.cpp to the list of sources to be compiled). This allows saying: #include <board/board.h> instead of the hack currently in place. We can allow the user to override this setting later to make adding custom board definitions easier. - Disable -Werror in libmaple/rules.mk, as the current USB warnings don't let the olimex_stm32_h103 board compile. We can re-enable -Werror once we've moved the board-specific bits out of libmaple proper. libraries, examples: - Update includes accordingly. - Miscellaneous cosmetic fixups. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* usb: Move some board-specific configuration to Wirish.Marti Bolivar2011-10-185-0/+18
| | | | | | | | | Create new BOARD_USB_DISC_DEV and BOARD_USB_DISC_BIT board-specific values. Use these as arguments to setupUSB() and disableUSB(). This helps make the USB stack more generic, and goes towards the resolution of an important FIXME. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* Add support for the Olimex STM32 H103 board.David Kiliani2011-09-272-0/+210
| | | | | | | | Pin layout and header files for the STM32 H103 prototype board from Olimex featuring an STM32F103RBT6 chip. This commit contains all necessary changes to compile with BOARD=olimex_stm32_h103. Signed-off-by: David Kiliani <mail@davidkiliani.de>
* maple_native.cpp: Cosmetics.Marti Bolivar2011-09-121-2/+2
| | | | | | Stick FSMC_BCR_MTYP_SRAM among the bitfields assigned to the BCR write. Technically not necessary (SRAM is the default after reset), but good for readability and future-proofing.
* Maple Native: Fix BOARD_NR_USED_PINS, boardUsedPins.Marti Bolivar2011-09-092-8/+4
|
* wirish/boards: Move includes into .cpp files.Marti Bolivar2011-09-017-26/+20
| | | | | The headers just #define some numbers, so there's no need for them to be including libmaple headers.
* maple_native.cpp: Add FSMC FIXME to resolve for 0.0.12.Marti Bolivar2011-09-011-0/+1
|
* maple-native.cpp: Comment tweak.Marti Bolivar2011-08-311-1/+1
| | | | | First in what is sure to be a long series of efforts in educating people that you can have GPIOs 56--100 or the SRAM chip, but not both.
* maple_native.cpp: mark initSRAMChip() static.Marti Bolivar2011-08-311-2/+2
|
* maple_native.h: Fix USART pins.Marti Bolivar2011-08-301-8/+8
| | | | | These apparently didn't get updated from an earlier prototype's values.
* Docs: Fix several board-specific values.Marti Bolivar2011-05-266-9/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Ugh. Fix BOARD_NR_ADC_PINS and boardADCPins on Maple, Maple Mini, and Maple RET6 Edition: Maple and Maple RET6 Ed. don't have ADC on pin 3. Seems likely that the error was due to AIN being missing on the silkscreen. They also have ADC on pin 13. This is not really true due to the voltage drop across the built-in LED. Maple Mini really should not include BOARD_LED_PIN among its ADC pins, since it's not broken out to a header. Fix BOARD_NR_PWM_PINS and boardPWMPins on Maple and RET6 Ed: Both boards falsely include pin 25 as a PWM pin. Maple RET6 Edition also lacks some PWM pins. Fix BOARD_NR_SPI on Maple RET6 Edition: SPI3 uses PB4, which is unusable since it's tied to NRST. This means that SPI3 is not available on the RET6 edition. Decreasing BOARD_NR_SPI to 2 to accomodate this. Leave the BOARD_SPI3_*_PIN defines intact so as not to further clutter the rest of the library with RET6-specific wrinkles.
* Punting the fix of Maple Native's boardUsedPins to 0.0.12.Marti Bolivar2011-05-192-2/+2
|
* Adding SPI3 definitions for Maple RET6 Edition.Marti Bolivar2011-05-111-1/+5
|
* Maple Mini pin map fix.Marti Bolivar2011-05-041-1/+1
| | | | Thanks, Xavier!
* Native and FSMC cleanups.Marti Bolivar2011-05-042-7/+21
| | | | | | | Got rid of native_sram.h (and native_sram.cpp), and pushed their functionality into maple_native.cpp. Fixed includes in maple_native.h. Fixed includes in fsmc.h.
* SPI refactor.Marti Bolivar2011-04-285-4/+52
| | | | | | | | | | | | | | | | | Still a polling driver, but the libmaple proper interface exposes enough that users enable the various interrupts and define their own IRQ handlers if they feel like it. Wirish HardwareSPI interface was largely redone; it's more like the Arduino implementation now, although there are some differences when I didn't like their API. The old methods are still there, but are deprecated and slated for deletion in 0.1.0. New board-specific values: BOARD_NR_SPI, BOARD_SPIx_NSS_PIN, BOARD_SPIx_MOSI_PIN, BOARD_SPIx_MISO_PIN, and BOARD_SPIx_SCK_PIN, for x from 1 to BOARD_NR_SPI. Documentation was updated appropriately.
* maple_native.cpp updates/fixes.Marti Bolivar2011-04-271-9/+9
|
* RET6 fixesMarti Bolivar2011-04-272-4/+19
|
* Better debug port support.Marti Bolivar2011-04-256-11/+52
| | | | | | | | | | | - gpio.h: afio_mapr_swj_config() renamed afio_cfg_debug_ports() - [new] wirish_debug.h: disableDebugPorts(), enableDebugPorts() - Maple, Maple Native, and Maple RET6 PIN_MAPs are now larger by 5, have mappings for the extra JTAG/SW pins. Documentation was updated appropriately.
* Updating Maple Native pins for prototype C.Marti Bolivar2011-04-132-109/+110
|
* Board-specific values; corresponding QA test generalizations.Marti Bolivar2011-03-308-18/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various board-specific #defines and arrays of pins added. For the changelog (some of this information predates this commit): * wirish/boards.h now declares the following arrays of pin numbers: * boardPWMPins - PWM-capable pins * boardADCPins - ADC-capable pins * boardUsedPins - pins already in use, e.g. BOARD_BUTTON_PIN It also declares a bool boardUsesPin(uint8 pin) function for convenient testing of whether a pin is in use. * wirish/boards/*.h now define: * BOARD_USART1_TX_PIN * BOARD_USART1_RX_PIN * BOARD_USART2_TX_PIN * BOARD_USART2_RX_PIN * BOARD_USART3_TX_PIN * BOARD_USART3_RX_PIN * BOARD_NR_GPIO_PINS (renamed from NR_GPIO_PINS) * BOARD_NR_USARTS (renamed from NR_USARTS) * BOARD_NR_PWM_PINS * BOARD_NR_ADC_PINS * BOARD_NR_USED_PINS * wirish/boards/maple_native.h now defines: * BOARD_UART4_TX_PIN * BOARD_UART4_RX_PIN * BOARD_UART5_TX_PIN * BOARD_UART5_RX_PIN (Unfortunately, wirish/boards/maple_RET6.h cannot, since at least one of the UART4/UART5 pins are used already; this will require layout changes for a wide-release Maple form factor RET6 board). * wirish/boards/*.cpp all include the corresponding array definitions. They all live in flash by default, thanks to the new __FLASH__ macro in wirish/wirish_types.h, which is a synonym for the existing __attr_flash #define in libmaple/libmaple_types.h. The documentation was updated to include this information. It also gained various FIXME/TODO comments related to its generalization across boards. The quality assurance-related examples (examples/qa-slave-shield.cpp and examples/test-session.cpp) now make heavy use of board-specific values to ensure portability.
* Final stm32_pin_info design candidate; ADC3 support on Native.Marti Bolivar2011-03-254-213/+216
| | | | | | | | | | | | | | | | | | | | Added an adc_dev to struct stm32_pin_info. This was necessary to add support for the channels on the Native which are only connected to ADC3, but it does add a bunch of NULLs to the PIN_MAPs. I don't think any other peripherals need representation on a per-pin basis. Each peripheral library will be responsible for keeping track of related GPIO ports and bits, and we can throw #defines in to boards/*.h for other things (e.g. BOARD_SPI1_MISO_PIN). Fleshed out the ADC refactor and brought it more in keeping with the new design as it evolves. A couple of other tweaks. Notably: waitForButtonPress() now takes a default argument meaning "wait forever". Removed Maple-specific documentation from core functions in io.h; this information will need to go into the individual board docs files.
* Adding /wirish/boards/ for easier porting; shrank PIN_MAPs.Marti Bolivar2011-03-248-0/+668
/wirish/boards/ contains xxx.h and xxx.cpp (for xxx=maple, maple_native, maple_mini, maple_RET6). The headers contain the board-specific #defines that used to live in boards.h (except BOARD_INIT, which was removed). The CPP files contain the PIN_MAP definitions that used to live in boards.cpp, and a proper boardInit() function to replace the old BOARD_INIT macro. This will make it easier to add new boards in the future. struct PinMapping was renamed struct stm32_pin_info, and was moved into a new wirish_types.h. Its external interrupt field was moved into struct gpio_dev, which saves memory by storing an afio_exti_port per port, rather than one per pin. Also rearranged the stm32_pin_info fields to improve packing. Maple's PIN_MAP is now down to below 500 bytes.