This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ReadMe --------------- | |
| // Chipset PIC24FJ256GB206 | |
| // IDE : MPLAB X IDE 2.26 | |
| // Compiler : XC16 1.23 | |
| // TIMER_1_FREQ | |
| // LEEBS 2014_1215 : check | |
| void Initial_Timer1(void) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ReadMe --------------- | |
| // Chipset PIC24FJ256GB206 | |
| // IDE : MPLAB X IDE 2.26 | |
| // Compiler : XC16 1.23 | |
| //----------board.c----------- | |
| #define USE_AND_OR /* To enable AND_OR mask setting */ | |
| #include "include/gpio.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ReadMe --------------- | |
| // Chipset PIC24FJ256GB206 | |
| // IDE : MPLAB X IDE 2.26 | |
| // Compiler : XC16 1.23 | |
| #define USE_AND_OR /* To enable AND_OR mask setting */ | |
| #include "include/gpio.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define USE_AND_OR /* To enable AND_OR mask setting */ | |
| #include "include/gpio.h" | |
| #include "include/board.h" | |
| #include <PIC24F_periph_features.h> // from XC16 comfiler : LEEBS 2014_1209 | |
| #include <PIC24F_plib.h> // from XC16 comfiler : LEEBS 2014_1209 | |
| void Initial_UART_1(void) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // I2C SRF10 or SRF08 Devantech Ultrasonic Ranger Finder | |
| // by Nicholas Zambetti <http://www.zambetti.com> | |
| // and James Tichenor <http://www.jamestichenor.net> | |
| // Demonstrates use of the Wire library reading data from the | |
| // Devantech Utrasonic Rangers SFR08 and SFR10 | |
| // Created 29 April 2006 | |
| // This example code is in the public domain. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef _MY_HEADER_H_ | |
| #define _MY_HEADER_H_ | |
| // add code for myheader.h | |
| // ... | |
| #endif // #ifndef _MY_HEADER_H_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| int main() | |
| { | |
| size_t mySize1, mySize2; | |
| int i; | |
| char myString[] = {"Bongsu_Hello"}; | |
| char myName1[] ={"Bongsu"}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int sum(int (*p)[4]); | |
| int _tmain(int argc, _TCHAR* argv[]) | |
| { | |
| int value; | |
| int test[3][4]={1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; | |
| value = sum( test ); | |
| printf("%d", value); | |
| return 0; |