diff options
| author | liuhy <[email protected]> | 2021-09-10 18:15:33 +0800 |
|---|---|---|
| committer | liuhy <[email protected]> | 2021-09-10 18:15:33 +0800 |
| commit | 870f82190a0c01c4bc1c8f256b355c465e4c99bb (patch) | |
| tree | 43a62353eb1c53cf908f139dfeadb367d986a62d /bsp/essemi | |
| parent | 0f6a75399218d732b968e07dd9216224c2cff1fd (diff) | |
update applications/main.c
Diffstat (limited to 'bsp/essemi')
| -rw-r--r-- | bsp/essemi/es32f0654/applications/main.c | 3 | ||||
| -rw-r--r-- | bsp/essemi/es32f369x/applications/main.c | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/bsp/essemi/es32f0654/applications/main.c b/bsp/essemi/es32f0654/applications/main.c index fd331eb8d9..10d69b22b0 100644 --- a/bsp/essemi/es32f0654/applications/main.c +++ b/bsp/essemi/es32f0654/applications/main.c @@ -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) { diff --git a/bsp/essemi/es32f369x/applications/main.c b/bsp/essemi/es32f369x/applications/main.c index c8068e94d6..ed064d6f0a 100644 --- a/bsp/essemi/es32f369x/applications/main.c +++ b/bsp/essemi/es32f369x/applications/main.c @@ -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++) |
