Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Kelsey Bjarnason Newsgroups: comp.os.linux.advocacy,comp.os.linux.embedded Subject: Re: Reading the Riot Act To ARM's developers Date: Sat, 11 Feb 2012 10:34:30 -0800 Organization: A noiseless patient Spider Lines: 20 Message-ID: References: <4iah09-1p2.ln1@spankydtr.localhost.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Info: mx04.eternal-september.org; posting-host="1slvsP1WECuGs7FJVcqjxw"; logging-data="4548"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+F5gF6WdNWhO5zxICWcIKW+l+3BCyEf9A=" User-Agent: Pan/0.133 (House of Butterflies) Cancel-Lock: sha1:cxxhL3M4BKzm6WAM4wKkJsYhS78= Xref: x330-a1.tempe.blueboxinc.net comp.os.linux.advocacy:88404 comp.os.linux.embedded:102 [snips] On Sat, 11 Feb 2012 09:58:06 +0000, 7 wrote: > #define INT_XMA (1 << 4) > #define ENABLE_RS232 SYSCON->INT |= INT_XMA > > > The problem I am having is what does that '4' mean. Is it 4 or 14 or > something else? I need a datasheet. Thats just crap programming. No, you need to learn the concept of commenting your code: ; 4th LSB is XMA interrupt enable/disable on MS4 series processors #define INT_XMA (1<<4) Now you know exactly what the 4 is, where it came from, why it's there and what it does.