Posted on May 17, 2011 at 12:51i wonder if anybody out here has succcessfully used pin remapping . if yes , then plz do share the things that must be taken care of for this.
Posted on May 17, 2011 at 12:51Here is the code that i am trying out . void gpio_init () { GPIO_InitTypeDef gpio_initstruct ; // Remapping of I2C1 RCC_APB2PeriphClockCmd ( RCC_APB2Periph_AFIO , ENABLE ) ; msdelay ( 5 ) ; GPIO_PinRemapConfig(GPI...
Posted on May 17, 2011 at 12:51i was trying to remap the i2c1 pins but its not working . any suggestions ????????? i have checked in hardware debugging through jtag that afio register does gets modified with i21_remap bit getting set but the communi...
Posted on May 17, 2011 at 12:50one more thing 1 wud like to add . since i was using the support library of st ver 1.0 so i had to modify the above to the following to make it functional : #define CPU_RESET() {SCB->AIRC = (SCB->AIRC & 0x0000FFFF) | 0...
Posted on May 17, 2011 at 12:50Quote:On 05-11-2008 at 11:03, Anonymous wrote: #define CPU_RESET() {AITCR = (AITCR & 0x0000FFFF) | 0x05FA0001;} AITCR is Application Interrupt and Reset Control Register of NVIC at 0xE000ED0C. Thanks . it's working. a...