Modified some comments

pull/958/head
Sissors 2015-03-09 18:07:21 +01:00
parent 095ebd03e3
commit 1ffa1baf8a
1 changed files with 1 additions and 2 deletions

View File

@ -51,8 +51,7 @@ void pwmout_init(pwmout_t* obj, PinName pin) {
ftm->SYNC = FTM_SYNC_CNTMIN_MASK;
ftm->SYNCONF = FTM_SYNCONF_SYNCMODE_MASK | FTM_SYNCONF_SWSOC_MASK | FTM_SYNCONF_SWWRBUF_MASK;
//I don't actually want to use SYNCEN which enables synchronization for match register,
// but this is only way I get the thing to do anything with FTMEN = 1
//Without SYNCEN set CnV does not seem to update
ftm->COMBINE = FTM_COMBINE_SYNCEN0_MASK | FTM_COMBINE_SYNCEN1_MASK | FTM_COMBINE_SYNCEN2_MASK | FTM_COMBINE_SYNCEN3_MASK;
obj->CnV = &ftm->CONTROLS[ch_n].CnV;