📄 stm32f10x_it.lst
字号:
243 * Output : None
244 * Return : None
245 *******************************************************************************/
246 void EXTI3_IRQHandler(void)
247 {
248 }
249
250 /*******************************************************************************
251 * Function Name : EXTI4_IRQHandler
252 * Description : This function handles External interrupt Line 4 request.
253 * Input : None
254 * Output : None
255 * Return : None
256 *******************************************************************************/
257 void EXTI4_IRQHandler(void)
258 {
259 }
260
261 /*******************************************************************************
262 * Function Name : DMAChannel1_IRQHandler
263 * Description : This function handles DMA Stream 1 interrupt request.
264 * Input : None
265 * Output : None
266 * Return : None
267 *******************************************************************************/
268 void DMAChannel1_IRQHandler(void)
269 {
270 }
271
272 /*******************************************************************************
273 * Function Name : DMAChannel2_IRQHandler
274 * Description : This function handles DMA Stream 2 interrupt request.
275 * Input : None
276 * Output : None
277 * Return : None
278 *******************************************************************************/
279 void DMAChannel2_IRQHandler(void)
280 {
281 }
282
283 /*******************************************************************************
284 * Function Name : DMAChannel3_IRQHandler
285 * Description : This function handles DMA Stream 3 interrupt request.
286 * Input : None
287 * Output : None
288 * Return : None
289 *******************************************************************************/
290 void DMAChannel3_IRQHandler(void)
291 {
292 }
293
294 /*******************************************************************************
295 * Function Name : DMAChannel4_IRQHandler
296 * Description : This function handles DMA Stream 4 interrupt request.
297 * Input : None
298 * Output : None
299 * Return : None
300 *******************************************************************************/
301 void DMAChannel4_IRQHandler(void)
302 {
303 }
304
305 /*******************************************************************************
306 * Function Name : DMAChannel5_IRQHandler
307 * Description : This function handles DMA Stream 5 interrupt request.
308 * Input : None
309 * Output : None
310 * Return : None
311 *******************************************************************************/
312 void DMAChannel5_IRQHandler(void)
313 {
314 }
315
316 /*******************************************************************************
317 * Function Name : DMAChannel6_IRQHandler
318 * Description : This function handles DMA Stream 6 interrupt request.
319 * Input : None
320 * Output : None
321 * Return : None
322 *******************************************************************************/
323 void DMAChannel6_IRQHandler(void)
324 {
325 }
326
327 /*******************************************************************************
328 * Function Name : DMAChannel7_IRQHandler
329 * Description : This function handles DMA Stream 7 interrupt request.
330 * Input : None
331 * Output : None
332 * Return : None
333 *******************************************************************************/
334 void DMAChannel7_IRQHandler(void)
335 {
336 }
337
338 /*******************************************************************************
339 * Function Name : ADC_IRQHandler
340 * Description : This function handles ADC global interrupt request.
341 * Input : None
342 * Output : None
343 * Return : None
344 *******************************************************************************/
345 void ADC_IRQHandler(void)
346 {
347 }
348
349 /*******************************************************************************
350 * Function Name : USB_HP_CAN_TX_IRQHandler
351 * Description : This function handles USB High Priority or CAN TX interrupts
352 * requests.
353 * Input : None
354 * Output : None
355 * Return : None
356 *******************************************************************************/
357 void USB_HP_CAN_TX_IRQHandler(void)
358 {
359 }
360
361 /*******************************************************************************
362 * Function Name : USB_LP_CAN_RX0_IRQHandler
363 * Description : This function handles USB Low Priority or CAN RX0 interrupts
364 * requests.
365 * Input : None
366 * Output : None
367 * Return : None
368 *******************************************************************************/
369 void USB_LP_CAN_RX0_IRQHandler(void)
370 {
371 }
372
373 /*******************************************************************************
374 * Function Name : CAN_RX1_IRQHandler
375 * Description : This function handles CAN RX1 interrupt request.
376 * Input : None
377 * Output : None
378 * Return : None
379 *******************************************************************************/
380 void CAN_RX1_IRQHandler(void)
381 {
382 }
383
384 /*******************************************************************************
385 * Function Name : CAN_SCE_IRQHandler
386 * Description : This function handles CAN SCE interrupt request.
387 * Input : None
388 * Output : None
389 * Return : None
390 *******************************************************************************/
391 void CAN_SCE_IRQHandler(void)
392 {
393 }
394
395 /*******************************************************************************
396 * Function Name : EXTI9_5_IRQHandler
397 * Description : This function handles External lines 9 to 5 interrupt request.
398 * Input : None
399 * Output : None
400 * Return : None
401 *******************************************************************************/
402 void EXTI9_5_IRQHandler(void)
403 {
404 }
405
406 /*******************************************************************************
407 * Function Name : TIM1_BRK_IRQHandler
408 * Description : This function handles TIM1 Break interrupt request.
409 * Input : None
410 * Output : None
411 * Return : None
412 *******************************************************************************/
413 void TIM1_BRK_IRQHandler(void)
414 {
415 }
416
417 /*******************************************************************************
418 * Function Name : TIM1_UP_IRQHandler
419 * Description : This function handles TIM1 overflow and update interrupt
420 * request.
421 * Input : None
422 * Output : None
423 * Return : None
424 *******************************************************************************/
425 void TIM1_UP_IRQHandler(void)
426 {
427 }
428
429 /*******************************************************************************
430 * Function Name : TIM1_TRG_COM_IRQHandler
431 * Description : This function handles TIM1 Trigger and commutation interrupts
432 * requests.
433 * Input : None
434 * Output : None
435 * Return : None
436 *******************************************************************************/
437 void TIM1_TRG_COM_IRQHandler(void)
438 {
439 }
440
441 /*******************************************************************************
442 * Function Name : TIM1_CC_IRQHandler
443 * Description : This function handles TIM1 capture compare interrupt request.
444 * Input : None
445 * Output : None
446 * Return : None
447 *******************************************************************************/
448 void TIM1_CC_IRQHandler(void)
449 {
450 }
451
452 /*******************************************************************************
453 * Function Name : TIM2_IRQHandler
454 * Description : This function handles TIM2 global interrupt request.
455 * Input : None
456 * Output : None
457 * Return : None
458 *******************************************************************************/
459 void TIM2_IRQHandler(void)
460 {
461 GPIO_InitTypeDef GPIO_InitStructure;
462 static u16 Seg_Old;
463
464 if (TIM_GetITStatus(TIM2, TIM_IT_CC1) != RESET)
465 {
466 TIM_ClearITPendingBit(TIM2, TIM_IT_CC1);
467
468 if (var == 0) /* OCMP_1 */
469 {
470 var++;
471
472 /* Segments(lcdcr) to be turned on are loaded with the value 1 otherwise 0 */
473 Seg_Old = frame[lcdcr];
474 GPIO_Write(GPIOE,Seg_Old);
475
476 /* com(lcdcr) is set to low, other coms set to Vdd/2 */
477 /* Configure all coms as Floating Input */
478 GPIO_InitStructure.GPIO_Pin = COMPORT;
479 GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;
480 GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
481 GPIO_Init(GPIOC, &GPIO_InitStructure);
482
483 /* com(lcdr) is set to low PP */
484 GPIO_ResetBits(GPIOC,com[lcdcr]);
485 GPIO_InitStructure.GPIO_Pin = com[lcdcr];
486 GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
487 GPIO_Init(GPIOC, &GPIO_InitStructure);
488 }
489 else /* OCMP_2 */
490 {
491 var = 0;
492
493 /* Segments(lcdcr) values are inverted */
494 Seg_Old = (u16)(~Seg_Old);
495 GPIO_Write(GPIOE,Seg_Old);
496
497 /* com(lcdcr) is set to high, other coms set to Vdd/2 */
498 /* Configure all coms as Floating Input */
499 GPIO_InitStructure.GPIO_Pin = COMPORT;
500 GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;
501 GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
502 GPIO_Init(GPIOC, &GPIO_InitStructure);
503
504 /* com(lcdr) is set to high PP */
505 GPIO_SetBits(GPIOC,com[lcdcr]);
506 GPIO_InitStructure.GPIO_Pin = com[lcdcr];
507 GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
508 GPIO_Init(GPIOC, &GPIO_InitStructure);
509
510 lcdcr++;
511 if (lcdcr>3) lcdcr =0;
512 }
513 }
514 else if (TIM_GetITStatus(TIM2, TIM_IT_Update) != RESET)
515 {
516 TIM_ClearITPendingBit(TIM2, TIM_IT_Update);
517
518 /* All seg and coms off to decrease VRMS */
519 GPIO_Write(GPIOE,0); /* Clear segments on portE */
520 GPIO_ResetBits(GPIOC,COMPORT); /* Clear segments on portC */
521
522 /* Configure all coms as PP_output */
523 GPIO_InitStructure.GPIO_Pin = COMPORT;
524 GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
525 GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
526 GPIO_Init(GPIOC, &GPIO_InitStructure);
527 }
528 }
529
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -