88/*
99 Copyright (c) 2024, GigaDevice Semiconductor Inc.
1010
11- Redistribution and use in source and binary forms, with or without modification,
11+ Redistribution and use in source and binary forms, with or without modification,
1212are permitted provided that the following conditions are met:
1313
14- 1. Redistributions of source code must retain the above copyright notice, this
14+ 1. Redistributions of source code must retain the above copyright notice, this
1515 list of conditions and the following disclaimer.
16- 2. Redistributions in binary form must reproduce the above copyright notice,
17- this list of conditions and the following disclaimer in the documentation
16+ 2. Redistributions in binary form must reproduce the above copyright notice,
17+ this list of conditions and the following disclaimer in the documentation
1818 and/or other materials provided with the distribution.
19- 3. Neither the name of the copyright holder nor the names of its contributors
20- may be used to endorse or promote products derived from this software without
19+ 3. Neither the name of the copyright holder nor the names of its contributors
20+ may be used to endorse or promote products derived from this software without
2121 specific prior written permission.
2222
23- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
27- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
29- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
30- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
23+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26+ IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
27+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
29+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
30+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
3232OF SUCH DAMAGE.
3333*/
3434
@@ -43,7 +43,7 @@ static rcu_periph_enum COM_CLK[COMn] = {EVAL_COM0_CLK};
4343static uint32_t COM_TX_PIN [COMn ] = {EVAL_COM0_TX_PIN };
4444static uint32_t COM_RX_PIN [COMn ] = {EVAL_COM0_RX_PIN };
4545
46- static rcu_periph_enum GPIO_CLK [LED_MAX ] = {LED1_GPIO_CLK , LED2_GPIO_CLK ,
46+ static rcu_periph_enum GPIO_CLK [LED_MAX ] = {LED1_GPIO_CLK , LED2_GPIO_CLK ,
4747 LED3_GPIO_CLK };
4848
4949static uint32_t KEY_PORT [KEY_MAX ] = {TAMPER_WAKEUP_KEY_GPIO_PORT };
@@ -67,7 +67,7 @@ void gd_eval_led_init (led_typedef_enum lednum)
6767{
6868 /* enable the led clock */
6969 rcu_periph_clock_enable (GPIO_CLK [lednum ]);
70- /* configure led GPIO port */
70+ /* configure led GPIO port */
7171 gpio_mode_set (GPIO_PORT [lednum ], GPIO_MODE_OUTPUT , GPIO_PUPD_NONE ,GPIO_PIN [lednum ]);
7272 gpio_output_options_set (GPIO_PORT [lednum ], GPIO_OTYPE_PP , GPIO_OSPEED_25MHZ ,GPIO_PIN [lednum ]);
7373
0 commit comments