diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2018-03-22 20:50:53 +0100 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2018-03-22 20:50:53 +0100 |
| commit | 4887461e35b64c697cbabaf0268c77ae68576c5e (patch) | |
| tree | 60b379f5683c1b2065ca03803cf6b3ffab31b81b /Source/System.c | |
| parent | 34c8910b9ff33d50d642fda24c78d88595a59aa6 (diff) | |
| download | airport-4887461e35b64c697cbabaf0268c77ae68576c5e.tar.gz | |
* Increased number of events on SYSTEM.CNF.
Minor changes?
Diffstat (limited to 'Source/System.c')
| -rw-r--r-- | Source/System.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/System.c b/Source/System.c index 864e2fc..2a3513a 100644 --- a/Source/System.c +++ b/Source/System.c @@ -67,6 +67,11 @@ static unsigned char sine_counter; * *******************************************************************/ void SystemInit(void) { + enum + { + RCNT2_100US_TICK_COUNTER = 0xA560 + }; + //Reset global timer global_timer = 0; //Reset 1 second timer @@ -118,7 +123,9 @@ void SystemInit(void) SystemSetStackPattern(); - SetRCntHandler(&ISR_RootCounter2, 2, 0xA560); + // Configure root counter 2 so that ISR_RootCounter2 + // is executed every 100 us. + SetRCntHandler(&ISR_RootCounter2, 2, RCNT2_100US_TICK_COUNTER); SystemEnableRCnt2Interrupt(); } |
