diff options
author | Harald Welte <laforge@osmocom.org> | 2019-12-22 09:24:57 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2019-12-22 09:24:57 +0100 |
commit | adbd8c8437bc1d4948069b58c8dd04ca6ca125d0 (patch) | |
tree | 0e8d70cd5bf1e178efaa8d035a04f5c4dda37a67 | |
parent | 8d10268202f59581c99f7e97854b25cf409289a3 (diff) |
e1: use unsigned type where applicable
-rw-r--r-- | sam/applications/sam_e1/e1_ssc_tc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sam/applications/sam_e1/e1_ssc_tc.c b/sam/applications/sam_e1/e1_ssc_tc.c index d7993017..d28a78d0 100644 --- a/sam/applications/sam_e1/e1_ssc_tc.c +++ b/sam/applications/sam_e1/e1_ssc_tc.c @@ -226,12 +226,14 @@ void e1_init_gpio(void) void e1_ssc_init(void) { + unsigned int i; + g_pdc = ssc_get_pdc_base(SSC); printf("%s\n\r", __func__); ssc_buffer_init(g_pdc_ssc_rx_buffer, ARRAY_SIZE(g_pdc_ssc_rx_buffer)); ssc_buffer_init(g_pdc_ssc_tx_buffer, ARRAY_SIZE(g_pdc_ssc_tx_buffer)); - for (int i = 0; i < ARRAY_SIZE(g_pdc_ssc_tx_buffer); i++) + for (i = 0; i < ARRAY_SIZE(g_pdc_ssc_tx_buffer); i++) fill_tx_buf(g_pdc_ssc_tx_buffer[i].buffer, sizeof(g_pdc_ssc_tx_buffer[i].buffer)); sysclk_enable_peripheral_clock(ID_SSC); |