Rev 6 | Rev 9 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 6 | Rev 8 | ||
|---|---|---|---|
| Line 2... | Line 2... | ||
| 2 | * misc.c |
2 | * misc.c |
| 3 | * |
3 | * |
| 4 | * Created on: 21 Sep 2016 |
4 | * Created on: 21 Sep 2016 |
| 5 | * Author: Mike |
5 | * Author: Mike |
| 6 | */ |
6 | */ |
| 7 | - | ||
| - | 7 | #include "stm32l1xx_hal.h" |
|
| 8 | 8 | ||
| 9 | void _init(void) |
9 | void _init(void) |
| 10 | { |
10 | { |
| 11 | 11 | ||
| 12 | } |
12 | } |
| 13 | 13 | ||
| 14 | 14 | ||
| - | 15 | void TIM2_IRQHandler(void) |
|
| - | 16 | { |
|
| - | 17 | ||
| - | 18 | ||
| - | 19 | ||
| - | 20 | } |
|
| - | 21 | ||
| - | 22 | ||
| - | 23 | char blink = 0; |
|
| - | 24 | // 100mS periodic sampler handler |
|
| - | 25 | void TIM6_IRQHandler(void) |
|
| - | 26 | { |
|
| - | 27 | __HAL_TIM_CLEAR_FLAG(&htim6, TIM_FLAG_UPDATE) ; |
|
| - | 28 | TimerFlag = 1; |
|
| - | 29 | ||
| - | 30 | blink = !blink; |
|
| - | 31 | HAL_GPIO_WritePin(LED_Blink_GPIO_Port, LED_Blink_Pin, blink ? GPIO_PIN_SET : GPIO_PIN_RESET); |
|
| - | 32 | ||
| - | 33 | if (NoSerialInCTR < 5) { |
|
| - | 34 | NoSerialInCTR++; |
|
| - | 35 | if (NoSerialInCTR == 5) { |
|
| - | 36 | NoSerialIn = 1; |
|
| - | 37 | } |
|
| - | 38 | } |
|
| - | 39 | ||
| - | 40 | ||
| - | 41 | } |
|
| - | 42 | ||
| - | 43 | ||
| 15 | 44 | ||
| 16 | #if OLD_ENGINEBAY |
45 | #if OLD_ENGINEBAY |
| 17 | //----------------------------------------------------------- |
46 | //----------------------------------------------------------- |
| 18 | // This is the 10Hz timer |
47 | // This is the 10Hz timer |
| 19 | 48 | ||