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.
9 years, 6 months ago.
STM32F401 mbed with HAL
Is it possible to use mbed with HAL? The following code doesn't work:
DigitalOut led(PA_5); DigitalOut orange(D7); DigitalOut green(D9); int main() { int i; int nRet = 1; int addr = 0x04; char data[2]; while(1) { //led = 1; HAL_GPIO_WritePin(GPIOA,GPIO_PIN_5,GPIO_PIN_SET); HAL_GPIO_WritePin(GPIOD,GPIO_PIN_7,GPIO_PIN_SET); for (i=1; i<7; i++) { green = i & 6; wait(0.5); } } }
1 Answer
9 years, 6 months ago.
Hi,
what does it mean "does not work" ?? Be more specific.
Yes, HAL should be functional as it is, although it's not recommended to use as it's subject to change.
Regards,
0xc0170