update applications/main.c

This commit is contained in:
liuhy 2021-09-10 18:15:33 +08:00
parent 0f6a753992
commit 870f82190a
2 changed files with 5 additions and 3 deletions

View File

@ -10,8 +10,9 @@
#include <rtthread.h>
#include <rtdevice.h>
#include "drv_gpio.h"
#define LED_PIN 39
#define LED_PIN GET_PIN( C , 8 )
int main(void)
{

View File

@ -10,13 +10,14 @@
#include <rtthread.h>
#include <rtdevice.h>
#include "drv_gpio.h"
#define LED_PIN 18
#define LED_PIN GET_PIN( F , 0 )
int main(void)
{
int count = 1;
/* set PF00 pin mode to output */
/* set pin mode to output */
rt_pin_mode(LED_PIN, PIN_MODE_OUTPUT);
while (count++)