Add reset_button.c and test_led.c. Clean up init_peripherials.c

This commit is contained in:
László Monda
2016-10-05 02:05:05 +02:00
parent 5936129ebc
commit f0b63a6f7b
8 changed files with 79 additions and 42 deletions

View File

@@ -9,8 +9,13 @@
#define RESET_BUTTON_GPIO GPIOB
#define RESET_BUTTON_PORT PORTB
#define RESET_BUTTON_CLOCK kCLOCK_PortB
#define RESET_BUTTON_PIN 1
#define RESET_BUTTON_IRQ PORTB_IRQn
#define RESET_BUTTON_IRQ_HANDLER PORTB_IRQHandler
// Functions:
extern void InitResetButton();
#endif