mirror of
https://github.com/esp8266/Arduino.git
synced 2025-10-15 11:26:40 +03:00
Merge branch 'audio'
Conflicts: hardware/arduino/sam/variants/arduino_due_x/libsam_sam3x8e_gcc_rel.a hardware/arduino/sam/variants/arduino_due_x/libsam_sam3x8e_gcc_rel.a.txt hardware/arduino/sam/variants/arduino_due_x/variant.h
This commit is contained in:
@@ -68,6 +68,12 @@ extern void TC_Stop( Tc *pTc, uint32_t dwChannel ) ;
|
||||
|
||||
extern uint32_t TC_FindMckDivisor( uint32_t dwFreq, uint32_t dwMCk, uint32_t *dwDiv, uint32_t *dwTcClks, uint32_t dwBoardMCK ) ;
|
||||
|
||||
extern void TC_SetRA(Tc *tc, uint32_t chan, uint32_t v) ;
|
||||
|
||||
extern void TC_SetRB(Tc *tc, uint32_t chan, uint32_t v) ;
|
||||
|
||||
extern void TC_SetRC(Tc *tc, uint32_t chan, uint32_t v) ;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@@ -173,3 +173,15 @@ extern uint32_t TC_FindMckDivisor( uint32_t dwFreq, uint32_t dwMCk, uint32_t *dw
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
void TC_SetRA(Tc *tc, uint32_t chan, uint32_t v) {
|
||||
tc->TC_CHANNEL[chan].TC_RA = v;
|
||||
}
|
||||
|
||||
void TC_SetRB(Tc *tc, uint32_t chan, uint32_t v) {
|
||||
tc->TC_CHANNEL[chan].TC_RB = v;
|
||||
}
|
||||
|
||||
void TC_SetRC(Tc *tc, uint32_t chan, uint32_t v) {
|
||||
tc->TC_CHANNEL[chan].TC_RC = v;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user