2
2
#include "hal.h"
3
3
4
4
int main (void ) {
5
- set_gpio_mode (P0 , BUILD_IN_LED_1_PIN , GPIO_MODE_OUTPUT , 0 );
6
- set_gpio_mode (P0 , BUILD_IN_LED_2_PIN , GPIO_MODE_OUTPUT , 0 );
7
- set_gpio_mode (P0 , BUILD_IN_LED_3_PIN , GPIO_MODE_OUTPUT , 0 );
8
- set_gpio_mode (P0 , BUILD_IN_LED_4_PIN , GPIO_MODE_OUTPUT , 0 );
5
+ set_gpio_mode (P0 , BUILT_IN_LED_1_PIN , GPIO_MODE_OUTPUT , 0 );
6
+ set_gpio_mode (P0 , BUILT_IN_LED_2_PIN , GPIO_MODE_OUTPUT , 0 );
7
+ set_gpio_mode (P0 , BUILT_IN_LED_3_PIN , GPIO_MODE_OUTPUT , 0 );
8
+ set_gpio_mode (P0 , BUILT_IN_LED_4_PIN , GPIO_MODE_OUTPUT , 0 );
9
9
10
10
while (1 ) {
11
- gpio_write (P0 , BUILD_IN_LED_1_PIN , HIGH );
12
- gpio_write (P0 , BUILD_IN_LED_2_PIN , HIGH );
13
- gpio_write (P0 , BUILD_IN_LED_3_PIN , HIGH );
14
- gpio_write (P0 , BUILD_IN_LED_4_PIN , HIGH );
11
+ gpio_write (P0 , BUILT_IN_LED_1_PIN , HIGH );
12
+ gpio_write (P0 , BUILT_IN_LED_2_PIN , HIGH );
13
+ gpio_write (P0 , BUILT_IN_LED_3_PIN , HIGH );
14
+ gpio_write (P0 , BUILT_IN_LED_4_PIN , HIGH );
15
15
spin (9999999 );
16
- gpio_write (P0 , BUILD_IN_LED_4_PIN , LOW );
17
- gpio_write (P0 , BUILD_IN_LED_3_PIN , LOW );
18
- gpio_write (P0 , BUILD_IN_LED_2_PIN , LOW );
19
- gpio_write (P0 , BUILD_IN_LED_1_PIN , LOW );
16
+ gpio_write (P0 , BUILT_IN_LED_4_PIN , LOW );
17
+ gpio_write (P0 , BUILT_IN_LED_3_PIN , LOW );
18
+ gpio_write (P0 , BUILT_IN_LED_2_PIN , LOW );
19
+ gpio_write (P0 , BUILT_IN_LED_1_PIN , LOW );
20
20
spin (9999999 );
21
21
}
22
22
}
@@ -34,7 +34,7 @@ __attribute__((naked, noreturn)) void _reset(void) {
34
34
35
35
extern void _estack (void ); // Defined in link.ld
36
36
37
- // 16 standard and 42 nRF52 -specific handlers
37
+ // 16 standard and 91 STM32 -specific handlers
38
38
__attribute__((section (".vectors" ))) void (* const tab [16 + 42 ])(void ) = {
39
39
_estack , _reset };
40
40
0 commit comments