Commit Graph

259 Commits

Author SHA1 Message Date
Piotr Esden-Tempski e08e19e149 Added some more files to gitignore. 2010-12-27 17:40:52 +01:00
Piotr Esden-Tempski bf0b987fe3 Splitted out the usart recv and send functions to have blocking and non blocking versions of those. 2010-12-27 15:29:22 +01:00
Uwe Hermann 571c4d37d0 CAN: Reduce nesting level via code transformations. 2010-12-26 00:36:32 +01:00
Uwe Hermann 06d1a5ca80 CAN: Cosmetics and coding-style fixes. 2010-12-26 00:30:05 +01:00
Piotr Esden-Tempski e7d765ea90 Factored out CAN helper functions out of the example. Test code now also uses the received data. 2010-12-25 20:39:46 +01:00
Piotr Esden-Tempski c6e86901e8 Fixed timing settings. Now CAN test code works!!! 2010-12-23 21:53:02 +01:00
Piotr Esden-Tempski 1471b6d297 Various fixes to the can test program.
- External Clock is 8Mhz not 16Mhz
- CAN peripherial should be deinitialized at the beginning
- Added can receive interrupt handler
- Added some more led indicators of internal state (error reporting)
  - Orange: send indicator
  - Blue: message queue full indicator
  - Red: INACK failure indicator
2010-12-23 02:04:07 +01:00
Piotr Esden-Tempski d1e5a5069e Fixed behavior of rcc_peripheral_clear_reset... 2010-12-23 00:18:23 +01:00
Piotr Esden-Tempski 3c12fc6cd3 Initial implementation of CAN test program. 2010-12-22 22:57:25 +01:00
Piotr Esden-Tempski 7f15dd0fc2 Added selection of jtag serial number through make commandline. 2010-12-22 22:55:56 +01:00
Piotr Esden-Tempski 02f6c4a921 Fixed defines for extended id's. 2010-12-22 21:53:14 +01:00
Piotr Esden-Tempski 3d4e1fa8b8 Fixed wrong register name in bit defines. 2010-12-22 21:15:22 +01:00
Piotr Esden-Tempski 618912e45f Added CAN bit definitions. 2010-12-22 02:50:47 +01:00
Piotr Esden-Tempski 77fbe48a5e Added usart test version for obldc. 2010-12-21 20:55:04 +01:00
Piotr Esden-Tempski 45e57fa51e Corrected pwmleds to use the right GPIO defines. 2010-12-21 20:14:54 +01:00
Piotr Esden-Tempski c038ee0361 Added more pin remap pin definitions and gpio function remap definitions. 2010-12-21 20:14:54 +01:00
Piotr Esden-Tempski c38aac0d2a Cosmetic fix. 2010-12-21 20:14:49 +01:00
Uwe Hermann 5060261413 Cosmetics. 2010-12-20 19:52:51 +01:00
Piotr Esden-Tempski 44442e44c9 Added obldc systick test program. 2010-12-18 00:08:39 +01:00
Piotr Esden-Tempski 5e76fe66b7 Added obldc board led test program. 2010-12-18 00:08:34 +01:00
Piotr Esden-Tempski 58e36dab2d First implementation of CAN peripheral register definitions. 2010-12-17 21:45:38 +01:00
Piotr Esden-Tempski c031b6691e Moved common example make code to a central file. Added more gitignores. 2010-12-17 21:45:38 +01:00
Uwe Hermann eebbd508fc TIM1 GPIO remapping + gpio_port_config_lock().
Thanks to Philip Court <philip@greenstage.co.nz> for the patch.
2010-12-17 06:04:28 +01:00
Uwe Hermann 9539f3bf06 Fix typo. 2010-12-17 05:50:00 +01:00
Uwe Hermann e2d82ff44c Build fixes for ethernet.c, and hook it up. 2010-12-17 05:50:00 +01:00
Uwe Hermann af61aaef21 Minor ld script changes.
Add wildcards to the input section names.
This fixes the script for use with the "-ffunction-sections
-fdata-sections -Wl,--gc-sections" options when compiling/linking.

Also, discard the .eh_frame section. This section is emitted by GCC 4.4,
but not 4.5. Discarding it doesn't appear to break anything. I suspect this is
used for C++ exception implementation.

I found this to be a problem when building with GCC 4.4 (arm-elf),
because the USB DFU demo exceeded the 8k I allowed for it.

Thanks to Gareth McMullin <gareth@blacksphere.co.nz> for the patch.
2010-12-17 05:50:00 +01:00
Uwe Hermann 4ef35380e8 Register definitions for the STM32F107 Ethernet.
Thanks to Gareth McMullin <gareth@blacksphere.co.nz>.
2010-12-17 05:50:00 +01:00
Gareth McMullin 5bba6d9206 Fixed logic for clearing data toggle bits. 2010-11-04 18:20:28 +13:00
Gareth McMullin 87960830f4 Fixed HALT condition handling and data toggle. 2010-11-04 16:49:03 +13:00
Martin Mueller d6eacce827 add standard request 2010-11-04 00:44:47 +01:00
Uwe Hermann 6e090ccee1 Initial USB device stack for STM32.
Patch provided by Gareth McMullin <gareth@blacksphere.co.nz>,
thanks a lot!
2010-11-02 02:02:21 +01:00
Uwe Hermann 1621fde1f4 Add proper C runtime init, add reset handler.
The C runtime wasn't initialized correctly (there was garbage in the data
and bss sections). Add a reset_handler which initializes these sections
before calling the application's main() function.

The initial stack pointer is also defined in the linker script, allowing the
application to override with a linker command line option
"-Wl,--defsym,_stack=0x20005000".

Thanks to Gareth McMullin <gareth@blacksphere.co.nz>.
2010-10-19 02:00:28 +02:00
Uwe Hermann 68b7e255ad Add timer handling functions.
Thanks to Edward Cheeseman <cheesemanedward@gmail.com>.
2010-10-18 00:36:39 +02:00
Uwe Hermann 0287fd9029 Add more support functions for flash handling.
Thanks to Mark Butler <mbutler@physics.otago.ac.nz>.
2010-10-18 00:20:59 +02:00
Uwe Hermann 6ba179b361 Various cosmetic and coding style fixes. 2010-06-29 23:01:44 +02:00
Uwe Hermann 47b31246ca rcc: Cosmetics and coding style fixes. 2010-06-29 22:29:57 +02:00
Thomas Otto 388f940475 Initial EXTI support.
Thanks to Mark Butler <mbutler@physics.otago.ac.nz>.
2010-05-12 18:12:31 +02:00
Thomas Otto 898c118e1e Fix of rtc_set_counter_val(). supplied by Jim <lordjames@y7mail.com> 2010-05-12 16:26:01 +02:00
Thomas Otto 3dfeb30b41 Deleted double definition IWDG_PR_DIV256. 2010-05-11 22:03:30 +02:00
Thomas Otto d08ee7e333 Changed examples to new rcc definitions. 2010-05-11 14:50:55 +02:00
Thomas Otto b2bca1f1a4 Changed rtc.c to use the changed defines. 2010-05-11 14:36:56 +02:00
Thomas Otto 141a291e8d Changed rcc.c to use the new definitions. 2010-05-11 14:26:46 +02:00
Thomas Otto dd5553f122 Changed rcc.h defs to rcc_registername_ prefix. 2010-05-11 13:46:10 +02:00
Uwe Hermann 93fe67908a Add more RTC functions and an RTC example.
Thanks Lord James <lordjames@y7mail.com> for the patch!
2010-05-10 00:40:42 +02:00
Thomas Otto 8195b1a718 Renamed power.h -> pwr.h. 2010-05-06 00:54:21 +02:00
Thomas Otto fbb05e1536 Changed defs POWER->PWR to be in sync with datasheet. 2010-05-03 19:23:56 +02:00
Thomas Otto 8467f0ee25 Added BKP definitions. 2010-05-03 18:51:36 +02:00
Thomas Otto 5b48dc1845 Added definitions for CRC. 2010-05-03 16:49:08 +02:00
Thomas Otto 7450d0aad1 Added definitions for POWER control. 2010-05-03 15:31:55 +02:00
Thomas Otto e172a05f86 Added definitions for WWDG. 2010-05-03 14:17:07 +02:00