30.12.2014 Views

QDK PIC24/dsPIC-C30 - Quantum Leaps

QDK PIC24/dsPIC-C30 - Quantum Leaps

QDK PIC24/dsPIC-C30 - Quantum Leaps

SHOW MORE
SHOW LESS

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>C30</strong><br />

www.state-machine.com/pic<br />

6 BSP for the Explorer 16 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 />

mplab-c30\dpp-qk-explorer16_pic24\ for <strong>PIC24</strong> and \examples\pic24_dspic\vanilla\<br />

mplab-c30\dpp-qk-explorer16_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 />

3. p24FJ128GA010.gld contains the linker command file for locating the application.<br />

6.1 Setting the Sizes of Stack and Heap<br />

You set the sizes of stack and heap through the MPLAB IDE, as shown in Figure 9.<br />

Figure 9 Setting the size of heap and stack<br />

Copyright © <strong>Quantum</strong> <strong>Leaps</strong>, LLC. All Rights Reserved.<br />

27 of 35

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!