Skip to content

Commit e6caa3a

Browse files
nandojvekartben
authored andcommitted
drivers: counter: sam: tc: Update sam4l freq idx 0
The Atmel sam4l have generic clock 5 enabled at 1024Hz. Update sam4l sam_tc_input_freq_table index 0 to reflect right value. signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
1 parent 45ad5f8 commit e6caa3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/counter/counter_sam_tc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static const uint32_t sam_tc_input_freq_table[] = {
8181
SOC_ATMEL_SAM_MCK_FREQ_HZ / 128,
8282
32768,
8383
#elif defined(CONFIG_SOC_SERIES_SAM4L)
84-
USEC_PER_SEC,
84+
1024,
8585
SOC_ATMEL_SAM_MCK_FREQ_HZ / 2,
8686
SOC_ATMEL_SAM_MCK_FREQ_HZ / 8,
8787
SOC_ATMEL_SAM_MCK_FREQ_HZ / 32,

0 commit comments

Comments
 (0)