Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 9 months ago.
STM32F411RE Nucleo
Hello Experts !!!
I am new tot he programming. I got a code for UART on the mbed.org for STM32F411RE nucleo board.
- include "mbed.h"
--------
Hyperterminal configuration
9600 bauds, 8-bit data, no parity
--------
Serial pc(SERIAL_TX, SERIAL_RX);
DigitalOut myled(LED1);
int main() { int i = 1; pc.printf("Hello World !\n"); while(1) { wait for 1 sec wait(1); pc.printf(" \n x= %d y= %d z= %d ", i,i,i); i++; myled = !myled; } }
I understand the code, and now want to change this into interrupt. So I tried to modify button interrupt program. InterruptIn uart_irq(USER_BUTTON); But I am not able to edit the code to enable interrupt. Please guide me. I want to transmit back the received character at UART sent by COM port in the ISR.