aboutsummaryrefslogtreecommitdiff
path: root/lib/vector.c
diff options
context:
space:
mode:
authorUwe Hermann2010-03-04 21:25:25 +0100
committerUwe Hermann2010-03-04 21:25:25 +0100
commite7cadf0822815eb0743b6bead30166f23117af8a (patch)
treee505ec9f7c99c0a9c8eabef79833e139b23e56b9 /lib/vector.c
parent92194abda482654d05df88fa7c0e8c5ed477d934 (diff)
Use direct #includes instead of libopenstm32.h.
Diffstat (limited to 'lib/vector.c')
-rw-r--r--lib/vector.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/vector.c b/lib/vector.c
index 055fa79..1a8043d 100644
--- a/lib/vector.c
+++ b/lib/vector.c
@@ -17,8 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libopenstm32.h>
-
#define WEAK __attribute__ ((weak))
void main(void);
@@ -96,7 +94,7 @@ void WEAK dma2_channel3_isr(void);
void WEAK dma2_channel4_5_isr(void);
__attribute__ ((section(".vectors")))
- void (*const vector_table[]) (void) = {
+void (*const vector_table[]) (void) = {
(void *)0x20000800, /* Use 2KB stack (0x800 bytes). */
main, /* Use main() as reset vector for now. */
nmi_handler,
@@ -181,6 +179,7 @@ void blocking_handler(void)
void null_handler(void)
{
+ /* Do nothing. */
}
#pragma weak nmi_handler = null_handler