Prabhu Durai
Newbie level 6
Hello Everyone,
i am working on the EFM32 EB and TELECOM DESIGN TD1204 my objective is to write the program for gps and accelerometer detection by using the this controller
can anyone help me to write the program and i have just wrote the simple LED blinking program but it shows me some error
i am working on the EFM32 EB and TELECOM DESIGN TD1204 my objective is to write the program for gps and accelerometer detection by using the this controller
can anyone help me to write the program and i have just wrote the simple LED blinking program but it shows me some error
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 #include <efm32.h> #include <em_gpio.h> #include <td_rtc.h> #include <td_core.h> /* This file declare all "dynamic" library data. It should be last included file * Standard size value can be override before including this file */ #define TD_SENSOR_USE_CODE 0 #define TD_GEOLOC_USE_CODE 0 #include <td_config.h> /******************************************************************************* ************************* DEFINES ***************************************** ******************************************************************************/ #define LED_PORT TIM2_PORT /**< LED port */ #define LED_BIT TIM2_BIT /**< LED bit */ /******************************************************************************* ****************************** CONSTANTS ************************************ ******************************************************************************/ /******************************************************************************* ************************** PUBLIC FUNCTIONS ******************************* ******************************************************************************/ /***************************************************************************//** * @brief * User setup function. ******************************************************************************/ void TD_USER_Setup(void) { // Define the LED pin as an output in push-pull mode GPIO_PinModeSet(LED_PORT, LED_BIT, gpioModePushPull, 1); // Forever while (true) { // Toggle the LED pin on/off GPIO_PinOutToggle(LED_PORT, LED_BIT); // Delay 500 ms TD_RTC_Delay(T500MS); } // Never reached } /***************************************************************************//** * @brief * User loop function. ******************************************************************************/ void TD_USER_Loop(void) { // Never called }
Last edited by a moderator: