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
| // MSP430F552x Demo - USCI_B0 I2C Master TX single bytes to MSP430 Slave | |
| // | |
| // Description: This demo connects two MSP430's via the I2C bus. The master | |
| // transmits to the slave. This is the master code. It continuously | |
| // transmits 00h, 01h, ..., 0ffh and demonstrates how to implement an I2C | |
| // master transmitter sending a single byte using the USCI_B0 TX interrupt. | |
| // ACLK = n/a, MCLK = SMCLK = BRCLK = default DCO = ~1.045MHz | |
| // | |
| // ***to be used with "MSP430F55xx_uscib0_i2c_07.c" *** | |
| // |
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
| __strtok_r(char *s, const char *delim, char **last) | |
| { | |
| char *spanp, *tok; | |
| int c, sc; | |
| if (s == NULL && (s = *last) == NULL) | |
| return (NULL); | |
| /* | |
| * Skip (span) leading delimiters (s += strspn(s, delim), sort of). |
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
| /* Copyright (c) Microsoft Corporation. All rights reserved. */ | |
| #include <string.h> | |
| /* ISO/IEC 9899 7.11.5.8 strtok. DEPRECATED. | |
| * Split string into tokens, and return one at a time while retaining state | |
| * internally. | |
| * | |
| * WARNING: Only one set of state is held and this means that the | |
| * WARNING: function is not thread-safe nor safe for multiple uses within |
OlderNewer