File tree Expand file tree Collapse file tree 3 files changed +32
-7
lines changed
TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC Expand file tree Collapse file tree 3 files changed +32
-7
lines changed Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
+
18
+ #include <stddef.h>
17
19
#include "hal/us_ticker_api.h"
18
20
21
+ #if DEVICE_USTICKER
22
+
19
23
static ticker_event_queue_t events = { 0 };
20
24
21
25
static ticker_irq_handler_type irq_handler = ticker_irq_handler ;
@@ -56,3 +60,12 @@ void us_ticker_irq_handler(void)
56
60
irq_handler (& us_data );
57
61
}
58
62
}
63
+
64
+ #else
65
+
66
+ const ticker_data_t * get_us_ticker_data (void )
67
+ {
68
+ return NULL ;
69
+ }
70
+
71
+ #endif // DEVICE_USTICKER
Original file line number Diff line number Diff line change 18
18
#include "fsl_ctimer.h"
19
19
#include "PeripheralNames.h"
20
20
21
+ #if DEVICE_USTICKER
22
+
21
23
#if defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3U )
22
24
#define CTIMER CTIMER0
23
25
#define CTIMER_IRQn CTIMER0_IRQn
@@ -117,3 +119,6 @@ void us_ticker_free(void)
117
119
NVIC_DisableIRQ (CTIMER_IRQn );
118
120
us_ticker_inited = false;
119
121
}
122
+
123
+ #endif // DEVICE_USTICKER
124
+
Original file line number Diff line number Diff line change 663
663
" STDIO_MESSAGES" ,
664
664
" FLASH" ,
665
665
" MPU" ,
666
- " USBDEVICE"
666
+ " USBDEVICE" ,
667
+ " USTICKER"
667
668
],
668
669
"release_versions" : [" 2" , " 5" ],
669
670
"device_name" : " LPC1768" ,
872
873
" SPI" ,
873
874
" SPISLAVE" ,
874
875
" STDIO_MESSAGES" ,
875
- " MPU"
876
+ " MPU" ,
877
+ " USTICKER"
876
878
],
877
879
"device_name" : " LPC4088FBD144" ,
878
880
"overrides" : {
5449
5451
" SERIAL_FC" ,
5450
5452
" SLEEP" ,
5451
5453
" SPI" ,
5452
- " STDIO_MESSAGES"
5454
+ " STDIO_MESSAGES" ,
5455
+ " USTICKER"
5453
5456
],
5454
5457
"release_versions" : [" 2" , " 5" ]
5455
5458
},
6521
6524
" SERIAL" ,
6522
6525
" SPI" ,
6523
6526
" SPISLAVE" ,
6524
- " STDIO_MESSAGES"
6527
+ " STDIO_MESSAGES" ,
6528
+ " USTICKER"
6525
6529
],
6526
6530
"release_versions" : [" 2" , " 5" ]
6527
6531
},
6546
6550
" SERIAL" ,
6547
6551
" SPI" ,
6548
6552
" SPISLAVE" ,
6549
- " STDIO_MESSAGES"
6553
+ " STDIO_MESSAGES" ,
6554
+ " USTICKER"
6550
6555
],
6551
6556
"release_versions" : [" 2" , " 5" ]
6552
6557
},
6570
6575
" SERIAL" ,
6571
6576
" SPI" ,
6572
6577
" SPISLAVE" ,
6573
- " STDIO_MESSAGES"
6578
+ " STDIO_MESSAGES" ,
6579
+ " USTICKER"
6574
6580
],
6575
6581
"release_versions" : [" 2" , " 5" ]
6576
6582
},
7279
7285
" TRNG" ,
7280
7286
" SPISLAVE" ,
7281
7287
" 802_15_4_PHY" ,
7282
- " MPU"
7288
+ " MPU" ,
7289
+ " USTICKER"
7283
7290
],
7284
7291
"release_versions" : [" 2" , " 5" ]
7285
7292
},
You can’t perform that action at this time.
0 commit comments