22#include "hal.h"
33
44int 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 );
99
1010 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 );
1515 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 );
2020 spin (9999999 );
2121 }
2222}
@@ -34,7 +34,7 @@ __attribute__((naked, noreturn)) void _reset(void) {
3434
3535extern void _estack (void ); // Defined in link.ld
3636
37- // 16 standard and 42 nRF52 -specific handlers
37+ // 16 standard and 91 STM32 -specific handlers
3838__attribute__((section (".vectors" ))) void (* const tab [16 + 42 ])(void ) = {
3939 _estack , _reset };
4040
0 commit comments