edit blinky main

This commit is contained in:
Ajit Ananthadevan 2025-08-18 17:38:25 +10:00
parent 3f016f84d8
commit 9a350fc0cc

View file

@ -1,14 +1,3 @@
/********************************** (C) COPYRIGHT *******************************
* File Name : Main.c
* Author : WCH
* Version : V1.1
* Date : 2022/01/25
* Description : Ä£Äâ¼æÈÝHIDÉ豸
*********************************************************************************
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
* Attention: This software (modified or not) and binary are used for
* microcontroller manufactured by Nanjing Qinheng Microelectronics.
*******************************************************************************/
#include "CH59x_common.h" #include "CH59x_common.h"
@ -23,17 +12,8 @@ void board_led_toggle(void)
GPIOA_InverseBits(GPIO_Pin_8); GPIOA_InverseBits(GPIO_Pin_8);
} }
void board_led_set(uint8_t set)
{
if (set)
GPIOA_ResetBits(GPIO_Pin_8);
else
GPIOA_SetBits(GPIO_Pin_8);
}
int main() int main()
{ {
uint8_t s;
SetSysClock(CLK_SOURCE_PLL_60MHz); SetSysClock(CLK_SOURCE_PLL_60MHz);
board_led_init(); board_led_init();