CLEON  Version 1
Cloud-Offloaded GPS Receiver
hal_init.c
Go to the documentation of this file.
1 
7 #include "cleon_conf.h"
8 #include "app_define.h"
9 #include "sys_define.h"
10 #include "hal_define.h"
11 #include "fs_define.h"
12 
13 /*----------------------------------------------------------------------------*/
21 void HAL_Init(void)
22 {
23  HAL_PMM_Init();
24  HAL_GPIO_Init();
25  HAL_UCS_Init();
26  HAL_UART_Init();
27  HAL_RTC_Init();
29  HAL_DMA_Init();
30  HAL_ADC_Init();
31  HAL_TIMER_Init();
32  HAL_SPI_Init();
33 
34 #if (DEBUG_MODE) && (DUMP_SYSTEM_INFO_VIA_USB)
35  // Welcome screen
36  SYS_USB_Printf("=======================================================\r\n");
37  SYS_USB_Printf("CLEON \r\n");
38  SYS_USB_Printf("=======================================================\r\n");
39 
40  // Clock setting information
41  SYS_USB_Printf("CLCOK SETTING \r\n");
42  SYS_USB_Printf(" MCLK = 12MHz\r\n");
43  SYS_USB_Printf(" ACLK = 32768Hz\r\n");
44  SYS_USB_Printf(" SMCLK = 12MHz\r\n");
45  SYS_USB_Printf("\r\n");
46 #endif
47 }