转载外国的例程,包含有操作系统。 /********************* (C) COPYRIGHT RAISONANCE S.A.S. *********************************/ /********************* (C) COPYRIGHT STMicroelectronics ********************************/ /********************* (C) Matthias ****************************************************/ /* optimized for PRIMER1, extended and amended by Matthias email webmaster@tg-info.de Project "rimer1 PWM analysis" !! Hardware change !! There must be two interruptions tracks and two new connections are soldered. The Can driver is connected the external. see: "_Hardware_change\Primer_bot.png" What goes - LEds - CAN - Vbat - Temp sensor - Shutdown - 3 axis acceleration sensor - Backlight ON/Off - Display - More fronts generate with "rimer_Fonts_V1.1.xls" - Background image Background image is "ictures/bmp_background_image.h" generate with "Create_background_image.xls" - Symbols images with Transparent generate with "Create_BMP_header.xls" /* ------------------------------------------------------------------------------------*/ /* Functions and Variable Description */ /* ------------------------------------------------------------------------------------*/ /* ------------ AccelSensor.c ------------------------------------------------------------- */ extern void AccelSensor_Init_Sensor(void); // needs to be started once extern void AccelSensor_Read_Sensor(void); // After the call the following variables are set extern s16 AccelSensor_X_Roh_s16; // Accel Sensor X unfiltered extern s16 AccelSensor_Y_Roh_s16; // Accel Sensor Y unfiltered extern s16 AccelSensor_Z_Roh_s16; // Accel Sensor Z unfiltered extern s16 AccelSensor_X_Fil_s16; // Accel Sensor X filtered extern s16 AccelSensor_Y_Fil_s16; // Accel Sensor Y filtered extern s16 AccelSensor_Z_Fil_s16; // Accel Sensor Z filtered /* ------------ BackLight.c --------------------------------------------------------------- */ extern void BackLight_On(void); // turn on the LCD backlight extern void BackLight_Off(void); // turn off the LCD backlight /* ------------ Buzzer.c --------------------------------------------------------------- */ enum BUZZER_mode { BUZZER_UNDEF = -1, /*! |
Primer1-PWM-analysis-and-CAN-V1.0.zip
下载1.18 MB, 下载次数: 16, 下载积分: ST金币 -1