Skip to content

Commit

Permalink
Testing branch in git.
Browse files Browse the repository at this point in the history
  • Loading branch information
arndtjonasson committed Sep 15, 2017
1 parent 2d95600 commit 5baf963
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autosar/src/core/arch/arm/arm_v7/drivers/Pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ static void Pwm_GeneratePulse(Pwm_ChannelType channel,
* (see pp.91-94 in BCM2835-ARM-Peripherals.pdf) */
if ((selected_pins & BIT(gpio)) == 0) {
bcm2835_GpioFnSel(gpio, GPFN_OUT);
//printf("Pwm selecting gpio\n");
selected_pins |= BIT(gpio);
}

Expand Down Expand Up @@ -284,6 +285,8 @@ void Pwm_Init(const Pwm_ConfigType *ConfigPtr)
return;
}

// printf("Pwm_Init 1\n");

/* Initialize the hardware clock */
PWM_CTL = 0; // Stop/reset PWM
CM_PWMCTL = CM_PWD | CMCTL_SRC_PLLD; // Set the clock source to PLL alternative D (i.e. 500MHz). This is a good choice to avoid jitter
Expand Down

0 comments on commit 5baf963

Please sign in to comment.