mirror of
https://gitee.com/seekfree/TC264_Library.git
synced 2026-06-04 03:32:56 +00:00
V1.1.2
修复ATOM_PWM最大占空比设置异常的问题 对eeprom例程进行修改
This commit is contained in:
@@ -76,4 +76,7 @@ V1.1.0
|
|||||||
|
|
||||||
V1.1.1
|
V1.1.1
|
||||||
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
|
V1.1.2
|
||||||
|
<09><EFBFBD>ATOM_PWM<57><4D><EFBFBD><EFBFBD>ռ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쳣<EFBFBD><ECB3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
@@ -280,7 +280,6 @@ void gtm_pwm_init(ATOM_PIN_enum pwmch, uint32 freq, uint32 duty)
|
|||||||
g_atomConfig.pin.outputPin = atom_channel;
|
g_atomConfig.pin.outputPin = atom_channel;
|
||||||
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
||||||
|
|
||||||
g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
switch(atom_channel->atom)
|
switch(atom_channel->atom)
|
||||||
{
|
{
|
||||||
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
@@ -309,6 +308,13 @@ void pwm_duty(ATOM_PIN_enum pwmch, uint32 duty)
|
|||||||
atom_channel = gtm_atom_mux(pwmch);
|
atom_channel = gtm_atom_mux(pwmch);
|
||||||
|
|
||||||
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
||||||
duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
|
switch(atom_channel->atom)
|
||||||
|
{
|
||||||
|
case 0: duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
|
case 1: duty = (uint32)((uint64)duty * period / GTM_ATOM1_PWM_DUTY_MAX); break;
|
||||||
|
case 2: duty = (uint32)((uint64)duty * period / GTM_ATOM2_PWM_DUTY_MAX); break;
|
||||||
|
case 3: duty = (uint32)((uint64)duty * period / GTM_ATOM3_PWM_DUTY_MAX); break;
|
||||||
|
}
|
||||||
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,4 +76,7 @@ V1.1.0
|
|||||||
|
|
||||||
V1.1.1
|
V1.1.1
|
||||||
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
|
V1.1.2
|
||||||
|
<09><EFBFBD>ATOM_PWM<57><4D><EFBFBD><EFBFBD>ռ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쳣<EFBFBD><ECB3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
@@ -280,7 +280,6 @@ void gtm_pwm_init(ATOM_PIN_enum pwmch, uint32 freq, uint32 duty)
|
|||||||
g_atomConfig.pin.outputPin = atom_channel;
|
g_atomConfig.pin.outputPin = atom_channel;
|
||||||
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
||||||
|
|
||||||
g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
switch(atom_channel->atom)
|
switch(atom_channel->atom)
|
||||||
{
|
{
|
||||||
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
@@ -309,6 +308,13 @@ void pwm_duty(ATOM_PIN_enum pwmch, uint32 duty)
|
|||||||
atom_channel = gtm_atom_mux(pwmch);
|
atom_channel = gtm_atom_mux(pwmch);
|
||||||
|
|
||||||
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
||||||
duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
|
switch(atom_channel->atom)
|
||||||
|
{
|
||||||
|
case 0: duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
|
case 1: duty = (uint32)((uint64)duty * period / GTM_ATOM1_PWM_DUTY_MAX); break;
|
||||||
|
case 2: duty = (uint32)((uint64)duty * period / GTM_ATOM2_PWM_DUTY_MAX); break;
|
||||||
|
case 3: duty = (uint32)((uint64)duty * period / GTM_ATOM3_PWM_DUTY_MAX); break;
|
||||||
|
}
|
||||||
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,4 +76,7 @@ V1.1.0
|
|||||||
|
|
||||||
V1.1.1
|
V1.1.1
|
||||||
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
|
V1.1.2
|
||||||
|
<09><EFBFBD>ATOM_PWM<57><4D><EFBFBD><EFBFBD>ռ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쳣<EFBFBD><ECB3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
@@ -280,7 +280,6 @@ void gtm_pwm_init(ATOM_PIN_enum pwmch, uint32 freq, uint32 duty)
|
|||||||
g_atomConfig.pin.outputPin = atom_channel;
|
g_atomConfig.pin.outputPin = atom_channel;
|
||||||
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
||||||
|
|
||||||
g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
switch(atom_channel->atom)
|
switch(atom_channel->atom)
|
||||||
{
|
{
|
||||||
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
@@ -309,6 +308,13 @@ void pwm_duty(ATOM_PIN_enum pwmch, uint32 duty)
|
|||||||
atom_channel = gtm_atom_mux(pwmch);
|
atom_channel = gtm_atom_mux(pwmch);
|
||||||
|
|
||||||
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
||||||
duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
|
switch(atom_channel->atom)
|
||||||
|
{
|
||||||
|
case 0: duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
|
case 1: duty = (uint32)((uint64)duty * period / GTM_ATOM1_PWM_DUTY_MAX); break;
|
||||||
|
case 2: duty = (uint32)((uint64)duty * period / GTM_ATOM2_PWM_DUTY_MAX); break;
|
||||||
|
case 3: duty = (uint32)((uint64)duty * period / GTM_ATOM3_PWM_DUTY_MAX); break;
|
||||||
|
}
|
||||||
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,4 +76,7 @@ V1.1.0
|
|||||||
|
|
||||||
V1.1.1
|
V1.1.1
|
||||||
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
|
V1.1.2
|
||||||
|
<09><EFBFBD>ATOM_PWM<57><4D><EFBFBD><EFBFBD>ռ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쳣<EFBFBD><ECB3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
@@ -280,7 +280,6 @@ void gtm_pwm_init(ATOM_PIN_enum pwmch, uint32 freq, uint32 duty)
|
|||||||
g_atomConfig.pin.outputPin = atom_channel;
|
g_atomConfig.pin.outputPin = atom_channel;
|
||||||
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
||||||
|
|
||||||
g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
switch(atom_channel->atom)
|
switch(atom_channel->atom)
|
||||||
{
|
{
|
||||||
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
@@ -309,6 +308,13 @@ void pwm_duty(ATOM_PIN_enum pwmch, uint32 duty)
|
|||||||
atom_channel = gtm_atom_mux(pwmch);
|
atom_channel = gtm_atom_mux(pwmch);
|
||||||
|
|
||||||
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
||||||
duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
|
switch(atom_channel->atom)
|
||||||
|
{
|
||||||
|
case 0: duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
|
case 1: duty = (uint32)((uint64)duty * period / GTM_ATOM1_PWM_DUTY_MAX); break;
|
||||||
|
case 2: duty = (uint32)((uint64)duty * period / GTM_ATOM2_PWM_DUTY_MAX); break;
|
||||||
|
case 3: duty = (uint32)((uint64)duty * period / GTM_ATOM3_PWM_DUTY_MAX); break;
|
||||||
|
}
|
||||||
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,4 +76,7 @@ V1.1.0
|
|||||||
|
|
||||||
V1.1.1
|
V1.1.1
|
||||||
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
|
V1.1.2
|
||||||
|
<09><EFBFBD>ATOM_PWM<57><4D><EFBFBD><EFBFBD>ռ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쳣<EFBFBD><ECB3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
@@ -280,7 +280,6 @@ void gtm_pwm_init(ATOM_PIN_enum pwmch, uint32 freq, uint32 duty)
|
|||||||
g_atomConfig.pin.outputPin = atom_channel;
|
g_atomConfig.pin.outputPin = atom_channel;
|
||||||
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
||||||
|
|
||||||
g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
switch(atom_channel->atom)
|
switch(atom_channel->atom)
|
||||||
{
|
{
|
||||||
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
@@ -309,6 +308,13 @@ void pwm_duty(ATOM_PIN_enum pwmch, uint32 duty)
|
|||||||
atom_channel = gtm_atom_mux(pwmch);
|
atom_channel = gtm_atom_mux(pwmch);
|
||||||
|
|
||||||
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
||||||
duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
|
switch(atom_channel->atom)
|
||||||
|
{
|
||||||
|
case 0: duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
|
case 1: duty = (uint32)((uint64)duty * period / GTM_ATOM1_PWM_DUTY_MAX); break;
|
||||||
|
case 2: duty = (uint32)((uint64)duty * period / GTM_ATOM2_PWM_DUTY_MAX); break;
|
||||||
|
case 3: duty = (uint32)((uint64)duty * period / GTM_ATOM3_PWM_DUTY_MAX); break;
|
||||||
|
}
|
||||||
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,4 +76,7 @@ V1.1.0
|
|||||||
|
|
||||||
V1.1.1
|
V1.1.1
|
||||||
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
|
V1.1.2
|
||||||
|
<09><EFBFBD>ATOM_PWM<57><4D><EFBFBD><EFBFBD>ռ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쳣<EFBFBD><ECB3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
@@ -280,7 +280,6 @@ void gtm_pwm_init(ATOM_PIN_enum pwmch, uint32 freq, uint32 duty)
|
|||||||
g_atomConfig.pin.outputPin = atom_channel;
|
g_atomConfig.pin.outputPin = atom_channel;
|
||||||
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
||||||
|
|
||||||
g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
switch(atom_channel->atom)
|
switch(atom_channel->atom)
|
||||||
{
|
{
|
||||||
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
@@ -309,6 +308,13 @@ void pwm_duty(ATOM_PIN_enum pwmch, uint32 duty)
|
|||||||
atom_channel = gtm_atom_mux(pwmch);
|
atom_channel = gtm_atom_mux(pwmch);
|
||||||
|
|
||||||
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
||||||
duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
|
switch(atom_channel->atom)
|
||||||
|
{
|
||||||
|
case 0: duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
|
case 1: duty = (uint32)((uint64)duty * period / GTM_ATOM1_PWM_DUTY_MAX); break;
|
||||||
|
case 2: duty = (uint32)((uint64)duty * period / GTM_ATOM2_PWM_DUTY_MAX); break;
|
||||||
|
case 3: duty = (uint32)((uint64)duty * period / GTM_ATOM3_PWM_DUTY_MAX); break;
|
||||||
|
}
|
||||||
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,4 +76,7 @@ V1.1.0
|
|||||||
|
|
||||||
V1.1.1
|
V1.1.1
|
||||||
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
|
V1.1.2
|
||||||
|
<09><EFBFBD>ATOM_PWM<57><4D><EFBFBD><EFBFBD>ռ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쳣<EFBFBD><ECB3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
@@ -280,7 +280,6 @@ void gtm_pwm_init(ATOM_PIN_enum pwmch, uint32 freq, uint32 duty)
|
|||||||
g_atomConfig.pin.outputPin = atom_channel;
|
g_atomConfig.pin.outputPin = atom_channel;
|
||||||
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
||||||
|
|
||||||
g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
switch(atom_channel->atom)
|
switch(atom_channel->atom)
|
||||||
{
|
{
|
||||||
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
@@ -309,6 +308,13 @@ void pwm_duty(ATOM_PIN_enum pwmch, uint32 duty)
|
|||||||
atom_channel = gtm_atom_mux(pwmch);
|
atom_channel = gtm_atom_mux(pwmch);
|
||||||
|
|
||||||
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
||||||
duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
|
switch(atom_channel->atom)
|
||||||
|
{
|
||||||
|
case 0: duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
|
case 1: duty = (uint32)((uint64)duty * period / GTM_ATOM1_PWM_DUTY_MAX); break;
|
||||||
|
case 2: duty = (uint32)((uint64)duty * period / GTM_ATOM2_PWM_DUTY_MAX); break;
|
||||||
|
case 3: duty = (uint32)((uint64)duty * period / GTM_ATOM3_PWM_DUTY_MAX); break;
|
||||||
|
}
|
||||||
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,4 +76,7 @@ V1.1.0
|
|||||||
|
|
||||||
V1.1.1
|
V1.1.1
|
||||||
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
|
V1.1.2
|
||||||
|
<09><EFBFBD>ATOM_PWM<57><4D><EFBFBD><EFBFBD>ռ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쳣<EFBFBD><ECB3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
@@ -280,7 +280,6 @@ void gtm_pwm_init(ATOM_PIN_enum pwmch, uint32 freq, uint32 duty)
|
|||||||
g_atomConfig.pin.outputPin = atom_channel;
|
g_atomConfig.pin.outputPin = atom_channel;
|
||||||
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
||||||
|
|
||||||
g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
switch(atom_channel->atom)
|
switch(atom_channel->atom)
|
||||||
{
|
{
|
||||||
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
@@ -309,6 +308,13 @@ void pwm_duty(ATOM_PIN_enum pwmch, uint32 duty)
|
|||||||
atom_channel = gtm_atom_mux(pwmch);
|
atom_channel = gtm_atom_mux(pwmch);
|
||||||
|
|
||||||
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
||||||
duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
|
switch(atom_channel->atom)
|
||||||
|
{
|
||||||
|
case 0: duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
|
case 1: duty = (uint32)((uint64)duty * period / GTM_ATOM1_PWM_DUTY_MAX); break;
|
||||||
|
case 2: duty = (uint32)((uint64)duty * period / GTM_ATOM2_PWM_DUTY_MAX); break;
|
||||||
|
case 3: duty = (uint32)((uint64)duty * period / GTM_ATOM3_PWM_DUTY_MAX); break;
|
||||||
|
}
|
||||||
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,4 +76,7 @@ V1.1.0
|
|||||||
|
|
||||||
V1.1.1
|
V1.1.1
|
||||||
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
|
V1.1.2
|
||||||
|
<09><EFBFBD>ATOM_PWM<57><4D><EFBFBD><EFBFBD>ռ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쳣<EFBFBD><ECB3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
@@ -280,7 +280,6 @@ void gtm_pwm_init(ATOM_PIN_enum pwmch, uint32 freq, uint32 duty)
|
|||||||
g_atomConfig.pin.outputPin = atom_channel;
|
g_atomConfig.pin.outputPin = atom_channel;
|
||||||
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
||||||
|
|
||||||
g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
switch(atom_channel->atom)
|
switch(atom_channel->atom)
|
||||||
{
|
{
|
||||||
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
@@ -309,6 +308,13 @@ void pwm_duty(ATOM_PIN_enum pwmch, uint32 duty)
|
|||||||
atom_channel = gtm_atom_mux(pwmch);
|
atom_channel = gtm_atom_mux(pwmch);
|
||||||
|
|
||||||
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
||||||
duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
|
switch(atom_channel->atom)
|
||||||
|
{
|
||||||
|
case 0: duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
|
case 1: duty = (uint32)((uint64)duty * period / GTM_ATOM1_PWM_DUTY_MAX); break;
|
||||||
|
case 2: duty = (uint32)((uint64)duty * period / GTM_ATOM2_PWM_DUTY_MAX); break;
|
||||||
|
case 3: duty = (uint32)((uint64)duty * period / GTM_ATOM3_PWM_DUTY_MAX); break;
|
||||||
|
}
|
||||||
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,4 +76,7 @@ V1.1.0
|
|||||||
|
|
||||||
V1.1.1
|
V1.1.1
|
||||||
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
|
V1.1.2
|
||||||
|
<09><EFBFBD>ATOM_PWM<57><4D><EFBFBD><EFBFBD>ռ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쳣<EFBFBD><ECB3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
@@ -280,7 +280,6 @@ void gtm_pwm_init(ATOM_PIN_enum pwmch, uint32 freq, uint32 duty)
|
|||||||
g_atomConfig.pin.outputPin = atom_channel;
|
g_atomConfig.pin.outputPin = atom_channel;
|
||||||
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
||||||
|
|
||||||
g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
switch(atom_channel->atom)
|
switch(atom_channel->atom)
|
||||||
{
|
{
|
||||||
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
@@ -309,6 +308,13 @@ void pwm_duty(ATOM_PIN_enum pwmch, uint32 duty)
|
|||||||
atom_channel = gtm_atom_mux(pwmch);
|
atom_channel = gtm_atom_mux(pwmch);
|
||||||
|
|
||||||
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
||||||
duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
|
switch(atom_channel->atom)
|
||||||
|
{
|
||||||
|
case 0: duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
|
case 1: duty = (uint32)((uint64)duty * period / GTM_ATOM1_PWM_DUTY_MAX); break;
|
||||||
|
case 2: duty = (uint32)((uint64)duty * period / GTM_ATOM2_PWM_DUTY_MAX); break;
|
||||||
|
case 3: duty = (uint32)((uint64)duty * period / GTM_ATOM3_PWM_DUTY_MAX); break;
|
||||||
|
}
|
||||||
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,4 +76,7 @@ V1.1.0
|
|||||||
|
|
||||||
V1.1.1
|
V1.1.1
|
||||||
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
|
V1.1.2
|
||||||
|
<09><EFBFBD>ATOM_PWM<57><4D><EFBFBD><EFBFBD>ռ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쳣<EFBFBD><ECB3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
@@ -280,7 +280,6 @@ void gtm_pwm_init(ATOM_PIN_enum pwmch, uint32 freq, uint32 duty)
|
|||||||
g_atomConfig.pin.outputPin = atom_channel;
|
g_atomConfig.pin.outputPin = atom_channel;
|
||||||
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
||||||
|
|
||||||
g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
switch(atom_channel->atom)
|
switch(atom_channel->atom)
|
||||||
{
|
{
|
||||||
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
@@ -309,6 +308,13 @@ void pwm_duty(ATOM_PIN_enum pwmch, uint32 duty)
|
|||||||
atom_channel = gtm_atom_mux(pwmch);
|
atom_channel = gtm_atom_mux(pwmch);
|
||||||
|
|
||||||
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
||||||
duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
|
switch(atom_channel->atom)
|
||||||
|
{
|
||||||
|
case 0: duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
|
case 1: duty = (uint32)((uint64)duty * period / GTM_ATOM1_PWM_DUTY_MAX); break;
|
||||||
|
case 2: duty = (uint32)((uint64)duty * period / GTM_ATOM2_PWM_DUTY_MAX); break;
|
||||||
|
case 3: duty = (uint32)((uint64)duty * period / GTM_ATOM3_PWM_DUTY_MAX); break;
|
||||||
|
}
|
||||||
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,4 +76,7 @@ V1.1.0
|
|||||||
|
|
||||||
V1.1.1
|
V1.1.1
|
||||||
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
|
V1.1.2
|
||||||
|
<09><EFBFBD>ATOM_PWM<57><4D><EFBFBD><EFBFBD>ռ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쳣<EFBFBD><ECB3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
@@ -280,7 +280,6 @@ void gtm_pwm_init(ATOM_PIN_enum pwmch, uint32 freq, uint32 duty)
|
|||||||
g_atomConfig.pin.outputPin = atom_channel;
|
g_atomConfig.pin.outputPin = atom_channel;
|
||||||
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
||||||
|
|
||||||
g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
switch(atom_channel->atom)
|
switch(atom_channel->atom)
|
||||||
{
|
{
|
||||||
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
@@ -309,6 +308,13 @@ void pwm_duty(ATOM_PIN_enum pwmch, uint32 duty)
|
|||||||
atom_channel = gtm_atom_mux(pwmch);
|
atom_channel = gtm_atom_mux(pwmch);
|
||||||
|
|
||||||
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
||||||
duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
|
switch(atom_channel->atom)
|
||||||
|
{
|
||||||
|
case 0: duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
|
case 1: duty = (uint32)((uint64)duty * period / GTM_ATOM1_PWM_DUTY_MAX); break;
|
||||||
|
case 2: duty = (uint32)((uint64)duty * period / GTM_ATOM2_PWM_DUTY_MAX); break;
|
||||||
|
case 3: duty = (uint32)((uint64)duty * period / GTM_ATOM3_PWM_DUTY_MAX); break;
|
||||||
|
}
|
||||||
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,4 +76,7 @@ V1.1.0
|
|||||||
|
|
||||||
V1.1.1
|
V1.1.1
|
||||||
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
|
V1.1.2
|
||||||
|
<09><EFBFBD>ATOM_PWM<57><4D><EFBFBD><EFBFBD>ռ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쳣<EFBFBD><ECB3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
@@ -280,7 +280,6 @@ void gtm_pwm_init(ATOM_PIN_enum pwmch, uint32 freq, uint32 duty)
|
|||||||
g_atomConfig.pin.outputPin = atom_channel;
|
g_atomConfig.pin.outputPin = atom_channel;
|
||||||
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
||||||
|
|
||||||
g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
switch(atom_channel->atom)
|
switch(atom_channel->atom)
|
||||||
{
|
{
|
||||||
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
@@ -309,6 +308,13 @@ void pwm_duty(ATOM_PIN_enum pwmch, uint32 duty)
|
|||||||
atom_channel = gtm_atom_mux(pwmch);
|
atom_channel = gtm_atom_mux(pwmch);
|
||||||
|
|
||||||
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
||||||
duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
|
switch(atom_channel->atom)
|
||||||
|
{
|
||||||
|
case 0: duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
|
case 1: duty = (uint32)((uint64)duty * period / GTM_ATOM1_PWM_DUTY_MAX); break;
|
||||||
|
case 2: duty = (uint32)((uint64)duty * period / GTM_ATOM2_PWM_DUTY_MAX); break;
|
||||||
|
case 3: duty = (uint32)((uint64)duty * period / GTM_ATOM3_PWM_DUTY_MAX); break;
|
||||||
|
}
|
||||||
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,4 +76,7 @@ V1.1.0
|
|||||||
|
|
||||||
V1.1.1
|
V1.1.1
|
||||||
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
|
V1.1.2
|
||||||
|
<09><EFBFBD>ATOM_PWM<57><4D><EFBFBD><EFBFBD>ռ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쳣<EFBFBD><ECB3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
@@ -280,7 +280,6 @@ void gtm_pwm_init(ATOM_PIN_enum pwmch, uint32 freq, uint32 duty)
|
|||||||
g_atomConfig.pin.outputPin = atom_channel;
|
g_atomConfig.pin.outputPin = atom_channel;
|
||||||
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
||||||
|
|
||||||
g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
switch(atom_channel->atom)
|
switch(atom_channel->atom)
|
||||||
{
|
{
|
||||||
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
@@ -309,6 +308,13 @@ void pwm_duty(ATOM_PIN_enum pwmch, uint32 duty)
|
|||||||
atom_channel = gtm_atom_mux(pwmch);
|
atom_channel = gtm_atom_mux(pwmch);
|
||||||
|
|
||||||
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
||||||
duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
|
switch(atom_channel->atom)
|
||||||
|
{
|
||||||
|
case 0: duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
|
case 1: duty = (uint32)((uint64)duty * period / GTM_ATOM1_PWM_DUTY_MAX); break;
|
||||||
|
case 2: duty = (uint32)((uint64)duty * period / GTM_ATOM2_PWM_DUTY_MAX); break;
|
||||||
|
case 3: duty = (uint32)((uint64)duty * period / GTM_ATOM3_PWM_DUTY_MAX); break;
|
||||||
|
}
|
||||||
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,10 +48,10 @@ int core0_main(void)
|
|||||||
|
|
||||||
|
|
||||||
//<2F><><EFBFBD>鵱ǰҳ<C7B0>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
//<2F><><EFBFBD>鵱ǰҳ<C7B0>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
if(flash_check(EXAMPLE_EEPROM_SECTOR, 0)) eeprom_erase_sector(EXAMPLE_EEPROM_SECTOR);
|
if(flash_check(EXAMPLE_EEPROM_SECTOR, 0) || flash_check(EXAMPLE_EEPROM_SECTOR, 1) || flash_check(EXAMPLE_EEPROM_SECTOR, 2) || flash_check(EXAMPLE_EEPROM_SECTOR, 3))
|
||||||
if(flash_check(EXAMPLE_EEPROM_SECTOR, 1)) eeprom_erase_sector(EXAMPLE_EEPROM_SECTOR);
|
{
|
||||||
if(flash_check(EXAMPLE_EEPROM_SECTOR, 2)) eeprom_erase_sector(EXAMPLE_EEPROM_SECTOR);
|
eeprom_erase_sector(EXAMPLE_EEPROM_SECTOR);
|
||||||
if(flash_check(EXAMPLE_EEPROM_SECTOR, 3)) eeprom_erase_sector(EXAMPLE_EEPROM_SECTOR);
|
}
|
||||||
|
|
||||||
//<2F><>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݲ<EFBFBD><DDB2><EFBFBD>32λʱ<CEBB><CAB1><EFBFBD><EFBFBD><EFBFBD>齫<EFBFBD><E9BDAB><EFBFBD>ݷ<EFBFBD><DDB7><EFBFBD>uint32 <20><><EFBFBD>͵ı<CDB5><C4B1><EFBFBD><EFBFBD>У<EFBFBD><D0A3>ڽ<EFBFBD><DABD>ñ<EFBFBD><C3B1><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>뵽eeprom_page_program<61><6D><EFBFBD><EFBFBD>
|
//<2F><>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݲ<EFBFBD><DDB2><EFBFBD>32λʱ<CEBB><CAB1><EFBFBD><EFBFBD><EFBFBD>齫<EFBFBD><E9BDAB><EFBFBD>ݷ<EFBFBD><DDB7><EFBFBD>uint32 <20><><EFBFBD>͵ı<CDB5><C4B1><EFBFBD><EFBFBD>У<EFBFBD><D0A3>ڽ<EFBFBD><DABD>ñ<EFBFBD><C3B1><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>뵽eeprom_page_program<61><6D><EFBFBD><EFBFBD>
|
||||||
write_buf = write_data1;
|
write_buf = write_data1;
|
||||||
|
|||||||
@@ -187,7 +187,11 @@
|
|||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||||
<storageModule addStartupFiles="false" moduleId="com.tasking.processor"/>
|
<storageModule addStartupFiles="false" moduleId="com.tasking.processor"/>
|
||||||
<storageModule moduleId="com.tasking.toolInfo">
|
<storageModule moduleId="com.tasking.toolInfo">
|
||||||
|
<toolInfo>TASKING VX-toolset for TriCore: control program v6.3r1 Build 19041558</toolInfo>
|
||||||
|
<toolInfo>TASKING VX-toolset for TriCore: object linker v6.3r1 Build 19041558</toolInfo>
|
||||||
|
<toolInfo>TASKING VX-toolset for TriCore: assembler v6.3r1 Build 19041558</toolInfo>
|
||||||
<toolInfo>TASKING program builder v6.3r1 Build 19041558</toolInfo>
|
<toolInfo>TASKING program builder v6.3r1 Build 19041558</toolInfo>
|
||||||
|
<toolInfo>TASKING VX-toolset for TriCore: C compiler v6.3r1 Build 19041558</toolInfo>
|
||||||
</storageModule>
|
</storageModule>
|
||||||
</cconfiguration>
|
</cconfiguration>
|
||||||
<cconfiguration id="com.tasking.config.ctc.abs.release.2134260939">
|
<cconfiguration id="com.tasking.config.ctc.abs.release.2134260939">
|
||||||
|
|||||||
@@ -76,4 +76,7 @@ V1.1.0
|
|||||||
|
|
||||||
V1.1.1
|
V1.1.1
|
||||||
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
|
V1.1.2
|
||||||
|
<09><EFBFBD>ATOM_PWM<57><4D><EFBFBD><EFBFBD>ռ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쳣<EFBFBD><ECB3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
@@ -280,7 +280,6 @@ void gtm_pwm_init(ATOM_PIN_enum pwmch, uint32 freq, uint32 duty)
|
|||||||
g_atomConfig.pin.outputPin = atom_channel;
|
g_atomConfig.pin.outputPin = atom_channel;
|
||||||
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
||||||
|
|
||||||
g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
switch(atom_channel->atom)
|
switch(atom_channel->atom)
|
||||||
{
|
{
|
||||||
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
@@ -309,6 +308,13 @@ void pwm_duty(ATOM_PIN_enum pwmch, uint32 duty)
|
|||||||
atom_channel = gtm_atom_mux(pwmch);
|
atom_channel = gtm_atom_mux(pwmch);
|
||||||
|
|
||||||
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
||||||
duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
|
switch(atom_channel->atom)
|
||||||
|
{
|
||||||
|
case 0: duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
|
case 1: duty = (uint32)((uint64)duty * period / GTM_ATOM1_PWM_DUTY_MAX); break;
|
||||||
|
case 2: duty = (uint32)((uint64)duty * period / GTM_ATOM2_PWM_DUTY_MAX); break;
|
||||||
|
case 3: duty = (uint32)((uint64)duty * period / GTM_ATOM3_PWM_DUTY_MAX); break;
|
||||||
|
}
|
||||||
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -191,11 +191,7 @@
|
|||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||||
<storageModule addStartupFiles="false" moduleId="com.tasking.processor"/>
|
<storageModule addStartupFiles="false" moduleId="com.tasking.processor"/>
|
||||||
<storageModule moduleId="com.tasking.toolInfo">
|
<storageModule moduleId="com.tasking.toolInfo">
|
||||||
<toolInfo>TASKING VX-toolset for TriCore: control program v6.3r1 Build 19041558</toolInfo>
|
|
||||||
<toolInfo>TASKING VX-toolset for TriCore: object linker v6.3r1 Build 19041558</toolInfo>
|
|
||||||
<toolInfo>TASKING VX-toolset for TriCore: assembler v6.3r1 Build 19041558</toolInfo>
|
|
||||||
<toolInfo>TASKING program builder v6.3r1 Build 19041558</toolInfo>
|
<toolInfo>TASKING program builder v6.3r1 Build 19041558</toolInfo>
|
||||||
<toolInfo>TASKING VX-toolset for TriCore: C compiler v6.3r1 Build 19041558</toolInfo>
|
|
||||||
</storageModule>
|
</storageModule>
|
||||||
</cconfiguration>
|
</cconfiguration>
|
||||||
<cconfiguration id="com.tasking.config.ctc.abs.release.2134260939">
|
<cconfiguration id="com.tasking.config.ctc.abs.release.2134260939">
|
||||||
|
|||||||
@@ -76,4 +76,7 @@ V1.1.0
|
|||||||
|
|
||||||
V1.1.1
|
V1.1.1
|
||||||
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
<09><EFBFBD>uart_getchar<61><72><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
|
V1.1.2
|
||||||
|
<09><EFBFBD>ATOM_PWM<57><4D><EFBFBD><EFBFBD>ռ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쳣<EFBFBD><ECB3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
@@ -280,7 +280,6 @@ void gtm_pwm_init(ATOM_PIN_enum pwmch, uint32 freq, uint32 duty)
|
|||||||
g_atomConfig.pin.outputPin = atom_channel;
|
g_atomConfig.pin.outputPin = atom_channel;
|
||||||
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
g_atomConfig.synchronousUpdateEnabled = TRUE;
|
||||||
|
|
||||||
g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
switch(atom_channel->atom)
|
switch(atom_channel->atom)
|
||||||
{
|
{
|
||||||
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
case 0: g_atomConfig.dutyCycle = (uint32)((uint64)duty * g_atomConfig.period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
@@ -309,6 +308,13 @@ void pwm_duty(ATOM_PIN_enum pwmch, uint32 duty)
|
|||||||
atom_channel = gtm_atom_mux(pwmch);
|
atom_channel = gtm_atom_mux(pwmch);
|
||||||
|
|
||||||
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
period = IfxGtm_Atom_Ch_getCompareZero(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel);
|
||||||
duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX);
|
|
||||||
|
switch(atom_channel->atom)
|
||||||
|
{
|
||||||
|
case 0: duty = (uint32)((uint64)duty * period / GTM_ATOM0_PWM_DUTY_MAX); break;
|
||||||
|
case 1: duty = (uint32)((uint64)duty * period / GTM_ATOM1_PWM_DUTY_MAX); break;
|
||||||
|
case 2: duty = (uint32)((uint64)duty * period / GTM_ATOM2_PWM_DUTY_MAX); break;
|
||||||
|
case 3: duty = (uint32)((uint64)duty * period / GTM_ATOM3_PWM_DUTY_MAX); break;
|
||||||
|
}
|
||||||
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
IfxGtm_Atom_Ch_setCompareOneShadow(&MODULE_GTM.ATOM[atom_channel->atom], atom_channel->channel, duty);
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user