QDK PIC24/dsPIC-XC16 - Quantum Leaps
QDK PIC24/dsPIC-XC16 - Quantum Leaps
QDK PIC24/dsPIC-XC16 - Quantum Leaps
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>QDK</strong><br />
<strong>PIC24</strong>/<strong>dsPIC</strong>-<strong>XC16</strong><br />
www.state-machine.com/pic<br />
6 BSP for the Microstick II Board<br />
The Board Support Package (BSP) for <strong>PIC24</strong>/<strong>dsPIC</strong> and Explorer 16 board (see Figure 1) with the nonpreemptive<br />
“vanilla” scheduler is located in the directory: \examples\pic24_dspic\vanilla\<br />
xc16\dpp-qk-microstick2_pic24\ for <strong>PIC24</strong> and \examples\pic24_dspic\vanilla\<br />
xc16\dpp-qk-microstick2_dspic\ for <strong>dsPIC</strong>. The BSP consists of the following files:<br />
1. bsp.h contains the Board Support Package interface (BSP)<br />
2. bsp.c contains the implementation of the BSP, which includes all ISRs and all platform-specific QP<br />
callbacks.<br />
6.1 Setting the Sizes of Stack and Heap<br />
You set the sizes of stack and heap through the MPLABX IDE, as shown in Figure 11.<br />
Figure 11 Setting the size of heap and stack<br />
Copyright © <strong>Quantum</strong> <strong>Leaps</strong>, LLC. All Rights Reserved.<br />
27 of 35