Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
defines.hpp@0:2b4bbe9ea495, 2014-09-05 (annotated)
- Committer:
- bgrissom
- Date:
- Fri Sep 05 00:07:44 2014 +0000
- Revision:
- 0:2b4bbe9ea495
Object Model code with Toshiba S0 and S1 routines compiles with ST F401RE board support. If you try to compile this for the F030 or F072, it will run out of SRAM space.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| bgrissom | 0:2b4bbe9ea495 | 1 | #ifndef __ANTHEM_DEFINES_H__ |
| bgrissom | 0:2b4bbe9ea495 | 2 | #define __ANTHEM_DEFINES_H__ |
| bgrissom | 0:2b4bbe9ea495 | 3 | |
| bgrissom | 0:2b4bbe9ea495 | 4 | // Global Definitions |
| bgrissom | 0:2b4bbe9ea495 | 5 | #define AOK (0) // Anthem OK (can't clobber global definiton) |
| bgrissom | 0:2b4bbe9ea495 | 6 | #define AERROR (-1) // Anthem ERROR (can't clobber global definiton) |
| bgrissom | 0:2b4bbe9ea495 | 7 | |
| bgrissom | 0:2b4bbe9ea495 | 8 | #define MODULE_WIDTH (18) // Module width (i.e. this PCB is 20 X 20 pixels) |
| bgrissom | 0:2b4bbe9ea495 | 9 | #define MODULE_HEIGHT (18) // Module height (i.e. this PCB is 20 X 20 pixels) |
| bgrissom | 0:2b4bbe9ea495 | 10 | |
| bgrissom | 0:2b4bbe9ea495 | 11 | #define NUM_SCANGROUPS (3) // In the future maybe store this on the EEPROM? |
| bgrissom | 0:2b4bbe9ea495 | 12 | // 18 X 18 Board |
| bgrissom | 0:2b4bbe9ea495 | 13 | #define NUM_LED_DRIVERS (21) // 7 sections with 3 LED driver chips each on a 18 X 18 board |
| bgrissom | 0:2b4bbe9ea495 | 14 | // 20 X 20 Board |
| bgrissom | 0:2b4bbe9ea495 | 15 | // #define NUM_LED_DRIVERS (27) // 9 sections with 3 LED driver chips each on a 20 X 20 board |
| bgrissom | 0:2b4bbe9ea495 | 16 | |
| bgrissom | 0:2b4bbe9ea495 | 17 | #define PIXELS_PER_SCANGROUP (MODULE_WIDTH*MODULE_HEIGHT/NUM_SCANGROUPS) |
| bgrissom | 0:2b4bbe9ea495 | 18 | // There are 3 LEDs per pixel |
| bgrissom | 0:2b4bbe9ea495 | 19 | #define LEDS_PER_SCANGROUP (PIXELS_PER_SCANGROUP*3) |
| bgrissom | 0:2b4bbe9ea495 | 20 | #define LOW (0) |
| bgrissom | 0:2b4bbe9ea495 | 21 | #define HIGH (1) |
| bgrissom | 0:2b4bbe9ea495 | 22 | |
| bgrissom | 0:2b4bbe9ea495 | 23 | // Enable these for debugging |
| bgrissom | 0:2b4bbe9ea495 | 24 | #define BAGINFO1(fmt, args...) do { } while(0) |
| bgrissom | 0:2b4bbe9ea495 | 25 | // #define BAGINFO1(fmt, args...) printf("BAGINFO1 (%s|%s()|%d): " fmt, __FILE__, __func__, __LINE__, ## args) |
| bgrissom | 0:2b4bbe9ea495 | 26 | #define BAGINFO2(fmt, args...) do { } while(0) |
| bgrissom | 0:2b4bbe9ea495 | 27 | // #define BAGINFO2(fmt, args...) printf("BAGINFO2 (%s|%s()|%d): " fmt, __FILE__, __func__, __LINE__, ## args) |
| bgrissom | 0:2b4bbe9ea495 | 28 | #define BAGINFO3(fmt, args...) do { } while(0) |
| bgrissom | 0:2b4bbe9ea495 | 29 | // #define BAGINFO3(fmt, args...) printf(fmt, ## args) |
| bgrissom | 0:2b4bbe9ea495 | 30 | |
| bgrissom | 0:2b4bbe9ea495 | 31 | #endif // __ANTHEM_DEFINES_H__ |