Search found 547 matches
- Wed Oct 01, 2014 1:16 pm
- Forum: Oberon Language
- Topic: Bitfield functions
- Replies: 0
- Views: 60152
Bitfield functions
Two in-line functions in Astrobe for Cortex-M are used to efficiently extract or update a bitfield, i.e. just a portion of 32-bit word. Each efficiently uses a single Thumb-2 instruction: BFI: Bitfield Insert UBFX: Unsigned Bitfield Extract PROCEDURE BFI*(VAR x: INTEGER; msb, lsb, y: INTEGER); PROCE...
- Sun Sep 28, 2014 7:29 am
- Forum: Astrobe for ARM Cortex-M0, M3, M4 and M7
- Topic: BytesOffset Constant Value
- Replies: 3
- Views: 63991
Re: ByteOffset Constant Value
ResData: I cannot find any reference to a constant value named ByteOffset in ResData.mod. I can see that a constant value BytesOffset is used and this is correctly declared as a constant = 20. SunRise / SunSet: Sorry about the confusion - the example was developed on an earlier version of Astrobe. I...
- Sun Sep 28, 2014 1:41 am
- Forum: Oberon Language
- Topic: Enhanced SYSTEM.VAL - Serialization example
- Replies: 0
- Views: 57066
Enhanced SYSTEM.VAL - Serialization example
A subtle but significant enhancement to the SYSTEM.VAL function was introduced in v5.1 Astrobe. The use of the System.VAL type-transfer function is no longer restricted to using basic types. Previously the definition of SYSTEM.VAL was: PROCEDURE VAL*(typeName: <any basic type>; x: <any basic type or...
- Mon Sep 15, 2014 9:58 pm
- Forum: Archive
- Topic: I2C Init for the mBed LPC1768
- Replies: 4
- Views: 24075
Re: I2C Init for the mBed LPC1768
I just had a quick look. As you have configured the pins to use I2C2 then you must change any references to I2C0 to be I2C2 e.g.
If you still can't get it to work, let me know and I'll try your code on a board here.
Code: Select all
I2C.Init(I2C.I2C2, ConfigurePinsProc, I2CFreq);
- Mon Sep 15, 2014 11:37 am
- Forum: Archive
- Topic: I2C Init for the mBed LPC1768
- Replies: 4
- Views: 24075
Re: I2C Init for the mBed LPC1768
Do I need to write the ConfigurePinsProc myself, if so, where does it belong? On the 'myapp'.mod or the Main.mod(for the 1768) Yes. Put it in the same module where you call I2C.Init. Use the LPC1769\Olimex Accelerometer example as an example of what you need to do. It is likely that you will be abl...
- Sun Sep 14, 2014 12:17 pm
- Forum: Getting Started
- Topic: Working with Serial.mod
- Replies: 2
- Views: 76270
Re: Working with Serial.mod
The first error message is usually the more important one. In this case it was: 18 14 Error: undefined Line 18, column 14 is the end of the word init . Oberon is case-sensitive, the correct name of the procedure is Init with a capital 'I'. However, you do not need to initialise the serial port as th...
- Sat Jul 19, 2014 2:04 am
- Forum: Archive
- Topic: Embedded Artists' LPC4088 QuickStart board is now supported
- Replies: 0
- Views: 10496
Embedded Artists' LPC4088 QuickStart board is now supported
Embedded Artists' mbed-enabled Cortex-M4 LPC4088 QuickStart board is now supported for use with Astrobe for Cortex-M4. Follow these instructions to get started by building a simple example application written in the Oberon programming language to run on your QuickStart board: 1. Connect your LPC4088...
- Wed Jul 09, 2014 12:50 pm
- Forum: Astrobe for ARM Cortex-M0, M3, M4 and M7
- Topic: is support for cortex M4 based boards possible / planned
- Replies: 11
- Views: 168367
- Mon Jul 07, 2014 11:35 am
- Forum: Getting Started
- Topic: A Few Beginner Questions
- Replies: 3
- Views: 89932
Re: A Few Beginner Questions
Thanks Bill - your comments are very much appreciated although I must acknowledge that a significant amount of the credit is due to Prof Wirth.
If you do have any 'newbie' questions related to the Oberon language itself feel free to ask them here,
Cheers,
Chris
If you do have any 'newbie' questions related to the Oberon language itself feel free to ask them here,
Cheers,
Chris
- Fri Jul 04, 2014 9:34 am
- Forum: Getting Started
- Topic: A Few Beginner Questions
- Replies: 3
- Views: 89932
Re: A Few Beginner Questions
I'm sorry about the delay in replying - I only just discovered your post was waiting for approval. I have now updated your profile so that any future posts from you will not have to go through the approval process. 1. The only Cortex-M3 development boards we currently support are from NXP. 2. I woul...