kopia lustrzana https://github.com/mobilinkd/NucleoTNC
Update 1200 baud modem to use same timing on both TNC3 and NucleoTNC.
rodzic
73b280099f
commit
223dc47b93
|
@ -11,13 +11,8 @@ void AFSKModulator::init(const kiss::Hardware& hw)
|
|||
|
||||
SysClock48();
|
||||
|
||||
#ifndef NUCLEOTNC
|
||||
// Configure 48MHz clock for 26.4ksps.
|
||||
htim7.Init.Period = 1817;
|
||||
#else
|
||||
// Using an 80MHz clock on NucleoTNC.
|
||||
htim7.Init.Period = 3029;
|
||||
#endif
|
||||
if (HAL_TIM_Base_Init(&htim7) != HAL_OK)
|
||||
{
|
||||
ERROR("htim7 init failed");
|
||||
|
|
Ładowanie…
Reference in New Issue