NetBurner 3.5.6
PDF Version
SBE70LC/include/bsp.h
1
5#ifndef __NB_BSP_H
6#define __NB_BSP_H
7
8#include <cpu_pins.h>
9#include <stdio.h>
10#include <component/pmc.h>
11extern PinIO E70_LED;
12
22{
23 uint8_t val[16];
24
25 public:
32 const uint8_t *GetUniqueIdentifier();
33
38
44 inline const uint8_t *GetBuffer() { return val; }
45
49 inline void Print()
50 {
51 iprintf("0x");
52 for (uint8_t index = 0; index < 16; index++)
53 {
54 iprintf("%02x", val[index]);
55 }
56 iprintf("\r\n");
57 }
58};
59
77void EnableExtBusBuff(bool enable);
78
79class ExtBusEnableCtx
80{
81 public:
82 static volatile uint32_t depth;
83 ExtBusEnableCtx();
84 ~ExtBusEnableCtx();
85 void dump();
86};
87
115uint32_t SetPLL(uint8_t multiplier);
116
144uint32_t SetMCKDivider(uint8_t divider);
145
153void DrivePCK(uint8_t prescaler = 1, uint8_t clkSource = PMC_PCK_CSS_MCK);
154
159void DisablePCK();
160
161#endif /* ----- #ifndef __CPU_HAL_H ----- */
GPIO Pin Class.
Definition coldfire/cpu/MCF5441X/include/cpu_pins.h:15
Get the 128-bit Unique Identifier.
Definition MODM7AE70/include/bsp.h:22
const uint8_t * GetUniqueIdentifier()
Will attempt to read the Unique Identifier from flash memory.
void Print()
Print the 128-bit UniqueID in hex to serial.
Definition SBE70LC/include/bsp.h:49
UniqueIdentifier()
Create a UniqueIdentifier object and read the Unique Identifier from flash memory.
Definition SBE70LC/include/bsp.h:37
const uint8_t * GetBuffer()
Get a pointer to the buffer containing the uniqueID.
Definition SBE70LC/include/bsp.h:44