Advertisement
rfmonk

CMSIS example

Jan 17th, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. // credit to definitive guide to the
  2. // ARM Cortex-MO  by Joseph Yiu
  3.  
  4. #include "vendor_device.h"
  5.  
  6. void main(void) {
  7.     SystemInit();
  8.     ...
  9.     NVIC_SetPriority(UART1_IRQn, 0x0);
  10.     NVIC_EnableIRQ(UART1_IRQn);
  11.     ...
  12. }
  13. void UART1_IRQHandler {
  14.     ...
  15. }
  16.  
  17. void SysTick_Handler(void) {
  18.     ...
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement