Removing aliased_bitband.h
- It's useless :P - Only one line of code ever used it.
This commit is contained in:
parent
bf529f697e
commit
dc22fa757a
@ -44,10 +44,11 @@ inline void init_errorLED()
|
|||||||
// ARM
|
// ARM
|
||||||
#elif defined(_mk20dx128_) || defined(_mk20dx256_)
|
#elif defined(_mk20dx128_) || defined(_mk20dx256_)
|
||||||
|
|
||||||
|
// Enable pin
|
||||||
|
GPIOC_PDDR |= (1<<5);
|
||||||
|
|
||||||
// Setup pin - Pin 11 -> C5 - See Lib/pin_map.teensy3 for more details on pins
|
// Setup pin - Pin 11 -> C5 - See Lib/pin_map.teensy3 for more details on pins
|
||||||
PORTC_PCR5 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
|
PORTC_PCR5 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
|
||||||
// Enable pin
|
|
||||||
GPIO_BITBAND_MODREG( GPIOC_PDOR, 5 ) = 1;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,6 @@
|
|||||||
#if defined(_mk20dx128_) || defined(_mk20dx256_)
|
#if defined(_mk20dx128_) || defined(_mk20dx256_)
|
||||||
|
|
||||||
#include <Lib/mk20dx.h>
|
#include <Lib/mk20dx.h>
|
||||||
#include <Lib/aliased_bitband.h>
|
|
||||||
#include <Lib/delay.h>
|
#include <Lib/delay.h>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -37,7 +37,6 @@
|
|||||||
#if defined(_mk20dx128_) || defined(_mk20dx256_)
|
#if defined(_mk20dx128_) || defined(_mk20dx256_)
|
||||||
|
|
||||||
#include <Lib/mk20dx.h>
|
#include <Lib/mk20dx.h>
|
||||||
#include <Lib/aliased_bitband.h>
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -37,7 +37,6 @@
|
|||||||
#if defined(_mk20dx128_) || defined(_mk20dx256_)
|
#if defined(_mk20dx128_) || defined(_mk20dx256_)
|
||||||
|
|
||||||
#include <Lib/mk20dx.h>
|
#include <Lib/mk20dx.h>
|
||||||
#include <Lib/aliased_bitband.h>
|
|
||||||
#include <Lib/delay.h>
|
#include <Lib/delay.h>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,37 +0,0 @@
|
|||||||
|
|
||||||
#ifndef __aliased_bitband_h
|
|
||||||
#define __aliased_bitband_h
|
|
||||||
|
|
||||||
|
|
||||||
// Aliased Regions for single bit (0th) register access
|
|
||||||
|
|
||||||
// Chapter 4: Memory Map (Table 4-1)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// TODO
|
|
||||||
// - Not all tested, and not all sections added
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 0x2200 0000 - 0x23FF FFFF - Aliased to SRAM_U bitband
|
|
||||||
// TODO
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 0x4200 0000 - 0x43FF FFFF - Aliased to AIPS and GPIO bitband
|
|
||||||
#define GPIO_BITBAND_ADDR(reg, bit) (((uint32_t)&(reg) - 0x40000000) * 32 + (bit) * 4 + 0x42000000)
|
|
||||||
#define GPIO_BITBAND_PTR(reg, bit) ((uint32_t *)GPIO_BITBAND_ADDR((reg), (bit)))
|
|
||||||
|
|
||||||
// XXX - Only MODREG is tested to work...
|
|
||||||
#define GPIO_BITBAND_OUTREG(reg, bit) *((uint32_t *)GPIO_BITBAND_ADDR((reg), (bit)) + 0)
|
|
||||||
#define GPIO_BITBAND_SETREG(reg, bit) *((uint32_t *)GPIO_BITBAND_ADDR((reg), (bit)) + 32)
|
|
||||||
#define GPIO_BITBAND_CLRREG(reg, bit) *((uint32_t *)GPIO_BITBAND_ADDR((reg), (bit)) + 64)
|
|
||||||
#define GPIO_BITBAND_TOGREG(reg, bit) *((uint32_t *)GPIO_BITBAND_ADDR((reg), (bit)) + 96)
|
|
||||||
#define GPIO_BITBAND_INPREG(reg, bit) *((uint32_t *)GPIO_BITBAND_ADDR((reg), (bit)) + 128)
|
|
||||||
#define GPIO_BITBAND_MODREG(reg, bit) *((uint32_t *)GPIO_BITBAND_ADDR((reg), (bit)) + 160)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
Reference in New Issue
Block a user