The Project board is for sharing projects based on Silicon Labs' component with other community members. View Projects Guidelines ›

Projects

    Publish
     
      • EFR32MG21A010F768 PWM

        li ye | 11/317/2019 | 07:43 AM

        Silicon Labs 无线SOC EFR32MG21的PWM的输出需要将TIMER的CC端口配置到GPIO上,如下:

         GPIO->TIMERROUTE[0].ROUTEEN = GPIO_TIMER_ROUTEEN_CC0PEN | GPIO_TIMER_ROUTEEN_CC1PEN;

          GPIO->TIMERROUTE[0].CC0ROUTE =

            (LED0_PORT << _GPIO_TIMER_CC0ROUTE_PORT_SHIFT)

            | (LED0_PIN << _GPIO_TIMER_CC0ROUTE_PIN_SHIFT);

          GPIO->TIMERROUTE[0].CC1ROUTE =

            (LED1_PORT << _GPIO_TIMER_CC1ROUTE_PORT_SHIFT)

            | (LED1_PIN << _GPIO_TIMER_CC1ROUTE_PIN_SHIFT);

        请问,GPIO_TIMER_ROUTEEN_CC0PEN这些宏都定义在哪个文件下,为啥我的工程无法识别