User Activity

Please go through the code and help me out in the configuration.void i2c_init(void) {  I2C1_FREQR = 0x20;// 16mHz  I2C1_CCRL = 0x50; // 160  I2C1_OARH = 0x40; // 7-bit addressing and add-mode configuration  I2C1_CR1 = 0x01; // enable peripheral}void ...
Please do share any link or code? I am really stuck in my code
/* MAIN.C file *  * Copyright (c) 2002-2005 STMicroelectronics */#include <iostm8l.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <stdint.h>#include "defs.h"unsigned int count = 0;unsigned int pwm_duty = 0x0000;void TIM2_SetCompar...
#include <iostm8l.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <stdint.h>#include <math.h>#include "defs.h"static int click = 0;void delay(unsigned long dd){  unsigned long i;  for (i=0;i<dd;i++) nop(); }void RTC(void){ unsigned...