March 27, 2015-Diary

Source: Internet
Author: User

Today suddenly in a good mood ~ ~ because got a lot of things, welding machine encountered a difficult point!

I am using a FreeRTOS operating system, a process to scan the matrix keyboard, which has a working thread, when in the working state, take up the time and its many, did not give the Cup control to other threads, so the matrix keyboard scan will not be effective, ~ ~ ~ But I have a separate button, mainly used to control the start of the system, or the function of the pause ~ but I think when the system is working, you can reset the whole system by resetting the keys on the matrix keyboard ~~!!! So I do not know how to be good ~ ~

WORKAROUND: Use an external interrupt to capture the signal that the key starts to pause, and then when the key is paused, the Cup control is surrendered, so that other processes can run normally, so when the matrix keyboard scan to reset button, through the global variable to pass the data to the working state, through the variable to determine whether to directly end the current operation!!! This is a good way to do it!

And today, accidentally made a mistake: #define RESET 0xFF, remember to read a joke, said that some programmers will leave in their own source code before burying a bomb! Let people don't know how to look up! Then there is an example of this: #define TRUE 0 #define FALSE 1, meaning that true as "false", false as "true", this is OK, others generally do not check the macro definition is right ~ and then it is the problem of a very egg pain ~ Today I made the same mistake, Just a little bit more obscure ~ haha. Make me confused!! But then after the truth, I really want to stab my own haha!!!

Today also learned an extern usage, in a function such as want to call the external function, many people will directly include the external function of the header file, but the original can be directly like the definition of variables, directly extern followed by the function declaration so that can successfully invoke the other C file inside the function of ~ Ah ha, New skills, get!

Today it took nearly 3 hours to find out the problem of the # define reset 0xFF, it's a headache, but it's exciting! Instantly know a lot, and then the effect of welding machine and minor, the basic ability to achieve! Good, tomorrow can move downstairs happy a few down ~ ~ Not easy Ah, although a few days ago on the function of welding machine feel particularly chaotic, but today after the commissioning of the feeling, feel is not a excrement ah. Some save!! Haha, the next step is to optimize its code, let it become beautiful!!! Come on! Haha, there is time to come back from work is 10:30, walking in the road, has been thinking of leaving this thing, today good colleagues to sing K, but it seems to be secretly playing overtime card ~ Heart feel a little hurt ~ sometimes look at them in position, a bit soy sauce taste ~ But get more than I seem, And I think of myself, I have done so much for the company, so much, and got the same as them, even less ~ Perhaps in the leadership seems to me the effort is just in vain. So in fact, I want to leave the company, but Fai elder brother let me feel very admire, from the technical, really impeccable, is also very good for people ~ ~ ~ Today I had the honor to chat with the next technology ~ feel really is ~ fierce ah, bad, I want to learn quickly, so that their code to become beautiful, and then leave the company ... Back when you want to mention the resignation of how to mention, why leave: Because not enough. Also feel wronged ~ ~ ~ feel in the company to get 7k of salary, then to get 7K salary, and later will ask for more reasons to leave the company, if the company is willing to make this money, then I can continue to stay in the company, if not willing, then I go ~ but the probability of walking is quite large, Anyway, I also feel that the company is not interesting to get what you want, why wait? Have wronged, can not stand to say out, not fragile!!!

March 27, 2015-Diary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.