📄 main.lst
字号:
499:./common/lib_AT91SAM7A3.h **** pPio->PIO_PDR = (periphAEnable | periphBEnable); // Set in Periph mode
500:./common/lib_AT91SAM7A3.h **** }
501:./common/lib_AT91SAM7A3.h ****
502:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
503:./common/lib_AT91SAM7A3.h **** //* \fn AT91F_PIO_CfgOutput
504:./common/lib_AT91SAM7A3.h **** //* \brief Enable PIO in output mode
505:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
506:./common/lib_AT91SAM7A3.h **** __inline void AT91F_PIO_CfgOutput(
507:./common/lib_AT91SAM7A3.h **** AT91PS_PIO pPio, // \arg pointer to a PIO controller
508:./common/lib_AT91SAM7A3.h **** unsigned int pioEnable) // \arg PIO to be enabled
509:./common/lib_AT91SAM7A3.h **** {
510:./common/lib_AT91SAM7A3.h **** pPio->PIO_PER = pioEnable; // Set in PIO mode
511:./common/lib_AT91SAM7A3.h **** pPio->PIO_OER = pioEnable; // Configure in Output
512:./common/lib_AT91SAM7A3.h **** }
513:./common/lib_AT91SAM7A3.h ****
514:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
515:./common/lib_AT91SAM7A3.h **** //* \fn AT91F_PIO_CfgInput
516:./common/lib_AT91SAM7A3.h **** //* \brief Enable PIO in input mode
517:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
518:./common/lib_AT91SAM7A3.h **** __inline void AT91F_PIO_CfgInput(
519:./common/lib_AT91SAM7A3.h **** AT91PS_PIO pPio, // \arg pointer to a PIO controller
520:./common/lib_AT91SAM7A3.h **** unsigned int inputEnable) // \arg PIO to be enabled
521:./common/lib_AT91SAM7A3.h **** {
522:./common/lib_AT91SAM7A3.h **** // Disable output
523:./common/lib_AT91SAM7A3.h **** pPio->PIO_ODR = inputEnable;
524:./common/lib_AT91SAM7A3.h **** pPio->PIO_PER = inputEnable;
525:./common/lib_AT91SAM7A3.h **** }
526:./common/lib_AT91SAM7A3.h ****
527:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
528:./common/lib_AT91SAM7A3.h **** //* \fn AT91F_PIO_CfgOpendrain
529:./common/lib_AT91SAM7A3.h **** //* \brief Configure PIO in open drain
530:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
531:./common/lib_AT91SAM7A3.h **** __inline void AT91F_PIO_CfgOpendrain(
532:./common/lib_AT91SAM7A3.h **** AT91PS_PIO pPio, // \arg pointer to a PIO controller
533:./common/lib_AT91SAM7A3.h **** unsigned int multiDrvEnable) // \arg pio to be configured in open drain
534:./common/lib_AT91SAM7A3.h **** {
535:./common/lib_AT91SAM7A3.h **** // Configure the multi-drive option
536:./common/lib_AT91SAM7A3.h **** pPio->PIO_MDDR = ~multiDrvEnable;
537:./common/lib_AT91SAM7A3.h **** pPio->PIO_MDER = multiDrvEnable;
538:./common/lib_AT91SAM7A3.h **** }
539:./common/lib_AT91SAM7A3.h ****
540:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
541:./common/lib_AT91SAM7A3.h **** //* \fn AT91F_PIO_CfgPullup
542:./common/lib_AT91SAM7A3.h **** //* \brief Enable pullup on PIO
543:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
544:./common/lib_AT91SAM7A3.h **** __inline void AT91F_PIO_CfgPullup(
545:./common/lib_AT91SAM7A3.h **** AT91PS_PIO pPio, // \arg pointer to a PIO controller
546:./common/lib_AT91SAM7A3.h **** unsigned int pullupEnable) // \arg enable pullup on PIO
547:./common/lib_AT91SAM7A3.h **** {
548:./common/lib_AT91SAM7A3.h **** // Connect or not Pullup
549:./common/lib_AT91SAM7A3.h **** pPio->PIO_PPUDR = ~pullupEnable;
550:./common/lib_AT91SAM7A3.h **** pPio->PIO_PPUER = pullupEnable;
551:./common/lib_AT91SAM7A3.h **** }
552:./common/lib_AT91SAM7A3.h ****
553:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
554:./common/lib_AT91SAM7A3.h **** //* \fn AT91F_PIO_CfgDirectDrive
555:./common/lib_AT91SAM7A3.h **** //* \brief Enable direct drive on PIO
556:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
557:./common/lib_AT91SAM7A3.h **** __inline void AT91F_PIO_CfgDirectDrive(
558:./common/lib_AT91SAM7A3.h **** AT91PS_PIO pPio, // \arg pointer to a PIO controller
559:./common/lib_AT91SAM7A3.h **** unsigned int directDrive) // \arg PIO to be configured with direct drive
560:./common/lib_AT91SAM7A3.h ****
561:./common/lib_AT91SAM7A3.h **** {
562:./common/lib_AT91SAM7A3.h **** // Configure the Direct Drive
563:./common/lib_AT91SAM7A3.h **** pPio->PIO_OWDR = ~directDrive;
564:./common/lib_AT91SAM7A3.h **** pPio->PIO_OWER = directDrive;
565:./common/lib_AT91SAM7A3.h **** }
566:./common/lib_AT91SAM7A3.h ****
567:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
568:./common/lib_AT91SAM7A3.h **** //* \fn AT91F_PIO_CfgInputFilter
569:./common/lib_AT91SAM7A3.h **** //* \brief Enable input filter on input PIO
570:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
571:./common/lib_AT91SAM7A3.h **** __inline void AT91F_PIO_CfgInputFilter(
572:./common/lib_AT91SAM7A3.h **** AT91PS_PIO pPio, // \arg pointer to a PIO controller
573:./common/lib_AT91SAM7A3.h **** unsigned int inputFilter) // \arg PIO to be configured with input filter
574:./common/lib_AT91SAM7A3.h ****
575:./common/lib_AT91SAM7A3.h **** {
576:./common/lib_AT91SAM7A3.h **** // Configure the Direct Drive
577:./common/lib_AT91SAM7A3.h **** pPio->PIO_IFDR = ~inputFilter;
578:./common/lib_AT91SAM7A3.h **** pPio->PIO_IFER = inputFilter;
579:./common/lib_AT91SAM7A3.h **** }
580:./common/lib_AT91SAM7A3.h ****
581:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
582:./common/lib_AT91SAM7A3.h **** //* \fn AT91F_PIO_GetInput
583:./common/lib_AT91SAM7A3.h **** //* \brief Return PIO input value
584:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
585:./common/lib_AT91SAM7A3.h **** __inline unsigned int AT91F_PIO_GetInput( // \return PIO input
586:./common/lib_AT91SAM7A3.h **** AT91PS_PIO pPio) // \arg pointer to a PIO controller
587:./common/lib_AT91SAM7A3.h **** {
588:./common/lib_AT91SAM7A3.h **** return pPio->PIO_PDSR;
75 .loc 2 588 0 76 0010 0749 ldr r1, .L14+8 77 0012 CB6B ldr r3, [r1, #60] 78 .LBE9: 79 .LBE8: 80 .loc 1 82 0 81 0014 0422 mov r2, #4 82 0016 1342 tst r3, r2 83 0018 01D0 beq .L10 84 .LBB10: 85 .LBB11: 589:./common/lib_AT91SAM7A3.h **** }
590:./common/lib_AT91SAM7A3.h ****
591:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
592:./common/lib_AT91SAM7A3.h **** //* \fn AT91F_PIO_IsInputSet
593:./common/lib_AT91SAM7A3.h **** //* \brief Test if PIO is input flag is active
594:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
595:./common/lib_AT91SAM7A3.h **** __inline int AT91F_PIO_IsInputSet(
596:./common/lib_AT91SAM7A3.h **** AT91PS_PIO pPio, // \arg pointer to a PIO controller
597:./common/lib_AT91SAM7A3.h **** unsigned int flag) // \arg flag to be tested
598:./common/lib_AT91SAM7A3.h **** {
599:./common/lib_AT91SAM7A3.h **** return (AT91F_PIO_GetInput(pPio) & flag);
600:./common/lib_AT91SAM7A3.h **** }
601:./common/lib_AT91SAM7A3.h ****
602:./common/lib_AT91SAM7A3.h ****
603:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
604:./common/lib_AT91SAM7A3.h **** //* \fn AT91F_PIO_SetOutput
605:./common/lib_AT91SAM7A3.h **** //* \brief Set to 1 output PIO
606:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
607:./common/lib_AT91SAM7A3.h **** __inline void AT91F_PIO_SetOutput(
608:./common/lib_AT91SAM7A3.h **** AT91PS_PIO pPio, // \arg pointer to a PIO controller
609:./common/lib_AT91SAM7A3.h **** unsigned int flag) // \arg output to be set
610:./common/lib_AT91SAM7A3.h **** {
611:./common/lib_AT91SAM7A3.h **** pPio->PIO_SODR = flag;
612:./common/lib_AT91SAM7A3.h **** }
613:./common/lib_AT91SAM7A3.h ****
614:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
615:./common/lib_AT91SAM7A3.h **** //* \fn AT91F_PIO_ClearOutput
616:./common/lib_AT91SAM7A3.h **** //* \brief Set to 0 output PIO
617:./common/lib_AT91SAM7A3.h **** //*----------------------------------------------------------------------------
618:./common/lib_AT91SAM7A3.h **** __inline void AT91F_PIO_ClearOutput(
619:./common/lib_AT91SAM7A3.h **** AT91PS_PIO pPio, // \arg pointer to a PIO controller
620:./common/lib_AT91SAM7A3.h **** unsigned int flag) // \arg output to be cleared
621:./common/lib_AT91SAM7A3.h **** {
622:./common/lib_AT91SAM7A3.h **** pPio->PIO_CODR = flag;
86 .loc 2 622 0 87 001a 4A63 str r2, [r1, #52] 88 001c 02E0 b .L13 89 .L10: 90 .LBE11: 91 .LBE10: 92 .LBB12: 93 .LBB13: 94 .loc 2 611 0 95 001e 0422 mov r2, #4 96 0020 034B ldr r3, .L14+8 97 0022 1A63 str r2, [r3, #48] 98 .L13: 99 .LBE13: 100 .LBE12: 101 .loc 1 104 0 102 0024 01B0 add sp, sp, #4 103 @ sp needed for prologue 104 0026 7047 bx lr 105 .L15: 106 .align 2 107 .L14: 108 0028 30FDFFFF .word -720 109 002c 00000000 .word systick 110 0030 00F6FFFF .word -2560 111 .LFE386: 113 .section .rodata.str1.4,"aMS",%progbits,1 114 .align 2 115 .LC4: 116 0000 0D0A0D0A .ascii "\015\012\015\012AT91SAM7-Demo for the GNU-Toolchain" 116 41543931 116 53414D37 116 2D44656D 116 6F20666F 117 0027 0D0A00 .ascii "\015\012\000" 118 002a 0000 .align 2 119 .LC6: 120 002c 4D434B20 .ascii "MCK clock frequency: %d Hz \015\012\000" 120 636C6F63 120 6B206672 120 65717565 120 6E63793A 121 004a 0000 .align 2 122 .LC8: 123 004c 44656D6F .ascii "Demo created by Martin Thomas, Kaiserslautern, Germ" 123 20637265 123 61746564 123 20627920 123 4D617274 124 007f 616E790A .ascii "any\012\012\000" 124 0A00 125 0085 000000 .align 2 126 .LC11: 127 0088 2A2A2054 .ascii "** Test Menu **\012\000" 127 65737420 127 4D656E75 127 202A2A0A 127 00 128 0099 000000 .align 2 129 .LC13: 130 009c 28312920 .ascii "(1) Rea
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -