Macros | |
| #define | HSEM_ID_0 (0U) /* HW semaphore 0*/ |
Functions | |
| int | fputc (int ch, FILE *f) |
| FRESULT | scan_files (char *path) |
| Scan files. More... | |
| void | HAL_TIM_PeriodElapsedCallback (TIM_HandleTypeDef *htim) |
| TIM HAL for Clock. More... | |
| int | main (void) |
| Main function. More... | |
| void | Error_Handler (void) |
| This function is executed in case of error occurrence. More... | |
Variables | |
| SD_HandleTypeDef | hsd1 |
| TIM_HandleTypeDef | htim1 |
| RNG_HandleTypeDef | hrng |
Variables for USB Memory Stick and SD Disk | |
| ApplicationTypeDef | Appli_state |
| FRESULT | res |
| FRESULT | res0 |
| FRESULT | res1 |
| FRESULT | res2 = FR_OK |
| char | buff1 [6] |
| FATFS * | fs |
| DWORD | fre_clust |
| DWORD | fre_sect |
| DWORD | tot_sect |
Variables for Timers and Clock | |
| int | XTAL_Min |
| int | XTAL_Min1 |
| int | XTAL_Min2 |
| int | XTAL_Hour |
| int | XTAL_Sec |
| int | XTAL_Sec1 |
| int | XTAL_Sec2 |
| int | XTAL_Day |
| int | XTAL_Month |
| int | XTAL_Year |
| int | XTAL_Weekday |
| int | XTAL_MESZ |
| int | First_XTAL_Min |
| int | First_XTAL_Hour |
| int | Leap_year |
| int | XTAL_MSEC |
Variables for Ethernet and Network Interface | |
| struct netif | gnetif |
| unsigned long | ulIPAddress |
| unsigned long | ulIPAddress1 |
| unsigned long | ulIPAddress2 |
| unsigned long | ulIPAddress3 = 0 |
| unsigned long | ulGWAddress |
| unsigned long | ulNMAddress |
| unsigned long | ulIPv6Address |
| unsigned long | ulIPv6Address1 |
| unsigned long | ulIPv6Address2 |
| unsigned long | ulIPv6Address3 = 0 |
Variables for MP3 decoding | |
| HMP3Decoder | hMP3Decoder |
| uint8_t | initialaudiovolume |
Scratch Variables | |
| char | s4 [80] |
| char | connectionInfo [80] |
| int | timeout = 0 |
| volatile uint64_t | MS_TIMER1 |
| ip_addr_t | CurrNTPserver |
function prototypes | |
| static void | MX_GPIO_Init (void) |
| GPIO Initialization Function. More... | |
| static void | MX_TIM1_Init (void) |
| TIM1 Initialization Function. More... | |
| static void | MX_SDMMC1_SD_Init (void) |
| SDMMC1 Initialization Function. More... | |
| static void | MX_RNG_Init (void) |
| RNG Initialization Function. More... | |
| #define HSEM_ID_0 (0U) /* HW semaphore 0*/ |
This function is executed in case of error occurrence.
| None |
| int fputc | ( | int | ch, |
| FILE * | f | ||
| ) |
| void HAL_TIM_PeriodElapsedCallback | ( | TIM_HandleTypeDef * | htim | ) |
| int main | ( | void | ) |
Main function.
Mount SD Disk (driver linking already done in FATFS init)
Check if there is a USB mass storage device (USB stick) present wait for Appli_state = READY (in usb_host.h) OR timeout == 2 s
Intitialize USB Disk if Ready (linking laready done in FATFS init)
Check for DHCP Success and wait and send first NTP Command
References TcpClient::adjustBuffer(), TcpClient::analysisOfMetaInfo(), Appli_state, APPLICATION_READY, BSP_SD_IsDetected(), buff1, connectionInfo, CurrNTPserver, err, Error_Handler(), EwBspClockSetTime(), EwBspConsoleDone(), EwBspConsoleInit(), EwBspSystemDone(), EwDone(), EwInit(), EwPrintSystemInfo(), EwProcess(), fre_clust, fre_sect, fs, TcpClient::gateActivities(), Mp3Player::getEtherAndBuffer(), Radio::getIPv4Address(), Radio::getIPv4AddressUint(), Radio::getIPv6Address(), Radio::getIPv6AddressUint(), gnetif, hMP3Decoder, HSEM_ID_0, htim1, init_station_DNS(), initialaudiovolume, IPv6_LOCAL_LINK_ADDR, IPv6_UNIQUE_LOCAL_ADDR, LOCAL_IPv4, Radio::m_connectionTcp, Radio::m_mp3, MPU_Config(), MS_TIMER1, MX_FATFS_Init(), MX_GPIO_Init(), MX_LWIP_Init(), MX_RNG_Init(), MX_SDMMC1_SD_Init(), MX_TIM1_Init(), MX_USB_HOST_Init(), MX_USB_HOST_Process(), NTP_init(), Radio::printIPv4Addresses(), Radio::printIPv6Addresses(), TcpClient::process(), res, res1, res2, retSD, retUSBH, scan_files(), SDFatFS, SDFile, SDPath, sendNTP(), SSI_Tags, SSICallback(), Radio::status, SystemClock_Config(), SystemCoreClock, timeout, tot_sect, ulIPAddress, ulIPAddress1, ulIPAddress2, TcpClient::updateStation(), USBHFatFS, USBHFile, USBHPath, and XTAL_Sec.
GPIO Initialization Function.
| None |
| None |
RNG Initialization Function.
| None |
| None |
References Error_Handler(), and hrng.
SDMMC1 Initialization Function.
| None |
| None |
References Error_Handler(), and hsd1.
TIM1 Initialization Function.
| None |
| None |
References Error_Handler(), and htim1.
| FRESULT scan_files | ( | char * | path | ) |
Scan files.
| path | Start node to be scanned (also used as work area) |
References res.
| ApplicationTypeDef Appli_state |
| char buff1[6] |
temporary for path name
| char connectionInfo[80] |
| ip_addr_t CurrNTPserver |
Variable for NTP service
| int First_XTAL_Hour |
| int First_XTAL_Min |
| DWORD fre_clust |
| DWORD fre_sect |
| FATFS* fs |
| struct netif gnetif |
| HMP3Decoder hMP3Decoder |
| RNG_HandleTypeDef hrng |
RNG handle Structure definition
| SD_HandleTypeDef hsd1 |
SD handle Structure definition
| TIM_HandleTypeDef htim1 |
TIM handle Structure definition
| uint8_t initialaudiovolume |
| int Leap_year |
| volatile uint64_t MS_TIMER1 |
Detailed description after the member
| FRESULT res |
| FRESULT res0 |
| FRESULT res1 |
| FRESULT res2 = FR_OK |
| char s4[80] |
| int timeout = 0 |
| DWORD tot_sect |
| unsigned long ulGWAddress |
| unsigned long ulIPAddress |
| unsigned long ulIPAddress1 |
| unsigned long ulIPAddress2 |
| unsigned long ulIPAddress3 = 0 |
| unsigned long ulIPv6Address |
| unsigned long ulIPv6Address1 |
| unsigned long ulIPv6Address2 |
| unsigned long ulIPv6Address3 = 0 |
| unsigned long ulNMAddress |
| int XTAL_Day |
| int XTAL_Hour |
| int XTAL_MESZ |
| int XTAL_Min |
| int XTAL_Min1 |
| int XTAL_Min2 |
| int XTAL_Month |
| int XTAL_MSEC |
| int XTAL_Sec |
| int XTAL_Sec1 |
| int XTAL_Sec2 |
| int XTAL_Weekday |
| int XTAL_Year |