Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface mbed-rtos
rtcconf.h
00001 #ifndef RTC_CONF_HEADER_INCLUDED 00002 #define RTC_CONF_HEADER_INCLUDED 00003 00004 00005 #ifdef USE_ETHERNET_CONNECTION 00006 00007 #define IPaddr(a1, a2, a3, a4) \ 00008 ((((uint32_t)a4) << 24) | (((uint32_t)a3) << 16) | (((uint32_t)a2) << 8) | (((uint32_t)a1) << 0)) 00009 00010 #define MACaddr(a1, a2, a3, a4, a5, a6) \ 00011 ((((uint64_t)a6) << 40) | (((uint64_t)a5) << 32) | (((uint64_t)a4) << 24) | (((uint64_t)a3) << 16) | (((uint64_t)a2) << 8) | (((uint64_t)a1) << 0)) 00012 00013 #endif 00014 00015 00016 00017 struct default_str { 00018 //#ifdef USE_ETHERNET_CONNECTION 00019 uint64_t mac_address; 00020 uint16_t port; 00021 char* default_gateway; 00022 char* ip_address; 00023 char* subnet_mask; 00024 //#endif 00025 00026 //#ifdef USE_UART_CONNECTION 00027 uint16_t baudrate; 00028 //#endif 00029 00030 uint8_t connection_type; 00031 }; 00032 00033 00034 struct ether_str { 00035 }; 00036 00037 struct config_str { 00038 struct default_str _default; 00039 }; 00040 00041 struct exec_cxt_str { 00042 struct periodic_str { 00043 //#ifdef USE_TIMER1_EC 00044 float rate; 00045 //#endif 00046 uint8_t type; 00047 }periodic; 00048 }; 00049 00050 #ifdef USE_UART_CONNECTION 00051 #define ConnectionTypeSerialUSB 0x11 00052 #define ConnectionTypeSerial1 0x01 00053 #define ConnectionTypeSerial2 0x02 00054 #define ConnectionTypeSerial3 0x03 00055 #endif 00056 00057 #ifdef USE_ETHERNET_CONNECTION 00058 #define ConnectionTypeEtherTcp 0x04 00059 #endif 00060 00061 #define ProxySynchronousExecutionContext 0x21 00062 00063 #ifdef USE_TIMER1_EC 00064 #define Timer1ExecutionContext 0x22 00065 #endif 00066 00067 #define Timer2ExecutionContext 0x23 00068 00069 #endif
Generated on Fri Jul 22 2022 21:22:49 by
1.7.2