資源簡介
這是黃英文同學貢獻的歷史上最完整的工程模板,初學者可直接使用。以便快速入門。

代碼片段和文件信息
/* BASIC?INTERRUPT?VECTOR?TABLE?FOR?STM8?devices
?* Copyright?(c)?2007?STMicroelectronics
?*/
typedef?void?@far?(*interrupt_handler_t)(void);
struct?interrupt_vector?{
unsigned?char?interrupt_instruction;
interrupt_handler_t?interrupt_handler;
};
@far?@interrupt?void?NonHandledInterrupt?(void)
{
/*?in?order?to?detect?unexpected?events?during?development?
???it?is?recommended?to?set?a?breakpoint?on?the?following?instruction
*/
return;
}
extern?void?_stext();?????/*?startup?routine?*/
struct?interrupt_vector?const?_vectab[]?=?{
{0x82?(interrupt_handler_t)_stext}?/*?reset?*/
{0x82?NonHandledInterrupt}?/*?trap??*/
{0x82?NonHandledInterrupt}?/*?TLI??*/
{0x82?NonHandledInterrupt}?/*?AWU??*/
{0x82?NonHandledInterrupt}?/*?CLK??*/
{0x82?NonHandledInterrupt}?/*?EXTI0?Port?A??*/
{0x82?NonHandledInterrupt}?/*?EXTI1?Port?B??*/
{0x82?NonHandledInterrupt}?/*?EXTI2?Port?C??*/
{0x82?NonHandledInterrupt}?/*?EXTI3?Port?D??*/
{0x82?NonHandledInterrupt}?/*?EXTI4?Port?E??*/
{0x82?NonHandledInterrupt}?/*?CAN?RX??*/
{0x82?NonHandledInterrupt}?/*?CAN?TX??*/
{0x82?NonHandledInterrupt}?/*?SPI?(End?of?transfer)?*/
{0x82?NonHandledInterrupt}?/*?TIM1?update/?overflow/?underflow/trigger/?break?*/
{0x82?NonHandledInterrupt}?/*?TIM1?capture/?compare?*/
{0x82?NonHandledInterrupt}?/*?TIM2?update/?overflow?*/
{0x82?NonHandledInterrupt}?/*?TIM2?capture/?compare?*/
{0x82?NonHandledInterrupt}?/*?TIM3?update/?overflow?*/
{0x82?NonHandledInterrupt}?/*?TIM3?capture/?compare?*/
{0x82?NonHandledInterrupt}?/*?UART1?Tx?complete?*/
{0x82?NonHandledInterrupt}?/*?UART1?Receive?register?DATA?FULL?*/
{0x82?NonHandledInterrupt}?/*?I2C?interrupt?*/
{0x82?NonHandledInterrupt}?/*?UART2/3?Tx?complete?*/
{0x82?NonHandledInterrupt}?/*?UART2/3?Receive?register?DATA?FULL?*/
{0x82?NonHandledInterrupt}?/*?ADC1?end?of?conversion/?analog?watchdog?interrupt?*/
{0x82?NonHandledInterrupt}?/*?TIM4?update/?overflow?*/
{0x82?NonHandledInterrupt}?/*?Flash?EOP/WR_PG_DIS?*/
{0x82?NonHandledInterrupt}?/*?irq25?*/
{0x82?NonHandledInterrupt}?/*?irq26?*/
{0x82?NonHandledInterrupt}?/*?irq27?*/
{0x82?NonHandledInterrupt}?/*?irq28?*/
{0x82?NonHandledInterrupt}?/*?irq29?*/
};
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-07-15?15:18??工程模板\
?????目錄???????????0??2016-08-04?09:53??工程模板\Cosmic\
?????目錄???????????0??2016-07-15?15:39??工程模板\Cosmic\Debug\
?????文件???????10733??2016-07-14?13:33??工程模板\Cosmic\Debug\74hc595.ls
?????文件???????15248??2016-07-14?13:33??工程模板\Cosmic\Debug\74hc595.o
?????文件????????6033??2016-07-13?18:16??工程模板\Cosmic\Debug\cd74hc4067sm96.ls
?????文件???????14080??2016-07-13?18:16??工程模板\Cosmic\Debug\cd74hc4067sm96.o
?????文件????????1737??2016-07-14?13:30??工程模板\Cosmic\Debug\delay.ls
?????文件?????????982??2016-07-14?13:30??工程模板\Cosmic\Debug\delay.o
?????文件???????20012??2016-08-04?09:53??工程模板\Cosmic\Debug\demo.elf
?????文件????????2384??2016-07-15?15:13??工程模板\Cosmic\Debug\demo.lkf
?????文件???????39471??2016-08-04?09:53??工程模板\Cosmic\Debug\demo.map
?????文件????????3554??2016-08-04?09:53??工程模板\Cosmic\Debug\demo.s19
?????文件???????59348??2016-08-04?09:53??工程模板\Cosmic\Debug\demo.sm8
?????文件????????4558??2016-07-14?14:01??工程模板\Cosmic\Debug\initall.ls
?????文件???????14095??2016-07-14?14:01??工程模板\Cosmic\Debug\initall.o
?????文件????????1077??2016-08-04?09:53??工程模板\Cosmic\Debug\main.ls
?????文件???????12148??2016-08-04?09:53??工程模板\Cosmic\Debug\main.o
?????文件???????20101??2016-07-13?16:37??工程模板\Cosmic\Debug\n_uart.ls
?????文件???????17798??2016-07-13?16:37??工程模板\Cosmic\Debug\n_uart.o
?????文件???????45425??2016-07-14?13:53??工程模板\Cosmic\Debug\stm8s_adc1.ls
?????文件???????18258??2016-07-14?13:53??工程模板\Cosmic\Debug\stm8s_adc1.o
?????文件????????5939??2016-07-14?13:52??工程模板\Cosmic\Debug\stm8s_beep.ls
?????文件????????2855??2016-07-14?13:52??工程模板\Cosmic\Debug\stm8s_beep.o
?????文件???????39405??2016-05-15?13:59??工程模板\Cosmic\Debug\stm8s_clk.ls
?????文件???????18576??2016-05-15?13:59??工程模板\Cosmic\Debug\stm8s_clk.o
?????文件???????10472??2016-07-12?10:15??工程模板\Cosmic\Debug\stm8s_gpio.ls
?????文件????????6765??2016-07-12?10:15??工程模板\Cosmic\Debug\stm8s_gpio.o
?????文件????????7367??2016-07-15?13:39??工程模板\Cosmic\Debug\stm8s_it.ls
?????文件????????7686??2016-07-15?13:39??工程模板\Cosmic\Debug\stm8s_it.o
?????文件??????119089??2016-07-15?14:36??工程模板\Cosmic\Debug\stm8s_tim1.ls
............此處省略77個文件信息
評論
共有 條評論