Skip to content

Commit

Permalink
Fix descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
luqasz committed Oct 2, 2023
1 parent 84d60fd commit 2c7b5ee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/timer_equations.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
namespace timer {

/*
Given timer input frequency, desired frequency, timer counts
return prescaler value.
*/
Given timer input frequency, desired frequency, timer counts
return prescaler value.
*/
CONSTFN constexpr u32
calc_prescaler(const units::Frequency & fin, const units::Frequency & fout, const u32 counts)
{
return fin / (fout * counts);
}

/*
Given timer input frequency, desired frequency, timer prescaler,
return number of timer counts required.
*/
Given timer input frequency, desired frequency, timer prescaler,
return number of timer counts required.
*/
CONSTFN constexpr u32
calc_counts(const units::Frequency & fin, const units::Frequency & fout, const u32 presc)
{
Expand Down

0 comments on commit 2c7b5ee

Please sign in to comment.