dynamic load and run users binary file. self write the flash memory.

Dependencies:   mbed

Committer:
okini3939
Date:
Tue Dec 27 17:02:56 2011 +0000
Revision:
3:5cf31386b95d
Parent:
1:fbb938b95cef

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
okini3939 1:fbb938b95cef 1 #include "mbed.h"
okini3939 1:fbb938b95cef 2
okini3939 1:fbb938b95cef 3 void jump (int vect);
okini3939 1:fbb938b95cef 4
okini3939 1:fbb938b95cef 5 extern "C" {
okini3939 1:fbb938b95cef 6
okini3939 1:fbb938b95cef 7 void SysTick_Handler() {
okini3939 1:fbb938b95cef 8 jump(15);
okini3939 1:fbb938b95cef 9 }
okini3939 1:fbb938b95cef 10
okini3939 1:fbb938b95cef 11 void WDT_IRQHandler () {
okini3939 1:fbb938b95cef 12 jump(16);
okini3939 1:fbb938b95cef 13 }
okini3939 1:fbb938b95cef 14
okini3939 1:fbb938b95cef 15 void TIMER0_IRQHandler() {
okini3939 1:fbb938b95cef 16 jump(17);
okini3939 1:fbb938b95cef 17 }
okini3939 1:fbb938b95cef 18
okini3939 1:fbb938b95cef 19 void TIMER1_IRQHandler() {
okini3939 1:fbb938b95cef 20 jump(18);
okini3939 1:fbb938b95cef 21 }
okini3939 1:fbb938b95cef 22
okini3939 1:fbb938b95cef 23 void TIMER2_IRQHandler() {
okini3939 1:fbb938b95cef 24 jump(19);
okini3939 1:fbb938b95cef 25 }
okini3939 1:fbb938b95cef 26
okini3939 1:fbb938b95cef 27 void TIMER3_IRQHandler() {
okini3939 1:fbb938b95cef 28 jump(20);
okini3939 1:fbb938b95cef 29 }
okini3939 1:fbb938b95cef 30
okini3939 1:fbb938b95cef 31 void UART0_IRQHandler() {
okini3939 1:fbb938b95cef 32 jump(21);
okini3939 1:fbb938b95cef 33 }
okini3939 1:fbb938b95cef 34
okini3939 1:fbb938b95cef 35 void UART1_IRQHandler() {
okini3939 1:fbb938b95cef 36 jump(22);
okini3939 1:fbb938b95cef 37 }
okini3939 1:fbb938b95cef 38
okini3939 1:fbb938b95cef 39 void UART2_IRQHandler() {
okini3939 1:fbb938b95cef 40 jump(23);
okini3939 1:fbb938b95cef 41 }
okini3939 1:fbb938b95cef 42
okini3939 1:fbb938b95cef 43 void UART3_IRQHandler() {
okini3939 1:fbb938b95cef 44 jump(24);
okini3939 1:fbb938b95cef 45 }
okini3939 1:fbb938b95cef 46
okini3939 1:fbb938b95cef 47 void PWM1_IRQHandler() {
okini3939 1:fbb938b95cef 48 jump(25);
okini3939 1:fbb938b95cef 49 }
okini3939 1:fbb938b95cef 50
okini3939 1:fbb938b95cef 51 void I2C0_IRQHandler() {
okini3939 1:fbb938b95cef 52 jump(26);
okini3939 1:fbb938b95cef 53 }
okini3939 1:fbb938b95cef 54
okini3939 1:fbb938b95cef 55 void I2C1_IRQHandler() {
okini3939 1:fbb938b95cef 56 jump(27);
okini3939 1:fbb938b95cef 57 }
okini3939 1:fbb938b95cef 58
okini3939 1:fbb938b95cef 59 void I2C2_IRQHandler() {
okini3939 1:fbb938b95cef 60 jump(28);
okini3939 1:fbb938b95cef 61 }
okini3939 1:fbb938b95cef 62
okini3939 1:fbb938b95cef 63 void SPI_IRQHandler() {
okini3939 1:fbb938b95cef 64 jump(29);
okini3939 1:fbb938b95cef 65 }
okini3939 1:fbb938b95cef 66
okini3939 1:fbb938b95cef 67 void SSP0_IRQHandler() {
okini3939 1:fbb938b95cef 68 jump(30);
okini3939 1:fbb938b95cef 69 }
okini3939 1:fbb938b95cef 70
okini3939 1:fbb938b95cef 71 void SSP1_IRQHandler() {
okini3939 1:fbb938b95cef 72 jump(31);
okini3939 1:fbb938b95cef 73 }
okini3939 1:fbb938b95cef 74
okini3939 1:fbb938b95cef 75 void PLL0_IRQHandler() {
okini3939 1:fbb938b95cef 76 jump(32);
okini3939 1:fbb938b95cef 77 }
okini3939 1:fbb938b95cef 78
okini3939 1:fbb938b95cef 79 void RTC_IRQHandler() {
okini3939 1:fbb938b95cef 80 jump(33);
okini3939 1:fbb938b95cef 81 }
okini3939 1:fbb938b95cef 82
okini3939 1:fbb938b95cef 83 void EINT0_IRQHandler() {
okini3939 1:fbb938b95cef 84 jump(34);
okini3939 1:fbb938b95cef 85 }
okini3939 1:fbb938b95cef 86
okini3939 1:fbb938b95cef 87 void EINT1_IRQHandler() {
okini3939 1:fbb938b95cef 88 jump(35);
okini3939 1:fbb938b95cef 89 }
okini3939 1:fbb938b95cef 90
okini3939 1:fbb938b95cef 91 void EINT2_IRQHandler() {
okini3939 1:fbb938b95cef 92 jump(36);
okini3939 1:fbb938b95cef 93 }
okini3939 1:fbb938b95cef 94
okini3939 1:fbb938b95cef 95 void EINT3_IRQHandler() {
okini3939 1:fbb938b95cef 96 jump(37);
okini3939 1:fbb938b95cef 97 }
okini3939 1:fbb938b95cef 98
okini3939 1:fbb938b95cef 99 void ADC_IRQHandler() {
okini3939 1:fbb938b95cef 100 jump(38);
okini3939 1:fbb938b95cef 101 }
okini3939 1:fbb938b95cef 102
okini3939 1:fbb938b95cef 103 void BOD_IRQHandler() {
okini3939 1:fbb938b95cef 104 jump(39);
okini3939 1:fbb938b95cef 105 }
okini3939 1:fbb938b95cef 106
okini3939 1:fbb938b95cef 107 void USB_IRQHandler() {
okini3939 1:fbb938b95cef 108 jump(40);
okini3939 1:fbb938b95cef 109 }
okini3939 1:fbb938b95cef 110
okini3939 1:fbb938b95cef 111 void CAN_IRQHandler() {
okini3939 1:fbb938b95cef 112 jump(41);
okini3939 1:fbb938b95cef 113 }
okini3939 1:fbb938b95cef 114
okini3939 1:fbb938b95cef 115 void DMA_IRQHandler() {
okini3939 1:fbb938b95cef 116 jump(42);
okini3939 1:fbb938b95cef 117 }
okini3939 1:fbb938b95cef 118
okini3939 1:fbb938b95cef 119 void I2S_IRQHandler() {
okini3939 1:fbb938b95cef 120 jump(43);
okini3939 1:fbb938b95cef 121 }
okini3939 1:fbb938b95cef 122
okini3939 1:fbb938b95cef 123 void ENET_IRQHandler() {
okini3939 1:fbb938b95cef 124 jump(44);
okini3939 1:fbb938b95cef 125 }
okini3939 1:fbb938b95cef 126
okini3939 1:fbb938b95cef 127 void RIT_IRQHandler() {
okini3939 1:fbb938b95cef 128 jump(45);
okini3939 1:fbb938b95cef 129 }
okini3939 1:fbb938b95cef 130
okini3939 1:fbb938b95cef 131 void MCPWM_IRQHandler() {
okini3939 1:fbb938b95cef 132 jump(46);
okini3939 1:fbb938b95cef 133 }
okini3939 1:fbb938b95cef 134
okini3939 1:fbb938b95cef 135 void QEI_IRQHandler() {
okini3939 1:fbb938b95cef 136 jump(47);
okini3939 1:fbb938b95cef 137 }
okini3939 1:fbb938b95cef 138
okini3939 1:fbb938b95cef 139 void PLL1_IRQHandler() {
okini3939 1:fbb938b95cef 140 jump(48);
okini3939 1:fbb938b95cef 141 }
okini3939 1:fbb938b95cef 142
okini3939 1:fbb938b95cef 143 } // extern "C"