ESE101: C is for Cookie, and also C
C is for Cookie, and also C.
Read MoreC is for Cookie, and also C.
Read MoreThis time, Andrei looks at initializing variables and the use of range specifiers when initializing arrays.
Read MoreIn a previous post, Andrei discussed the switch statement. In this post, he gives a more indepth review of switch and then deeply dives into the default case.
Rather than just leaving it out, default can be used to detect the impossible. Read on to handle whoopses, neutrino hits, and beer. And remember, be assertive, but be kind to your future self.
Read MoreToday we install a new version of CCS and start learning C with a basic blinky program.
Confused by the C keyword volatile? Keep forgetting what it means and why you'd use it?
Read MoreThis time, let's blink those LEDs. Woah, slow down there Speed Racer!
Read MoreThis week Andrei introduces the toolchains that are supported by CubeMX. Time to grab one and get it working.
Read MoreC uses the static keyword for two completely separate purposes simultaneously. In this week's post, Andrei will continue his discussion of variable visibility (scope), look at function scope, and how to limit scope to a single file, using the static keyword.
It's not as shocking as you might imagine, unless you let go.
Read MoreLook, if I give you a bunch of stuff that all have to be true, and the first one is false, I'm not going to waste my time checking them all. It's just the way I roll.
This week Andrei looks at shortcutting in conditionals.
Read MoreThis weekend, Andrei went to a huge kite festival in Swift Current, Saskatchewan, and really didn't have a lot of time to come up with a huge post.
Instead, this week, he writes about how the C language handles allocating space for enums.
Read MoreWait, what? Andrei finally wrote the long awaited bit-manipulation post? Yes, it's true.
Click through to learn about &, |, ~, and even ^. When would you use these things? And find out what is due for homework this week.
Read MoreAndrei drew the short straw. His punishment was to write a blog post on boolean logic and bit manipulations. That way Elecia and Chris Svec could refer to the post rather than having to explain it themselves.
This first part is a useful review of boolean logic. If you find it useful, please buy Chris Gammell a beer.
Read MoreIn the final serving of the Embedded Wednesdays crash course in C, Andrei gives a bowlful of function goodness. Parameters, return values, headers, and prototypes. Sprinkle some prototypes, add #includes on top, then add some Good Habits for keeping you regular. But you can't have all of this wholesome goodness without talking about the inevitable void.
In French, the Rice Krispie guys Snap, Crackle, and Pop are known as Crik, Crak, and Crok. All of those names start with C. Coincidence, I don't think so. Pull up a chair and grab a heaping helping of C functions. (Corny? No, I Oat to know how that is Spelt)
Read MoreIn this Embedded Wednesdays post, we discuss the generalities of functions in the C language.
Read MoreThis week, we look at the statements in the C language that alter the flow of execution. For a good time, If you are looking to switch to C, do read this post while you're here.
Read MoreThe first C program that everybody gets going is Hello, World! This week Andrei introduces the basic structure of C programs.
Read MoreBooleans, how difficult can that be, right? TRUE or FALSE, 1 or 0.
This week on the Embedded Wednesdays post, we look at the bool data type that was introduced in C99. Experienced C programmers should read this too, right? TRUE.
Read More